Commit Graph

14 Commits

Author SHA1 Message Date
Paul Huliganga 8b729d7fc4 chore(backend): implement high-priority improvements from code review
- Configuration: dotenv support, env vars for PORT, DB_PATH, CORS_ORIGIN, rate limits
- Security: API key auth for write endpoints, rate limiting on import, configurable CORS, image URL normalization
- Reliability: DB transactions for create/update, dirty flag for saves, foreign key enforcement (PRAGMA), duplicate detection O(1) optimization
- Features: health check endpoint (/api/health)
- Bugfix: corrected tag assignment/removal routes (param order)
- Testing: added tests for PUT/DELETE recipes, tag CRUD and assignment, enabled foreign keys in tests
- All 46 backend tests passing

Closes #<ticket-if-any>
2026-03-29 23:11:27 -04:00
Paul Huliganga b5a2588bc4 feat(ui): redesign homepage visuals and hierarchy (T04) 2026-03-26 17:51:52 -04:00
Paul Huliganga 4af20eaf91 feat(ui): add design tokens and visual style guide (T02) 2026-03-26 17:49:34 -04:00
Paul Huliganga 3931455e64 feat(ui): add visual asset pack and documentation (T03) 2026-03-26 17:47:12 -04:00
Paul Huliganga 363c4258fa feat(ui): baseline visual audit and checklist (T01) 2026-03-26 17:44:01 -04:00
Paul Huliganga 012cfb1ddc Task 5: Add morning consolidated report script, stalled-state detection, blockers, relays pending detection, tests, and docs. Implements requirements for commit/report inclusion, phase update monitoring, stalled-status detection, and integration tests covering deterministic output. See docs/morning-report.md for usage. 2026-03-26 13:44:00 -04:00
Paul Huliganga c434733f0c feat(harness): sequential orchestrator with checkpoint/retry/restart, tests + docs
- Add SequentialOrchestrator service for ordered phase execution, per-phase retry/backoff, and restart-safe checkpointing
- Persist phase attempt metadata (success/fail, attempts, timestamp, error)
- Expose importable callable interface
- Add full coverage unit tests for execution order, retry, checkpoint, and resume scenarios
- Update docs and README for usage and dev guidance
2026-03-26 13:28:19 -04:00
Paul Huliganga fa2cceddc3 [migration] Normalize schema to MVP target: split recipes into ingredients and steps tables, drop JSON columns, adjust tags, update migration docs. WARNING: Tests fail until API and tests are refactored for new structure. 2026-03-25 10:25:45 -04:00
Paul Huliganga c885381d3a docs(user-guide): add MVP user guide and mark task complete 2026-03-24 18:41:43 -04:00
Paul Huliganga ce839e3ce1 docs(api): add initial API documentation for all endpoints (MVP) 2026-03-24 18:06:35 -04:00
Paul Huliganga 853374f060 feat(devops): add docker-compose orchestration with nginx API proxy
- Created docker-compose.yml with backend and frontend services
- Backend: Node.js API on port 3000 with SQLite volume persistence
- Frontend: nginx on port 8080 with health checks and restart policies
- Configured nginx to proxy /api/* requests to backend service
- Updated frontend API client to use relative URLs (/api instead of http://localhost:3000/api)
- Added Vite dev server proxy for local development workflow
- Implemented health checks for both services with service dependency
- Created comprehensive documentation in docs/docker-compose.md
- Verified: docker-compose.yml syntax is valid YAML

Next step: Test local deployment (docker compose up)
2026-03-24 08:12:55 -04:00
Paul Huliganga 1504986d0b feat(docker): add frontend Dockerfile with nginx configuration
- Created multi-stage Dockerfile for frontend build and deployment
- Builder stage: npm ci, TypeScript compilation, Vite build
- Production stage: nginx Alpine serving static assets
- Added nginx.conf with SPA routing, gzip compression, security headers
- Created frontend/.dockerignore to optimize build context
- Added health check endpoint at /health for container orchestration
- Documented build strategy, optimization, and deployment in docs/docker-frontend.md
- Verified: npm build succeeds (Docker build pending availability)
2026-03-24 07:57:11 -04:00
Paul Huliganga 4bce1d3bf1 feat(devops): add backend Dockerfile with multi-stage build
- Created production-ready Dockerfile for Node.js 22 backend
- Implemented multi-stage build for optimized image size
- Added .dockerignore to exclude unnecessary files from build
- Included database migration on container startup
- Created docker-backend.md documentation
- Verified: npm build and npm test pass (34/34 tests)
2026-03-24 07:42:13 -04:00
Paul Huliganga 88acb93068 fix(deps): switch to sql.js to resolve Node v22 compatibility
- better-sqlite3 incompatible with Node.js v22.22.0 (V8 API changes)
- Switched to sql.js (pure JavaScript SQLite, zero native deps)
- Updated ARCHITECTURE.md to reflect new choice
- Added ADR-001 documenting decision rationale
- Enables autonomous development on WSL2/Node v22

Per agent-harness methodology: unblock environment issues pragmatically.
2026-03-24 00:00:59 -04:00