Fix: Issues and style fixes related to the 'Memory' page (#12469)

### What problem does this PR solve?

Fix:  Some bugs
- Issues and style fixes related to the 'Memory' page
- Data source icon replacement
- Build optimization

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-01-07 10:03:54 +08:00
committed by GitHub
parent 6814ace1aa
commit 2a4627d9a0
25 changed files with 239 additions and 51 deletions

View File

@ -1,6 +1,6 @@
import ListFilterBar from '@/components/list-filter-bar';
import { t } from 'i18next';
import { useFetchMemoryMessageList } from './hook';
import { useFetchMemoryMessageList, useSelectFilters } from './hook';
import { MemoryTable } from './message-table';
export default function MemoryMessage() {
@ -11,25 +11,29 @@ export default function MemoryMessage() {
pagination,
handleInputChange,
setPagination,
// filterValue,
// handleFilterSubmit,
filterValue,
handleFilterSubmit,
loading,
} = useFetchMemoryMessageList();
const { filters } = useSelectFilters();
return (
<div className="flex flex-col gap-2">
<ListFilterBar
title="Dataset"
onSearchChange={handleInputChange}
searchString={searchString}
showFilter={false}
// showFilter={false}
// value={filterValue}
// onChange={handleFilterSubmit}
// onOpenChange={onOpenChange}
// filters={filters}
filters={filters}
onChange={handleFilterSubmit}
value={filterValue}
leftPanel={
<div className="items-start">
<div className="pb-1">{t('memory.sideBar.messages')}</div>
<div className="text-text-secondary text-sm">
<div className="text-text-secondary text-sm font-normal">
{t('memory.messages.messageDescription')}
</div>
</div>