Skip to content

Commit a53493c

Browse files
kartikpersistentpraveshkumar1988
authored andcommitted
tooltip changes
1 parent 02a3ce6 commit a53493c

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

frontend/src/components/SchemaFromText.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useFileContext } from '../context/UsersFiles';
66
import { AlertColor, AlertPropsColorOverrides } from '@mui/material';
77
import { OverridableStringUnion } from '@mui/types';
88
import { buttonCaptions } from '../utils/Constants';
9+
import ButtonWithToolTip from './ButtonWithToolTip';
910

1011
const SchemaFromTextDialog = ({
1112
open,
@@ -113,7 +114,7 @@ const SchemaFromTextDialog = ({
113114
onClose();
114115
}}
115116
>
116-
<Dialog.Header id='form-dialog-title'>Graph Settings</Dialog.Header>
117+
<Dialog.Header id='form-dialog-title'>Entity Graph Extraction Settings</Dialog.Header>
117118
<Dialog.Content className='n-flex n-flex-col n-gap-token-4'>
118119
<Textarea
119120
helpText='Analyze the text to extract Entities'
@@ -134,9 +135,9 @@ const SchemaFromTextDialog = ({
134135
}}
135136
checked={isSchema}
136137
/>
137-
<Button loading={loading} disabled={userText.trim() === '' || loading} onClick={clickHandler}>
138+
<ButtonWithToolTip placement='top' label='Analyze button' text={userText.trim() === ''?'please fill the text to extract graph schema':buttonCaptions.analyze} loading={loading} disabled={userText.trim() === '' || loading} onClick={clickHandler}>
138139
{buttonCaptions.analyze}
139-
</Button>
140+
</ButtonWithToolTip>
140141
</Dialog.Actions>
141142
</Dialog.Content>
142143
</Dialog>

frontend/src/components/SettingModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default function SettingsModal({
161161

162162
return (
163163
<Dialog size='medium' open={open} aria-labelledby='form-dialog-title' onClose={onClose}>
164-
<Dialog.Header id='form-dialog-title'>Graph Settings</Dialog.Header>
164+
<Dialog.Header id='form-dialog-title'>Entity Graph Extraction Settings</Dialog.Header>
165165
<Dialog.Content className='n-flex n-flex-col n-gap-token-4'>
166166
<Dropdown
167167
helpText='Schema Examples'

frontend/src/utils/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const buttonCaptions = {
124124
amazon: 'Amazon S3',
125125
noLables: 'No Labels Found in the Database',
126126
dropYourCreds: 'Drop your neo4j credentials file here',
127-
analyze:'Analyze',
127+
analyze:'Analyze text to extract graph schema',
128128
connect: 'Connect',
129129
disconnect:'Disconnect',
130130
submit:'Submit',

0 commit comments

Comments
 (0)