diff --git a/frontend/src/pages/TreeLibraryPage.tsx b/frontend/src/pages/TreeLibraryPage.tsx index 9c12d8a0..1df82437 100644 --- a/frontend/src/pages/TreeLibraryPage.tsx +++ b/frontend/src/pages/TreeLibraryPage.tsx @@ -252,10 +252,10 @@ export function TreeLibraryPage() {
-

+

{typeFilter === 'procedural' ? 'Projects' : typeFilter === 'troubleshooting' ? 'Troubleshooting Flows' : 'Flow Library'}

-

+

{typeFilter === 'procedural' ? 'Step-by-step projects and runbooks' : typeFilter === 'troubleshooting' @@ -267,8 +267,8 @@ export function TreeLibraryPage() { @@ -288,16 +288,16 @@ export function TreeLibraryPage() { onChange={(e) => setSearchQuery(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && handleSearch()} className={cn( - 'flex-1 rounded-md border border-white/10 bg-black/50 px-3 py-2', - 'text-white placeholder:text-white/40', - 'focus:border-white/30 focus:outline-none focus:ring-1 focus:ring-white/20' + 'flex-1 rounded-md border border-border bg-card px-3 py-2', + 'text-foreground placeholder:text-muted-foreground', + 'focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/20' )} />

@@ -359,24 +359,24 @@ export function TreeLibraryPage() { {/* Active Filters */} {hasActiveFilters && (
- Filters: + Filters: {selectedFolderId && ( - + Folder )} {selectedCategoryId && ( - + {categories.find((c) => c.id === selectedCategoryId)?.name} @@ -385,12 +385,12 @@ export function TreeLibraryPage() { {selectedTags.map((tag) => ( {tag} @@ -398,7 +398,7 @@ export function TreeLibraryPage() { ))} @@ -409,12 +409,12 @@ export function TreeLibraryPage() { {visibleIncompleteSessions.length > 0 && (
{visibleIncompleteSessions.map(s => ( -
+
-

+

{s.tree_snapshot?.name || 'Unknown tree'}

-

+

{s.client_name && `${s.client_name} ยท `} Started {formatTimeAgo(s.started_at)}

@@ -422,14 +422,14 @@ export function TreeLibraryPage() {
@@ -447,8 +447,8 @@ export function TreeLibraryPage() { state: { prefillClientName: lastSessionData.client_name, prefillTicketNumber: lastSessionData.ticket_number }, })} className={cn( - 'flex items-center gap-2 rounded-lg border border-white/10 px-4 py-2.5 text-sm text-white/60', - 'hover:border-white/20 hover:bg-white/[0.04] hover:text-white' + 'flex items-center gap-2 rounded-lg border border-border px-4 py-2.5 text-sm text-muted-foreground', + 'hover:border-border hover:bg-accent hover:text-foreground' )} > @@ -461,10 +461,10 @@ export function TreeLibraryPage() { {/* Loading State */} {isLoading ? (
-
+
) : trees.length === 0 ? ( -
+
No flows found.{' '} {(searchQuery || hasActiveFilters) && 'Try adjusting your filters.'}