Skip to content

Commit 769d701

Browse files
authored
Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page infiniflow#9869 (infiniflow#10572)
### What problem does this PR solve? Fix: Optimize metadata filters, add Ingestion pipeline options to agent templates page ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
1 parent 8b512cd commit 769d701

File tree

8 files changed

+44
-21
lines changed

8 files changed

+44
-21
lines changed

web/src/components/metadata-filter/metadata-filter-conditions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function MetadataFilterConditions({
6363
<Plus />
6464
</Button>
6565
</DropdownMenuTrigger>
66-
<DropdownMenuContent>
66+
<DropdownMenuContent className="max-h-[300px] !overflow-y-auto scrollbar-auto">
6767
{Object.keys(metadata.data).map((key, idx) => {
6868
return (
6969
<DropdownMenuItem key={idx} onClick={add(key)}>

web/src/layouts/next-header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export function Header() {
161161
<RAGFlowAvatar
162162
name={nickname}
163163
avatar={avatar}
164+
isPerson
164165
className="size-8 cursor-pointer"
165166
onClick={navigateToOldProfile}
166167
></RAGFlowAvatar>

web/src/locales/en.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ This auto-tagging feature enhances retrieval by adding another layer of domain-s
955955
marketing: 'Marketing',
956956
consumerApp: 'Consumer App',
957957
other: 'Other',
958-
pipeline: 'Ingestion pipeline',
958+
ingestionPipeline: 'Ingestion Pipeline',
959959
agents: 'Agents',
960960
days: 'Days',
961961
beginInput: 'Begin Input',
@@ -1826,7 +1826,7 @@ Important structured information may include: names, dates, locations, events, k
18261826
},
18271827
datasetOverview: {
18281828
downloadTip: 'Files being downloaded from data sources. ',
1829-
processingTip: 'Files being processed by data pipelines.',
1829+
processingTip: 'Files being processed by Ingestion pipeline.',
18301830
totalFiles: 'Total Files',
18311831
downloading: 'Downloading',
18321832
downloadSuccessTip: 'Total successful downloads',

web/src/locales/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ Tokenizer 会根据所选方式将内容存储为对应的数据结构。`,
17161716
},
17171717
datasetOverview: {
17181718
downloadTip: '正在从数据源下载文件。',
1719-
processingTip: '正在由数据流处理文件。',
1719+
processingTip: '正在由pipeline处理文件。',
17201720
totalFiles: '文件总数',
17211721
downloading: '正在下载',
17221722
processing: '正在处理',

web/src/pages/agents/agent-templates.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export default function AgentTemplates() {
9191
return templateList;
9292
}
9393
return templateList.filter(
94-
(item, index) =>
94+
(item) =>
9595
item.canvas_type?.toLocaleLowerCase() ===
96-
selectMenuItem?.toLocaleLowerCase() || index === 0,
96+
selectMenuItem?.toLocaleLowerCase(),
9797
);
9898
}, [selectMenuItem, templateList]);
9999

web/src/pages/home/application-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function ApplicationCard({
2828
name={app.title || 'CN'}
2929
></RAGFlowAvatar>
3030
<div className="flex-1">
31-
<h3 className="text-sm font-normal line-clamp-1 mb-1 text-ellipsis w-[180px] overflow-hidden">
31+
<h3 className="text-sm font-normal line-clamp-1 mb-1 text-ellipsis w-[160px] overflow-hidden">
3232
{app.title}
3333
</h3>
3434
<p className="text-xs font-normal text-text-secondary">

web/src/pages/login-next/card.tsx

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,35 @@ const FlipCard3D = (props: IProps) => {
1616
setIsFlipped(true);
1717
}
1818
}, [isLoginPage]);
19-
19+
const isBackfaceVisibilitySupported = () => {
20+
return (
21+
CSS.supports('backface-visibility', 'hidden') ||
22+
CSS.supports('-webkit-backface-visibility', 'hidden') ||
23+
CSS.supports('-moz-backface-visibility', 'hidden') ||
24+
CSS.supports('-ms-backface-visibility', 'hidden')
25+
);
26+
};
2027
return (
21-
<div className="relative w-full h-full perspective-1000">
22-
<div
23-
className={`relative w-full h-full transition-transform transform-style-3d ${isFlipped ? 'rotate-y-180' : ''}`}
24-
>
25-
{/* Front Face */}
26-
<div className="absolute inset-0 flex items-center justify-center backface-hidden">
27-
{children}
28-
</div>
28+
<>
29+
{isBackfaceVisibilitySupported() && (
30+
<div className="relative w-full h-full perspective-1000">
31+
<div
32+
className={`relative w-full h-full transition-transform transform-style-3d ${isFlipped ? 'rotate-y-180' : ''}`}
33+
>
34+
{/* Front Face */}
35+
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-0">
36+
{children}
37+
</div>
2938

30-
{/* Back Face */}
31-
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-180">
32-
{children}
39+
{/* Back Face */}
40+
<div className="absolute inset-0 flex items-center justify-center backface-hidden rotate-y-180">
41+
{children}
42+
</div>
43+
</div>
3344
</div>
34-
</div>
35-
</div>
45+
)}
46+
{!isBackfaceVisibilitySupported() && <>{children}</>}
47+
</>
3648
);
3749
};
3850

web/src/pages/login-next/index.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,29 @@
4242
//////////////////////////////////////////////////////////////////////////
4343
.perspective-1000 {
4444
perspective: 1000px;
45+
-webkit-perspective: 1000px;
4546
overflow: hidden;
4647
min-height: 680px;
4748
display: flex;
4849
align-items: center;
4950
}
5051
.transform-style-3d {
5152
transform-style: preserve-3d;
53+
-webkit-transform-style: preserve-3d;
5254
transition-duration: 0.4s;
5355
}
5456
.backface-hidden {
5557
backface-visibility: hidden;
58+
-webkit-backface-visibility: hidden; /* Chrome、Safari */
59+
-moz-backface-visibility: hidden; /* Firefox */
60+
-ms-backface-visibility: hidden; /* Internet Explorer */
5661
}
5762

5863
.rotate-y-180 {
5964
transform: rotateY(180deg);
65+
-webkit-transform: rotateY(180deg);
66+
}
67+
.rotate-y-0 {
68+
transform: rotateY(0deg);
69+
-webkit-transform: rotateY(0deg);
6070
}

0 commit comments

Comments
 (0)