From 2b6abcef2e11d25337c6a09136e46ae2e36908d6 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Sat, 7 Mar 2026 20:14:06 -0500 Subject: [PATCH] refactor: convert to OKLCH colors, move keyframes into @theme (Phase 3-4) - Replaced all HSL color indirection with direct OKLCH values in @theme - Moved all keyframes inside @theme block (v4 pattern) - Eliminated hsl(var(--x)) double-indirection across 17 component files - Replaced hsl() inline styles with var(--color-*) theme references - Cleaned up redundant rdp-* utility blocks - Fixed @custom-variant dark syntax to use :where() - Added sidebar/glass/shadow vars as OKLCH in :root Co-Authored-By: Claude Opus 4.6 --- .../analytics/FlowAnalyticsPanel.tsx | 14 +- .../src/components/dashboard/OpenSessions.tsx | 2 +- .../src/components/dashboard/QuickStats.tsx | 2 +- .../components/dashboard/SessionsPanel.tsx | 2 +- .../src/components/dashboard/TreeListItem.tsx | 4 +- .../components/dashboard/WeeklyCalendar.tsx | 2 +- frontend/src/components/layout/AppLayout.tsx | 8 +- frontend/src/components/layout/NavItem.tsx | 14 +- frontend/src/components/layout/Sidebar.tsx | 2 +- .../src/components/sidebar/CategoryList.tsx | 8 +- .../components/sidebar/PinnedFlowsSection.tsx | 2 +- .../src/components/tree-editor/FlowCanvas.tsx | 2 +- .../src/components/tree-editor/TreeCanvas.tsx | 2 +- .../components/tree-editor/useTreeLayout.ts | 14 +- frontend/src/index.css | 765 ++++++------------ frontend/src/pages/MyAnalyticsPage.tsx | 14 +- frontend/src/pages/SurveyPage.tsx | 12 +- frontend/src/pages/TeamAnalyticsPage.tsx | 14 +- 18 files changed, 323 insertions(+), 560 deletions(-) diff --git a/frontend/src/components/analytics/FlowAnalyticsPanel.tsx b/frontend/src/components/analytics/FlowAnalyticsPanel.tsx index 54f9bd27..19923775 100644 --- a/frontend/src/components/analytics/FlowAnalyticsPanel.tsx +++ b/frontend/src/components/analytics/FlowAnalyticsPanel.tsx @@ -113,31 +113,31 @@ export function FlowAnalyticsPanel({ treeId }: FlowAnalyticsPanelProps) { { const d = new Date(String(value)) return `${d.getMonth() + 1}/${d.getDate()}` }} /> { diff --git a/frontend/src/components/dashboard/OpenSessions.tsx b/frontend/src/components/dashboard/OpenSessions.tsx index 88c77695..310a2488 100644 --- a/frontend/src/components/dashboard/OpenSessions.tsx +++ b/frontend/src/components/dashboard/OpenSessions.tsx @@ -45,7 +45,7 @@ export function OpenSessions({ sessions }: OpenSessionsProps) { {session.stepNumber && session.totalSteps ? `Step ${session.stepNumber} of ${session.totalSteps}` : 'In progress'} - · + · {session.timeAgo} diff --git a/frontend/src/components/dashboard/QuickStats.tsx b/frontend/src/components/dashboard/QuickStats.tsx index 506a6018..f98de76b 100644 --- a/frontend/src/components/dashboard/QuickStats.tsx +++ b/frontend/src/components/dashboard/QuickStats.tsx @@ -35,7 +35,7 @@ export function QuickStats({ stats }: QuickStatsProps) { {stat.value}

{stat.meta && ( -

{stat.meta}

+

{stat.meta}

)} ))} diff --git a/frontend/src/components/dashboard/SessionsPanel.tsx b/frontend/src/components/dashboard/SessionsPanel.tsx index 52df7dea..aa49a20d 100644 --- a/frontend/src/components/dashboard/SessionsPanel.tsx +++ b/frontend/src/components/dashboard/SessionsPanel.tsx @@ -64,7 +64,7 @@ export function SessionsPanel({ sessions, delay = 200 }: SessionsPanelProps) { {/* Time */} - + {session.timeAgo} diff --git a/frontend/src/components/dashboard/TreeListItem.tsx b/frontend/src/components/dashboard/TreeListItem.tsx index 22d80a39..5561e7a3 100644 --- a/frontend/src/components/dashboard/TreeListItem.tsx +++ b/frontend/src/components/dashboard/TreeListItem.tsx @@ -33,7 +33,7 @@ export function TreeListItem({ return (
navigate(getTreeNavigatePath(id, treeType))} - className="group grid cursor-pointer items-center gap-3 rounded-lg border border-transparent bg-card px-4 py-3 transition-colors hover:border-border hover:bg-[hsl(var(--sidebar-hover))]" + className="group grid cursor-pointer items-center gap-3 rounded-lg border border-transparent bg-card px-4 py-3 transition-colors hover:border-border hover:bg-[var(--sidebar-hover)]" style={{ gridTemplateColumns: '40px 1fr 130px 80px 100px 40px' }} > {/* Icon box */} @@ -75,7 +75,7 @@ export function TreeListItem({
{/* Updated */} -
+
{timeAgo}
diff --git a/frontend/src/components/dashboard/WeeklyCalendar.tsx b/frontend/src/components/dashboard/WeeklyCalendar.tsx index 4f46e96b..db289cfe 100644 --- a/frontend/src/components/dashboard/WeeklyCalendar.tsx +++ b/frontend/src/components/dashboard/WeeklyCalendar.tsx @@ -65,7 +65,7 @@ export function WeeklyCalendar({ events = {} }: WeeklyCalendarProps) {
{dayEvents.length === 0 ? ( -

No events

+

No events

) : ( dayEvents.map(event => (
setMobileMenuOpen(false)} aria-hidden="true" /> -