Commit Graph

7 Commits

Author SHA1 Message Date
9b57a1a4be test(02-02): add AppLayout test scaffold for NAV-01 through NAV-04
- Mock ResizeObserver and matchMedia for SidebarProvider compatibility
- NAV-01: verify sidebar data-sidebar element renders
- NAV-02: verify data-testid=sidebar-wordmark gradient element
- NAV-03: verify active nav item has data-active=true
- NAV-04: verify SidebarTrigger Toggle Sidebar button renders
2026-03-11 21:48:15 +01:00
dfd88de03e test(02-01): add failing tests for AUTH-01 through AUTH-04 and install shadcn Alert
- Install shadcn Alert component (alert.tsx)
- LoginPage.test.tsx: 4 test cases for gradient bg, wordmark, Alert error, SVG icon
- RegisterPage.test.tsx: 2 test cases for gradient bg, wordmark
- All tests fail as expected (features not yet implemented)
2026-03-11 21:47:57 +01:00
90a15c20ce fix(01-02): resolve TypeScript build errors for production build
- Fix palette.test.ts: use type-only import for CategoryType (verbatimModuleSyntax)
- Fix vite.config.ts: import defineConfig from vitest/config for test property support
- Fix tsconfig.node.json: add vitest/globals to types array
- Fix AvailableBalance.tsx: split typed array and filter to preserve CategoryType literal
2026-03-11 21:00:24 +01:00
07041aed34 feat(01-02): wire palette.ts into all 6 dashboard components
- BillsTracker: headerGradient('bill'), InlineEditCell, amountColorClass
- VariableExpenses: headerGradient('variable_expense'), InlineEditCell, amountColorClass, palette bar chart colors
- DebtTracker: headerGradient('debt'), InlineEditCell, amountColorClass
- AvailableBalance: headerGradient('saving'), palette Cell fills, text-3xl center, text-success/text-destructive
- ExpenseBreakdown: headerGradient('variable_expense'), palette Cell fills
- FinancialOverview: overviewHeaderGradient(), hero typography (text-2xl px-6 py-5), palette row tints, amountColorClass
- Remove all PASTEL_COLORS arrays and InlineEditRow private functions
2026-03-11 20:57:53 +01:00
689c88fc3e feat(01-02): implement InlineEditCell shared component
- Shared TableCell with display/edit mode toggle
- Calls onSave(number) on blur or Enter key
- Skips save when value unchanged or NaN
- Accepts className for amount coloring
2026-03-11 20:56:19 +01:00
bb36aeb272 test(01-02): add failing tests for InlineEditCell
- renders formatted currency in display mode
- enters edit mode on click
- calls onSave with parsed number on blur/Enter
- does not call onSave when value unchanged
2026-03-11 20:56:04 +01:00
04cbb846d1 Init 2026-03-06 19:42:15 +00:00