From e6a48ff7c8d390bcf740d921b95754e23431d861 Mon Sep 17 00:00:00 2001 From: Cole Goldsmith Date: Wed, 1 Oct 2025 15:24:53 -0500 Subject: [PATCH 1/8] modify colors and improve various components to match designs --- frontend/components/filter-icon-popover.tsx | 2 +- .../components/knowledge-filter-panel.tsx | 147 ++++++++---------- frontend/components/ui/button.tsx | 2 +- frontend/components/ui/multi-select.tsx | 123 +++++++-------- frontend/components/ui/slider.tsx | 6 +- frontend/package-lock.json | 9 -- frontend/package.json | 1 - frontend/src/app/globals.css | 66 ++++---- frontend/tailwind.config.ts | 2 - 9 files changed, 159 insertions(+), 199 deletions(-) diff --git a/frontend/components/filter-icon-popover.tsx b/frontend/components/filter-icon-popover.tsx index c0ce416b..72504759 100644 --- a/frontend/components/filter-icon-popover.tsx +++ b/frontend/components/filter-icon-popover.tsx @@ -133,7 +133,7 @@ export function FilterIconPopover({ type="button" onClick={() => onColorChange(c)} className={cn( - "flex items-center justify-center h-6 w-6 rounded-sm transition-colors text-primary", + "flex items-center justify-center h-6 w-6 rounded-sm transition-colors text-white", colorSwatchClasses[c] )} aria-label={c} diff --git a/frontend/components/knowledge-filter-panel.tsx b/frontend/components/knowledge-filter-panel.tsx index 0425fba9..1f558d01 100644 --- a/frontend/components/knowledge-filter-panel.tsx +++ b/frontend/components/knowledge-filter-panel.tsx @@ -3,7 +3,13 @@ import { useState, useEffect } from "react"; import { X, Save, RefreshCw } from "lucide-react"; import { Button } from "@/components/ui/button"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { + Card, + CardContent, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; @@ -146,25 +152,6 @@ export function KnowledgeFilterPanel() { // Don't render if panel is closed or we don't have any data if (!isPanelOpen || !parsedFilterData) return null; - const selectAllFilters = () => { - // Use wildcards instead of listing all specific items - setSelectedFilters({ - data_sources: ["*"], - document_types: ["*"], - owners: ["*"], - connector_types: ["*"], - }); - }; - - const clearAllFilters = () => { - setSelectedFilters({ - data_sources: [], - document_types: [], - owners: [], - connector_types: [], - }); - }; - const handleSaveConfiguration = async () => { if (!name.trim()) return; const filterData = { @@ -238,8 +225,8 @@ export function KnowledgeFilterPanel() { }; return ( -
- +
+
@@ -282,13 +269,19 @@ export function KnowledgeFilterPanel() { {formatDate(selectedFilter.created_at)}
)} + {createMode && ( +
+ Created{" "} + {formatDate(new Date().toISOString())} +
+ )}