diff --git a/web/app/components/app/annotation/index.tsx b/web/app/components/app/annotation/index.tsx index 8718890e35..32d0c799fc 100644 --- a/web/app/components/app/annotation/index.tsx +++ b/web/app/components/app/annotation/index.tsx @@ -139,7 +139,7 @@ const Annotation: FC = (props) => { return (

{t('appLog.description')}

-
+
{isChatApp && ( diff --git a/web/app/components/app/annotation/list.tsx b/web/app/components/app/annotation/list.tsx index 70ecedb869..4135b4362e 100644 --- a/web/app/components/app/annotation/list.tsx +++ b/web/app/components/app/annotation/list.tsx @@ -54,95 +54,97 @@ const List: FC = ({ }, [isAllSelected, list, selectedIds, onSelectedIdsChange]) return ( -
- - - - - - - - - - - - - {list.map(item => ( - { - onView(item) - } - } - > - + {list.map(item => ( + { + onView(item) + } + } + > + + + + + + + + ))} + +
- - {t('appAnnotation.table.header.question')}{t('appAnnotation.table.header.answer')}{t('appAnnotation.table.header.createdAt')}{t('appAnnotation.table.header.hits')}{t('appAnnotation.table.header.actions')}
e.stopPropagation()}> + <> +
+ + + + - - - - - + + + + + - ))} - -
{ - if (selectedIds.includes(item.id)) - onSelectedIdsChange(selectedIds.filter(id => id !== item.id)) - else - onSelectedIdsChange([...selectedIds, item.id]) - }} + checked={isAllSelected} + indeterminate={!isAllSelected && isSomeSelected} + onCheck={handleSelectAll} /> {item.question}{item.answer}{formatTime(item.created_at, t('appLog.dateTimeFormat') as string)}{item.hit_count} e.stopPropagation()}> - {/* Actions */} -
- onView(item)}> - - - { - setCurrId(item.id) - setShowConfirmDelete(true) - }} - > - - -
-
{t('appAnnotation.table.header.question')}{t('appAnnotation.table.header.answer')}{t('appAnnotation.table.header.createdAt')}{t('appAnnotation.table.header.hits')}{t('appAnnotation.table.header.actions')}
- setShowConfirmDelete(false)} - onRemove={() => { - onRemove(currId as string) - setShowConfirmDelete(false) - }} - /> + +
e.stopPropagation()}> + { + if (selectedIds.includes(item.id)) + onSelectedIdsChange(selectedIds.filter(id => id !== item.id)) + else + onSelectedIdsChange([...selectedIds, item.id]) + }} + /> + {item.question}{item.answer}{formatTime(item.created_at, t('appLog.dateTimeFormat') as string)}{item.hit_count} e.stopPropagation()}> + {/* Actions */} +
+ onView(item)}> + + + { + setCurrId(item.id) + setShowConfirmDelete(true) + }} + > + + +
+
+ setShowConfirmDelete(false)} + onRemove={() => { + onRemove(currId as string) + setShowConfirmDelete(false) + }} + /> +
{selectedIds.length > 0 && ( )} -
+ ) } export default React.memo(List) diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx index 54cc345d2e..d21d35eeee 100644 --- a/web/app/components/app/log/list.tsx +++ b/web/app/components/app/log/list.tsx @@ -1030,8 +1030,8 @@ const ConversationList: FC = ({ logs, appDetail, onRefresh }) return return ( -
- +
+
diff --git a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx index 900ab3fb5a..c152ec5400 100644 --- a/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx +++ b/web/app/components/datasets/documents/detail/completed/common/batch-action.tsx @@ -44,8 +44,8 @@ const BatchAction: FC = ({ hideDeleteConfirm() } return ( -
-
+
+
{selectedIds.length} diff --git a/web/app/components/datasets/documents/index.tsx b/web/app/components/datasets/documents/index.tsx index 40e6d48a41..e09ab44701 100644 --- a/web/app/components/datasets/documents/index.tsx +++ b/web/app/components/datasets/documents/index.tsx @@ -283,7 +283,7 @@ const Documents: FC = ({ datasetId }) => { }) return ( -
+

{t('datasetDocuments.list.title')}

@@ -298,7 +298,7 @@ const Documents: FC = ({ datasetId }) => {
-
+
= ({ }, []) return ( -
-
-
+
+
+
@@ -455,7 +455,7 @@ const DocumentList: FC = ({ {pagination.total && ( )}