faf14827964fcf018366f1af4c4a7437fd45a7f1
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>
TFM aInventory (2026 Edition)
A unified, offline-first Inventory Management System built as a Progressive Web App (PWA). Features include AI-powered label extraction (OCR), local barcode/QR scanning, and multi-user authentication with LDAP support.
🚀 Quick Start (Production)
For production environments, Docker is the recommended deployment method:
git clone <repository-url> tfm-inventory
cd tfm-inventory
# [D-08] Configuration - Copy examples to actual config files
for f in config/*.yaml.example; do cp "$f" "${f%.example}"; done
# Edit config/secrets.yaml with your JWT_SECRET_KEY and AI keys
nano config/secrets.yaml
# Deploy using the new Python deployment script
python3 scripts/deploy.py production
- Frontend: http://localhost:3000 (or https://localhost:8919 via proxy)
- Backend API: http://localhost:8000/docs
For detailed configuration reference, see config/README.md. For detailed deployment instructions (Docker vs Standalone), see DEPLOYMENT.md.
🏗 Technical Overview
- Backend: FastAPI (Python 3.12+)
- Frontend: Next.js 15+ (React PWA) with responsive Tailwind CSS
- Database: SQLite (SQLAlchemy) with Dexie.js (IndexedDB) for client-side sync.
- AI Engine: Google Gemini (Primary) & Anthropic Claude (Fallback).
- Configuration: [D-07] Consolidated YAML-based config in
config/directory.
For more details on system logic, see PROJECT_ARCHITECTURE.md.
🔐 Security & Constraints
AI agents and developers MUST strictly follow the rules defined in AI_RULES.md.
- No Uppercase UI: All labels/headers must be normal case.
- No Bold Fonts: Text hierarchy is achieved through size and color.
- Offline-First: All features must function without an active network connection.
📦 Production Distribution
To generate a clean production package:
python3 scripts/save_version.py --patch (or --minor/--major)
Last Updated: 2026-04-25
Version: 1.14.25 (Phase 7.1)
Description
Languages
Python
95.7%
TypeScript
1.4%
Cython
1.1%
C
1%
C++
0.6%