mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-06 02:07:49 +08:00
Fix: replace session page icons and fix nested list search functionality in filters (#13127)
### What problem does this PR solve? Fix: replace session page icons and fix nested list search functionality in filters ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.3 KiB |
@ -74,7 +74,7 @@ const FilterItem = memo(
|
||||
<FormControl>
|
||||
<div className="flex space-x-3">
|
||||
<Checkbox
|
||||
checked={field.value?.includes(item.id.toString())}
|
||||
checked={field.value?.includes?.(item.id.toString())}
|
||||
onCheckedChange={(checked: boolean) =>
|
||||
handleCheckChange({ checked, field, item })
|
||||
}
|
||||
|
||||
@ -61,12 +61,12 @@ const filterNestedList = (
|
||||
return false;
|
||||
})
|
||||
.map((item) => {
|
||||
if (item.list && item.list.length > 0) {
|
||||
return {
|
||||
...item,
|
||||
list: filterNestedList(item.list, searchTerm),
|
||||
};
|
||||
}
|
||||
// if (item.list && item.list.length > 0) {
|
||||
// return {
|
||||
// ...item,
|
||||
// list: filterNestedList(item.list, searchTerm),
|
||||
// };
|
||||
// }
|
||||
return item;
|
||||
});
|
||||
};
|
||||
|
||||
@ -232,6 +232,7 @@ Example: A 1 KB message with 1024-dim embedding uses ~9 KB. The 5 MB default lim
|
||||
description: 'Description',
|
||||
fieldName: 'Field name',
|
||||
editMetadata: 'Edit metadata',
|
||||
addMetadata: 'Add metadata',
|
||||
deleteWarn: 'This {{field}} will be removed from all associated files',
|
||||
deleteManageFieldAllWarn:
|
||||
'This field and all its corresponding values will be deleted from all associated files.',
|
||||
|
||||
@ -207,6 +207,7 @@ export default {
|
||||
description: '描述',
|
||||
fieldName: '字段名称',
|
||||
editMetadata: '编辑元数据',
|
||||
addMetadata: '添加元数据',
|
||||
deleteWarn: '此 {{field}} 将从所有关联文件中移除',
|
||||
deleteManageFieldAllWarn:
|
||||
'此字段及其所有对应值将从所有关联的文件中删除。',
|
||||
|
||||
@ -552,7 +552,9 @@ export const ManageMetadataModal = (props: IManageModalProps) => {
|
||||
{metadataType === MetadataType.Setting ||
|
||||
metadataType === MetadataType.SingleFileSetting
|
||||
? t('knowledgeDetails.metadata.fieldSetting')
|
||||
: t('knowledgeDetails.metadata.editMetadata')}
|
||||
: isAddValueMode
|
||||
? t('knowledgeDetails.metadata.addMetadata')
|
||||
: t('knowledgeDetails.metadata.editMetadata')}
|
||||
</div>
|
||||
}
|
||||
type={metadataType}
|
||||
@ -569,7 +571,6 @@ export const ManageMetadataModal = (props: IManageModalProps) => {
|
||||
isShowValueSwitch={isShowValueSwitch}
|
||||
isShowType={true}
|
||||
isVerticalShowValue={isVerticalShowValue}
|
||||
isAddValueMode={isAddValueMode}
|
||||
// handleDeleteSingleValue={handleDeleteSingleValue}
|
||||
// handleDeleteSingleRow={handleDeleteSingleRow}
|
||||
/>
|
||||
|
||||
@ -12,7 +12,14 @@ import {
|
||||
useRemoveConversation,
|
||||
} from '@/hooks/use-chat-request';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { Check, PanelLeftClose, Plus, Trash2 } from 'lucide-react';
|
||||
import {
|
||||
Check,
|
||||
CopyX,
|
||||
PanelLeftClose,
|
||||
Plus,
|
||||
Trash2,
|
||||
Undo2,
|
||||
} from 'lucide-react';
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useHandleClickConversationCard } from '../hooks/use-click-card';
|
||||
@ -148,7 +155,7 @@ export function Sessions({ handleConversationCardClick }: SessionProps) {
|
||||
className="size-6"
|
||||
onClick={exitSelectionMode}
|
||||
>
|
||||
<img src="/return2.png" alt="返回" className="h-4 w-4" />
|
||||
<Undo2 size={16} />
|
||||
</Button>
|
||||
<ConfirmDeleteDialog
|
||||
onOk={handleBatchDelete}
|
||||
@ -188,11 +195,12 @@ export function Sessions({ handleConversationCardClick }: SessionProps) {
|
||||
{selectionMode && allSelected ? (
|
||||
<Check className="h-4 w-4" />
|
||||
) : (
|
||||
<img
|
||||
src="/batch_delete2.png"
|
||||
alt="批量删除"
|
||||
className="h-4 w-4"
|
||||
/>
|
||||
<CopyX className="h-4 w-4" />
|
||||
// <img
|
||||
// src="/batch_delete2.png"
|
||||
// alt="批量删除"
|
||||
// className="h-4 w-4"
|
||||
// />
|
||||
)}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user