@filter:{selectedFilter.name}
diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css
index 9ad84489..3d929b8b 100644
--- a/frontend/src/app/globals.css
+++ b/frontend/src/app/globals.css
@@ -27,6 +27,8 @@
--accent-foreground: 0 0% 0%;
--destructive: 0 72% 51%;
--destructive-foreground: 0 0% 100%;
+ --warning: 48, 96%, 89%;
+ --warning-foreground: 26, 90%, 37%;
--border: 240 4.8% 95.9%;
--input: 240 6% 90%;
--ring: 0 0% 0%;
@@ -49,10 +51,6 @@
--component-icon: #d8598a;
--flow-icon: #2f67d0;
- /* Warning */
- --warning: 48 96.6% 76.7%;
- --warning-foreground: 240 6% 10%;
-
--radius: 0.5rem;
}
@@ -75,6 +73,8 @@
--accent-foreground: 0 0% 100%;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 100%;
+ --warning: 22, 78%, 26%;
+ --warning-foreground: 46, 97%, 65%;
--border: 240 3.7% 15.9%;
--input: 240 5% 34%;
--ring: 0 0% 100%;
diff --git a/frontend/src/app/knowledge/page.tsx b/frontend/src/app/knowledge/page.tsx
index 73d661ec..cf35486b 100644
--- a/frontend/src/app/knowledge/page.tsx
+++ b/frontend/src/app/knowledge/page.tsx
@@ -256,7 +256,7 @@ function SearchPage() {
{selectedFilter?.name && (
{selectedFilter?.name}
diff --git a/frontend/src/contexts/knowledge-filter-context.tsx b/frontend/src/contexts/knowledge-filter-context.tsx
index 18fc9a05..043f6fae 100644
--- a/frontend/src/contexts/knowledge-filter-context.tsx
+++ b/frontend/src/contexts/knowledge-filter-context.tsx
@@ -1,5 +1,6 @@
"use client";
+import { FilterColor, IconKey } from "@/components/filter-icon-popover";
import React, {
createContext,
type ReactNode,
@@ -27,9 +28,8 @@ export interface ParsedQueryData {
};
limit: number;
scoreThreshold: number;
- // Optional visual metadata for UI
- color?: "zinc" | "pink" | "purple" | "indigo" | "emerald" | "amber" | "red";
- icon?: string; // lucide icon key we store in the UI mapping
+ color: FilterColor;
+ icon: IconKey;
}
interface KnowledgeFilterContextType {
@@ -54,7 +54,7 @@ export function useKnowledgeFilter() {
const context = useContext(KnowledgeFilterContext);
if (context === undefined) {
throw new Error(
- "useKnowledgeFilter must be used within a KnowledgeFilterProvider",
+ "useKnowledgeFilter must be used within a KnowledgeFilterProvider"
);
}
return context;
@@ -127,7 +127,7 @@ export function KnowledgeFilterProvider({
limit: 10,
scoreThreshold: 0,
color: "zinc",
- icon: "Filter",
+ icon: "filter",
});
setIsPanelOpen(true);
};