Skip to content

Commit 6cfbf95

Browse files
kartikpersistentpraveshkumar1988
authored andcommitted
UI fixes
1 parent 38c2eea commit 6cfbf95

File tree

4 files changed

+37
-30
lines changed

4 files changed

+37
-30
lines changed

frontend/src/components/DeletePopUp.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export default function DeletePopUp({
2525
<div className='mt-1'>
2626
<Checkbox
2727
label='Delete Entities'
28-
onClick={function Ua() { }}
2928
checked={deleteEntities}
3029
onChange={(e) => {
3130
if (e.target.checked) {

frontend/src/components/DropZone.tsx

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -228,24 +228,27 @@ const DropZone: FunctionComponent = () => {
228228
className='!bg-none dropzoneContainer'
229229
supportedFilesDescription={
230230
<Typography variant='body-small'>
231-
Documents, Images, Unstructured
232-
<IconButtonWithToolTip
233-
label='Source info'
234-
size='small'
235-
clean
236-
text={
237-
<Typography variant='body-small'>
238-
<Flex gap='5'>
239-
<span>Microsoft Office (.docx, .pptx, .xls)</span>
240-
<span>PDF (.pdf)</span>
241-
<span>Images (.jpeg, .jpg, .png, .svg)</span>
242-
<span>Text (.html, .txt , .md)</span>
243-
</Flex>
244-
</Typography>
245-
}
246-
>
247-
<InformationCircleIconOutline className='n-size-token-7' />
248-
</IconButtonWithToolTip>
231+
<Flex>
232+
<span>Documents, Images, Unstructured</span>
233+
<div className='align-self-center'>
234+
<IconButtonWithToolTip
235+
label='Source info'
236+
clean
237+
text={
238+
<Typography variant='body-small'>
239+
<Flex gap='3' alignItems='flex-start'>
240+
<span>Microsoft Office (.docx, .pptx, .xls)</span>
241+
<span>PDF (.pdf)</span>
242+
<span>Images (.jpeg, .jpg, .png, .svg)</span>
243+
<span>Text (.html, .txt , .md)</span>
244+
</Flex>
245+
</Typography>
246+
}
247+
>
248+
<InformationCircleIconOutline className='w-[22px] h-[22px]' />
249+
</IconButtonWithToolTip>
250+
</div>
251+
</Flex>
249252
</Typography>
250253
}
251254
dropZoneOptions={{

frontend/src/components/FileTable.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
Checkbox,
33
DataGrid,
44
DataGridComponents,
5+
Flex,
56
IconButton,
67
ProgressBar,
78
StatusIndicator,
@@ -250,18 +251,22 @@ const FileTable: React.FC<FileTableProps> = ({ isExpanded, connectionStatus, set
250251
cell: (info) => {
251252
if (info.row.original.fileSource === 'youtube' || info.row.original.fileSource === 'Wikipedia') {
252253
return (
253-
<>
254-
<TextLink externalLink href={info.row.original.source_url}>
255-
{info.row.original.fileSource}
256-
</TextLink>
257-
<Typography variant='body-medium'> / {info.row.original.type}</Typography>
258-
</>
254+
<Flex>
255+
<span>
256+
<TextLink externalLink href={info.row.original.source_url}>
257+
{info.row.original.fileSource}
258+
</TextLink>{' '}
259+
/
260+
</span>
261+
<Typography variant='body-medium'>{info.row.original.type}</Typography>
262+
</Flex>
259263
);
260264
}
261265
return (
262-
<i>
263-
{info.row.original.fileSource} / {info.row.original.type}
264-
</i>
266+
<div>
267+
<span>{info.row.original.fileSource} / </span>
268+
<span>{info.row.original.type}</span>
269+
</div>
265270
);
266271
},
267272
header: () => <span>Source/Type</span>,

frontend/src/utils/Constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export const queryMap: {
9191
};
9292

9393
export const tooltips = {
94-
generateGraph: `Only New files will be processed for Graph Visualization`,
95-
deleteFile: 'Please select a file to delete',
94+
generateGraph: `Only New files will be processed for the Graph generation`,
95+
deleteFile: 'Please select one or more files to delete',
9696
showGraph: 'Only completed files will be processed for Graph Visualization',
9797
bloomGraph: 'For advance Graph Visualization',
9898
deleteSelectedFiles: 'File/Files to be deleted',

0 commit comments

Comments
 (0)