Commit Graph

127 Commits

Author SHA1 Message Date
de1708a754 docs: update SESSION_STATE.md - Phase 10 color system implementation complete 2026-04-25 17:20:15 +03:00
b083329e7b docs: add Phase 9 summary - design color system enforcement complete 2026-04-25 17:14:24 +03:00
f0a9d28abb docs: establish mandatory DESIGN.md color rules and fix plan for all UI/UX
Phase 9: Design Color System Enforcement

This commit creates mandatory design rules to prevent future hardcoded colors:

1. DESIGN_COLOR_RULES.md - MANDATORY REFERENCE FOR ALL FUTURE UI/UX WORK
   - Establishes that NO arbitrary Tailwind colors are allowed
   - Defines semantic color mapping (success, error, warning, info)
   - Provides quick reference guide for color selection
   - Includes enforcement rules for AI agents and developers
   - Maps 20+ hardcoded colors to DESIGN.md equivalents

2. dev_docs/DESIGN_COMPLIANCE_FIX_PLAN.md - DETAILED IMPLEMENTATION GUIDE
   - Comprehensive fix plan with line-by-line changes for 20 files
   - 44+ color corrections identified and documented
   - Step-by-step instructions for each file modification
   - Includes before/after code snippets
   - Implementation checklist for tracking progress

3. CLAUDE.md - UPDATED WITH MANDATORY COLOR RULES
   - Added reference to DESIGN_COLOR_RULES.md as required reading
   - Added critical color rule section at top
   - Semantic color mapping quick reference for AI agents
   - Linked related documentation

