Commit Graph

20 Commits

Author SHA1 Message Date
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 1a4b984d2c chore(devops): mark 'Test local deployment' as blocked (no Docker in environment) 2026-03-24 17:52:50 -04:00
Paul Huliganga 2497747e8b docs: update TODO.md - mark docker-compose task complete (iteration 16) 2026-03-24 08:14:11 -04:00
Paul Huliganga 210514fc1f docs: update TODO.md for iteration 15 completion 2026-03-24 07:58:16 -04:00
Paul Huliganga 56ef7e0457 docs: mark error handling task complete in TODO.md 2026-03-24 04:28:55 -04:00
Paul Huliganga 9b6d4d50e2 docs(todo): verify and mark text search as complete
Text search functionality was already implemented in previous iterations:
- Backend: RecipeRepository searches title, description, and ingredients
- API: Zod validation accepts search parameter
- Tests: Integration test confirms search works (34/34 passing)
- Frontend: useRecipes hook passes search to API, UI has search input
- Feature verified working end-to-end
2026-03-24 04:11:49 -04:00
Paul Huliganga dbdbcf43fa feat(tags): implement tag management with create, assign, and display functionality
Backend:
- Add Tag type definitions (Tag, CreateTagInput, UpdateTagInput)
- Implement TagRepository with CRUD and recipe assignment methods
- Implement TagService with business logic and validation
- Create tag API routes (GET, POST, PUT, DELETE /api/tags)
- Add recipe-tag assignment endpoints (POST/DELETE /api/tags/recipes/:id/tags)
- Write 18 integration tests for tag functionality (all passing)
- Mount tag routes in main Express app

Frontend:
- Extend API client with tag CRUD and assignment methods
- Create useTags hook for tag state management
- Create TagSelector component for tag selection with inline tag creation
- Update RecipeForm to accept initialTags and pass selected tags to onSubmit
- Update RecipeDetailPage to fetch, display, and manage recipe tags
- Update RecipeCard to display tags with custom colors
- Add tag filter UI to RecipeListPage (note: backend filtering pending)
- Display tags in recipe detail view with color styling

Testing:
- All 34 backend tests passing (16 recipe + 18 tag tests)
- Frontend builds successfully with TypeScript strict mode
- Tag assignment and removal working end-to-end

Note: Tag filtering in recipe list shows UI but doesn't filter results yet.
Backend support for tag-based filtering can be added in future iteration.
2026-03-24 04:02:51 -04:00
Paul Huliganga 36489a3f85 feat(frontend): implement cook mode UI with wake lock and progress tracking 2026-03-24 03:41:58 -04:00
Paul Huliganga 67a9a8ce16 feat(frontend): implement recipe detail/edit page with full CRUD functionality
- Created useRecipe hook for fetching single recipe with loading/error states
- Created RecipeForm component with comprehensive validation
  - Title, ingredients, and instructions marked as required fields
  - One ingredient/instruction per line with textarea inputs
  - Optional metadata: servings, prep time, cook time, source URL, notes
  - Real-time form validation with error messaging
- Implemented RecipeDetailPage with three modes:
  - Create mode: /recipe/new route for adding new recipes
  - View mode: Display recipe with formatted ingredients and instructions
  - Edit mode: Toggle to edit existing recipe with pre-populated form
- Added delete functionality with two-step confirmation
- Included metadata cards for servings, prep time, and cook time
- Added navigation: Cook Mode button, back to list link
- Styled with Tailwind CSS for consistent UI/UX
- Verified TypeScript compilation and Vite build succeed
- Updated TODO.md to mark task complete
2026-03-24 03:27:51 -04:00
Paul Huliganga c6c5d0e3f4 feat(frontend): implement recipe list page with search and pagination
- Create API client service (src/services/api.ts) with all CRUD operations
- Create useRecipes hook for data fetching with search and pagination
- Create RecipeCard component for displaying individual recipes
- Implement RecipeListPage with search bar, empty state, and error handling
- Add grid layout with responsive design (1-3 columns)
- Implement 'Load More' button for pagination
- Add recipe metadata display (servings, time, last cooked)
- Update TODO.md to mark task as complete
2026-03-24 03:12:27 -04:00
Paul Huliganga 94c061a850 feat(frontend): set up React Router with page components and navigation
- Updated main.tsx to wrap App in BrowserRouter
- Configured routes in App.tsx with header navigation
- Created page components: RecipeListPage, RecipeDetailPage, CookModePage, NotFoundPage
- Added active link highlighting for current route
- Defined routes: / (list), /recipe/new, /recipe/:id, /recipe/:id/cook, * (404)
- Updated TODO.md to mark React Router task as complete
- Verified build and dev server work correctly
2026-03-24 02:56:49 -04:00
Paul Huliganga 427fa46cf0 feat(frontend): configure Tailwind CSS v4 with PostCSS
- Install tailwindcss, postcss, autoprefixer, and @tailwindcss/postcss
- Create tailwind.config.js with content paths for all source files
- Create postcss.config.js with Tailwind and Autoprefixer plugins
- Update index.css with Tailwind directives (@tailwind base/components/utilities)
- Update App.tsx to demonstrate Tailwind utility classes
- Verify both build and dev server work correctly
- Update TODO.md to mark task as complete
2026-03-24 00:42:34 -04:00
Paul Huliganga 2c85b80004 feat(frontend): initialize React + Vite project with TypeScript
- Created frontend/ directory using Vite with React + TypeScript template
- Installed React Router 7 for client-side routing
- Set up project structure: components/, hooks/, pages/, services/, types/
- Created Recipe and Tag TypeScript interfaces matching backend schema
- Added basic App.tsx with project status display
- Verified dev server starts successfully on port 5173
- Added frontend README with development instructions
- Updated TODO.md to mark task as complete
2026-03-24 00:27:17 -04:00
Paul Huliganga 8bec840330 docs: update TODO.md to mark recipe CRUD API tasks as complete 2026-03-24 00:14:21 -04:00
Paul Huliganga 394aa22df1 feat(db): enable schema migration using sql.js and export to data/recipes.db 2026-03-24 00:01:41 -04:00
Paul Huliganga 07b9be50b9 build(backend): set up TypeScript with strict mode and build script 2026-03-23 23:45:09 -04:00
Paul Huliganga ed1f4f88be feat(backend): initialize Node.js project with Express 2026-03-23 23:40:36 -04:00
Paul Huliganga 84648bf0fa fix(harness): improve task clarity and error signaling per agent-harness methodology
- TODO.md: Split vague tasks into explicit, atomic steps with verification criteria
- AGENT_INSTRUCTIONS.md: Add STUCK/ERROR/ALL_TASKS_COMPLETE signals per harness docs
- AGENT_INSTRUCTIONS.md: Add OpenClaw environment notes (absolute paths, exit signals)

Fixes stuck agent issue by following canonical agent-harness pattern from docs/agent-harness/.
2026-03-23 23:39:02 -04:00
Paul Huliganga 6552640cfa chore: initialize recipe-manager project with agentic harness
- PROJECT.md: Product vision, success criteria, constraints
- ARCHITECTURE.md: Tech stack, patterns, deployment strategy
- ROADMAP.md: MVP → v1 → v2 milestone planning
- AGENT_INSTRUCTIONS.md: Development workflow for autonomous agents
- README.md: Project overview and quick start
- TODO.md: Task tracking
- .gitignore: Standard Node.js/Docker exclusions

Project ready for first agent sprint (MVP development).
2026-03-23 22:03:14 -04:00