From 35313608272cd631a617957a93a2081de2e5c11d Mon Sep 17 00:00:00 2001 From: Yusuf Suleman Date: Wed, 1 Apr 2026 22:32:40 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20brain=20colored=20folders/tags=20?= =?UTF-8?q?=E2=80=94=20color=20+=20icon=20fields,=20mobile=20pills?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backend: - Added color (hex) and icon (lucide name) columns to folders and tags - Default folders seeded with colors: Home=green, Work=indigo, Travel=blue, etc. - API returns color/icon in sidebar and CRUD responses - Create/update endpoints accept color and icon Frontend: - Mobile: horizontal scrollable pill tabs with colored dots - Desktop sidebar: colored dots next to folder names - Active pill gets tinted border matching folder color Co-Authored-By: Claude Opus 4.6 (1M context) --- .../lib/pages/brain/AtelierBrainPage.svelte | 72 +- .../lib/pages/budget/AtelierBudgetPage.svelte | 1165 ++++++++--------- services/brain/app/api/taxonomy.py | 30 +- services/brain/app/models/taxonomy.py | 21 +- 4 files changed, 646 insertions(+), 642 deletions(-) diff --git a/frontend-v2/src/lib/pages/brain/AtelierBrainPage.svelte b/frontend-v2/src/lib/pages/brain/AtelierBrainPage.svelte index 2ed8a7b..487bbde 100644 --- a/frontend-v2/src/lib/pages/brain/AtelierBrainPage.svelte +++ b/frontend-v2/src/lib/pages/brain/AtelierBrainPage.svelte @@ -23,8 +23,8 @@ assets: { id: string; asset_type: string; filename: string; content_type: string | null }[]; } - interface SidebarFolder { id: string; name: string; slug: string; is_active: boolean; item_count: number; } - interface SidebarTag { id: string; name: string; slug: string; is_active: boolean; item_count: number; } + interface SidebarFolder { id: string; name: string; slug: string; color?: string; icon?: string; is_active: boolean; item_count: number; } + interface SidebarTag { id: string; name: string; slug: string; color?: string; icon?: string; is_active: boolean; item_count: number; } let loading = $state(true); let items = $state([]); @@ -366,6 +366,7 @@