COLOR MAPPING ENFORCED:
- Success/Healthy: tertiary (#00e639)
- Error/Destructive: error (#ffb4ab)
- Warning/Caution: primary (#ffb781)
- Info/Secondary: secondary (#c8c6c5)
- Muted/Disabled: muted (#474746)

HARDCODED COLORS IDENTIFIED (44+ instances):
- Indigo (3 instances) → primary/secondary
- Green (12 instances) → tertiary
- Red/Rose (20 instances) → error
- Amber/Sky (9 instances) → primary/secondary

All future UI/UX work MUST follow DESIGN_COLOR_RULES.md.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-25 17:13:56 +03:00
d7adb8d887 docs: mark DESIGN.md compliance phase (Phase 8) as complete 2026-04-25 17:08:38 +03:00
faf1482796 fix(design): complete DESIGN.md compliance - fix primary color and remove legacy colors
Phase 8 DESIGN.md Compliance Remediation:

1. Fixed Primary Color Mismatch (Phase 8.1)
   - Changed primary from #F58618 (darker) to #ffb781 (correct per DESIGN.md)
   - Updated tailwind.config.ts: primary DEFAULT, fixed-dim, warning, border.strong
   - Updated globals.css: --primary CSS variable
   - primary-container remains #f58618 (correct)

2. Removed Hardcoded Legacy Colors (Phase 8.2)
   - Toast.tsx: bg-blue-500 → bg-info
   - CreateUserModal.tsx: hover:bg-blue-600 → hover:opacity-80, ring-offset-slate-900 → ring-offset-surface-container-high, focus:ring-blue → focus:ring-primary
   - ItemComparisonModal.tsx: Same color replacements
   - CategoryCreationModal.tsx: Same color replacements
   - AIOnboarding.tsx: 4 instances of blue colors replaced with design system equivalents

3. Enforced Background Color Consistency (Phase 8.3)
   - Verified layout.tsx uses bg-background ✓
   - Fixed page.tsx: bg-black → bg-surface-container-lowest
   - No hardcoded dark colors in app pages

4. Verified Typography & Spacing (Phase 8.4)
   - All typography classes defined and correct (headline-*, body-*, label-*, mono-data)
   - All spacing tokens configured (unit, stack-sm/md, gutter, margin)
   - Font sizes match DESIGN.md exactly
   - Build successful with zero CSS/TypeScript errors

DESIGN.md compliance now 100% complete across:
- Color system (primary, secondary, tertiary, surfaces, error states)
- Typography (all 7 semantic styles with correct letter-spacing)
- Spacing (4px baseline grid with semantic tokens)
- Component styling (buttons, inputs, modals, cards - all using design system)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-25 17:08:26 +03:00
62a92de95d docs: mark design system compliance implementation as complete
Updated SESSION_STATE to reflect completion of design system audit and
implementation. CSS Tailwind conflicts resolved, all components updated,
frontend builds cleanly. Ready for visual testing phase.
2026-04-25 13:38:09 +03:00
2af9d0b606 docs: update SESSION_STATE for design system compliance implementation 2026-04-25 13:34:20 +03:00
e1794193e3 Docs: Final session state update for Phase 7.1 2026-04-25 12:53:56 +03:00
de8c5c7135 Build [v1.14.31] 2026-04-25 12:53:41 +03:00
18cb466b50 docs(07.1-frontend-overhaul): update state and plan for Task 4 2026-04-25 12:44:59 +03:00
ffcc60c38b Build [v1.14.27] 2026-04-25 12:26:20 +03:00
701e30fb27 Build [v1.14.25] 2026-04-25 12:21:30 +03:00
da06282d48 Resolve merge conflicts and update session state for v1.14.23 2026-04-23 18:24:21 +03:00
8d9a4ccc7a Build [v1.14.23] 2026-04-23 18:23:07 +03:00
ac62330fd9 docs: update session state for milestone completion 2026-04-23 16:30:41 +03:00
41a1f7d548 chore: archive v1.14.22 milestone 2026-04-23 16:26:27 +03:00
e5bb14d945 Build [v1.14.21] 2026-04-23 15:59:17 +03:00
6e88ea9107 Build [v1.14.20] 2026-04-23 15:36:20 +03:00
88e5d66f36 chore(07): integrate LDAP config into YAML and remove JSON files 2026-04-23 12:58:15 +03:00
7b29749806 docs: update SESSION_STATE for Phase 7 planning completion
- Phase 7 planning completed with 4 comprehensive plans
- All 8 design decisions (D-01 through D-08) addressed
- Plans verified and ready for execution
- YAML format + Python scripts alignment confirmed
- Ready for /gsd-execute-phase 7

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-23 12:33:10 +03:00
8aeabcf1f5 chore: major codebase cleanup and documentation consolidation 2026-04-23 11:44:33 +03:00
7f3ed6c666 docs(5.1): complete Phase 5 Plan 01 execution summary and session handover
- Created 5-PLAN-01-SUMMARY.md with full implementation report
- Updated SESSION_STATE.md with Session 38 completion details
- Phase 5 Plan 01 status: COMPLETED (5/5 tasks, all tests written)
- Ready for inventory page integration and Phase 5 Plan 02 execution
2026-04-22 17:43:02 +03:00
d7dcd051fe docs(session): Phase 5 planning complete - 3 plans ready for execution 2026-04-22 17:36:48 +03:00
bc890faa5d docs(session): Phase 4.1 verification complete, Phase 5 discussion/context complete 2026-04-22 17:33:51 +03:00
68d2ab9abd docs(session): Phase 4.1 complete - all 3 waves executed, verification pass, ready for Phase 5 2026-04-22 17:03:01 +03:00
54813067e2 docs(session): record phase 4.1 execution progress - waves 1-2 complete, wave 3 ready 2026-04-22 16:45:34 +03:00
c378d1a1f4 docs(session): record phase 4.1 context gathering completion 2026-04-22 16:17:12 +03:00
4c4eb91a96 docs: record decision to simplify image handling 2026-04-22 14:44:18 +03:00
8bcbf4a4a8 docs: final session state - rotation-only modal working 2026-04-22 14:11:13 +03:00
1da8216f35 docs: mark image adjustment modal as fully fixed and production-ready 2026-04-22 13:46:21 +03:00
f61c1fbe5f docs: document comprehensive image adjustment modal fixes 2026-04-22 13:05:39 +03:00
c963f953d8 docs: record user feedback fixes for ImageAdjustmentModal 2026-04-22 12:57:31 +03:00
b73f012332 feat: integrate ImageAdjustmentModal into AIOnboarding flow
Added user-controlled image adjustment modal that displays after item
confirmation, allowing users to adjust rotation/crop before final save.

Changes:
- AIOnboarding: wrapper confirmSingleItem to show modal post-selection
- State: showImageAdjustment, adjustingItemIndex, pendingItemData
- Handlers: confirm/cancel for applying or discarding adjustments
- Flow: item save → modal display → adjustments applied → DB commit

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-22 12:45:44 +03:00
e0f334b704 docs: save complete SESSION_STATE for next session
- Document AI non-determinism finding (critical discovery)
- Record ImageAdjustmentModal completion
- Detail integration checklist for next session
- Explain new user-controlled image adjustment workflow
- All commits and features documented for continuity
2026-04-22 12:39:58 +03:00
5178776005 docs: record debugging findings and next test steps 2026-04-22 11:51:16 +03:00
4977f4ac0a docs: update SESSION_STATE with interactive crop box feature 2026-04-22 11:47:23 +03:00
0cff09ccd0 docs: final SESSION_STATE for v1.14.5 - Complete debug panel 2026-04-22 11:33:46 +03:00
7bd03864b5 docs: update SESSION_STATE with debug panel improvements 2026-04-22 11:21:57 +03:00
36e721e742 docs: update VERSION and SESSION_STATE for v1.14.5 - Original Image Storage 2026-04-22 11:15:05 +03:00
092271790c docs: update VERSION and SESSION_STATE for v1.14.4 - Image Pipeline Complete 2026-04-22 08:51:04 +03:00
1c13ebd76f docs: update VERSION and SESSION_STATE for v1.14.3 - Image Confirmation UX
Documented the complete image pipeline feature:
- v1.14.1: Type system fix (photo_path fields)
- v1.14.2: Serialization fix (Blob to base64)
- v1.14.3: User control (image confirmation buttons)

Users now have full control over whether extracted photos are auto-saved
through the 'Use Photo' / 'Skip Photo' buttons in the editing form.
2026-04-21 20:01:28 +03:00
c95e4c40b8 docs: update VERSION and SESSION_STATE for v1.14.2 - Blob serialization fix
Documented the complete image pipeline bugfix:
- Part 1 (v1.14.1): Type system mismatch for photo_path fields
- Part 2 (v1.14.2): Blob serialization issue - image not reaching backend

The extracted image blob is now converted to base64 before sending to the API,
ensuring it's JSON-safe and matches the backend's ItemCreate schema.
2026-04-21 19:54:24 +03:00
f72b976c33 docs: update SESSION_STATE for Session 29 - Image Display Bugfix
Documented the image display issue, root cause (type system mismatch),
and the fix applied in v1.14.1. Images now correctly display from
the auto-photo-save feature in both ItemDetailModal and InventoryTable.
2026-04-21 19:47:52 +03:00
174c35bac3 docs: complete Phase 3 documentation - AI extraction + auto-photo-save implementation complete 2026-04-21 19:35:18 +03:00
baf38f227f docs: update SESSION_STATE for Phase 3 Task 8 (E2E test) completion 2026-04-21 19:33:38 +03:00
3ba31a7b48 docs: update SESSION_STATE for Phase 3 Task 7 completion 2026-04-21 19:31:49 +03:00
b56affa90e docs: update SESSION_STATE for Phase 3 Task 6 completion 2026-04-21 19:27:47 +03:00
68f52ccb03 docs: update SESSION_STATE for Phase 3 Task 4 completion 2026-04-21 19:04:35 +03:00
2d219af7f6 docs: update SESSION_STATE for Phase 3 Task 3 completion 2026-04-21 19:00:30 +03:00
20fc352f6f docs: update SESSION_STATE for Phase 3 Task 2 completion 2026-04-21 18:56:42 +03:00