Commit Graph

123 Commits

Author SHA1 Message Date
fddd8d1ea8 docs(01-02): complete palette wiring plan — all 6 dashboard components use design tokens
- Created 01-02-SUMMARY.md documenting InlineEditCell extraction and palette integration
- Updated STATE.md: progress bar 100%, decisions logged, session recorded
- Updated ROADMAP.md: Phase 1 marked Complete (2/2 plans)
- Marked requirements DSGN-03, DSGN-04, FIX-02 complete in REQUIREMENTS.md
2026-03-11 21:20:19 +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
d9cb292ef1 docs(01-01): complete design token foundation plan
- Add 01-01-SUMMARY.md with full task record and decisions
- Update STATE.md with progress, decisions, and session info (50% phase complete)
- Update ROADMAP.md plan progress (phase 1: 1/2 plans done)
- Mark DSGN-01, DSGN-02, DSGN-05 requirements complete
2026-03-11 20:54:30 +01:00
6859b30347 feat(01-01): implement palette.ts as single source of truth for category colors
- Export CategoryType union type with 7 category strings
- Export CategoryShades interface with light/medium/base fields
- Export palette Record with oklch values matching --chart-* CSS tokens
- Export headerGradient() returning CSSProperties with linear-gradient
- Export overviewHeaderGradient() with multi-stop sky/lavender/green gradient
- Export amountColorClass() for text-success/text-warning/text-destructive
- All 20 unit tests pass
2026-03-11 20:52:41 +01:00
d5fc10de46 test(01-01): add failing tests for palette module
- Tests cover all 7 CategoryType values with 3 shades each
- Tests for headerGradient returning valid CSSProperties with linear-gradient
- Tests for overviewHeaderGradient multi-stop gradient
- Tests for amountColorClass: income, available, and expense paths
2026-03-11 20:52:06 +01:00
3f97d07f4e feat(01-01): replace CSS tokens with pastel oklch values
- Update all :root tokens with lavender-tinted pastel oklch values
- Map --chart-1 through --chart-5 to category base colors (bill, variable_expense, debt, saving, investment)
- Add --success and --warning semantic tokens with foreground pairs
- Register --color-success and --color-warning in @theme inline for Tailwind utility access
- Preserve --card and --popover as pure white (intentional locked decision)
- Leave .dark block unchanged (out of scope)
2026-03-11 20:51:26 +01:00
cbf355273a chore(01-01): install vitest test infrastructure
- Add vitest, @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, jsdom
- Configure vite.config.ts with jsdom test environment and globals
- Add test-setup.ts importing jest-dom matchers
2026-03-11 20:50:30 +01:00
d9e65a43c2 docs(01): create phase plan 2026-03-11 19:26:25 +01:00
5aa64ab178 docs(01): add research and validation strategy 2026-03-11 19:20:19 +01:00
e54acc9827 docs(01): research phase design token foundation 2026-03-11 19:19:17 +01:00
d0b1b9291e docs(state): record phase 1 context session 2026-03-11 19:13:08 +01:00
f217c0bfe9 docs(01): capture phase context 2026-03-11 19:13:00 +01:00
b90ff15843 docs: create roadmap (4 phases) 2026-03-11 19:00:10 +01:00
32dd5421b3 docs: define v1 requirements 2026-03-11 18:56:19 +01:00
30424adfb3 docs: complete project research 2026-03-11 18:51:09 +01:00
fd3be097b7 chore: add project config 2026-03-11 18:39:52 +01:00
e8e97cffc0 docs: initialize project 2026-03-11 18:37:24 +01:00
b9e4d82d1a docs: map existing codebase 2026-03-11 18:20:14 +01:00
04cbb846d1 Init 2026-03-06 19:42:15 +00:00
abcbe3e1e5 Initial commit 2026-03-04 17:16:49 +00:00