This commit is contained in:
Your Name committed 2026-06-29 17:57:54 -04:00
1 parent 70877882b0
commit ce2f4cf0c8
93 files changed
+4200 -67

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
# BRIEFING — 2026-06-29T21:35:19Z
## Mission
Update TypeScript types, backend menu routes, and verify compilation.
## 🔒 My Identity
- Archetype: backend_worker_1
- Roles: implementer, qa, specialist
- Working directory: /home/ti/git/homaroma/.agents/backend_worker_1
- Original parent: f5557127-1c9c-40d2-90e6-d996a7381786
- Milestone: Menu Image Enhancement
## 🔒 Key Constraints
- Do not edit schema.prisma or run prisma migrate.
- Do not bypass process/tools, follow minimal change principle.
- Use Fastify/Express validation as per existing routes.
## Current Parent
- Conversation ID: f5557127-1c9c-40d2-90e6-d996a7381786
- Updated: not yet
## Task Summary
- **What to build**: Add rootImage to Menu interface/schema/queries and columnImage/hoverImage to MenuItem interface/schema/queries.
- **Success criteria**: Successful compilation (bun run typecheck) and a passing backend test script verifying saving and fetching these fields.
- **Interface contracts**: Menu & MenuItem schemas and types.
- **Code layout**: packages/types/index.ts, apps/backend/src/routes/menus.ts
## Key Decisions Made
- [TBD]
## Artifact Index
- [TBD]
## Change Tracker
- **Files modified**: None
- **Build status**: [TBD]
- **Pending issues**: [TBD]
## Quality Status
- **Build/test result**: [TBD]
- **Lint status**: [TBD]
- **Tests added/modified**: [TBD]
## Loaded Skills
- backend-mcp-lead — /home/ti/git/homaroma/.agents/skills/backend-mcp-lead/SKILL.md — Backend & MCP Lead Agent
- orchestrator — /home/ti/git/homaroma/.agents/skills/orchestrator/SKILL.md — Main Agent / Multi-Agent Orchestrator
@@ -0,0 +1,16 @@
## 2026-06-29T21:35:19Z
You are the Backend & MCP Developer.
Your working directory is /home/ti/git/homaroma/.agents/backend_worker_1.
Your mission is to update TypeScript types, backend menu routes, and verify compilation.
Please:
1. Edit packages/types/index.ts:
- Add 'rootImage?: string | null' to the Menu interface.
- Add 'columnImage?: string | null' and 'hoverImage?: string | null' to the MenuItem interface.
2. Edit apps/backend/src/routes/menus.ts:
- In POST '/' route schema, add optional/nullable rootImage and items properties. In the handler, map these fields when creating a Menu and its MenuItems.
- In PUT '/:name' route schema, add optional rootImage to body validation. Also, inside the items array validation, add optional/nullable columnImage and hoverImage.
- In the PUT '/:name' route handler, update the database queries (Prisma create/update/upsert) to include rootImage (Menu update/create) and columnImage/hoverImage (MenuItem update/create).
3. Run bun run typecheck or compile the monorepo to ensure packages/types and apps/backend build successfully.
4. Implement a backend test script (e.g. apps/backend/test_menu_images.ts) to verify that saving and fetching a menu with rootImage, columnImage, and hoverImage works correctly. Run this test script.
Write your handoff report to /home/ti/git/homaroma/.agents/backend_worker_1/handoff.md and report back via send_message.
MANDATORY INTEGRITY WARNING: DO NOT CHEAT. All implementations must be genuine. DO NOT hardcode test results, create dummy/facade implementations, or circumvent the intended task. A Forensic Auditor will independently verify your work.
+1
View File
@@ -0,0 +1 @@
# Backend Worker Metadata
+10
View File
@@ -0,0 +1,10 @@
# Progress Tracker
Last visited: 2026-06-29T21:35:19Z
## Status
- [ ] Initial investigation
- [ ] Edit packages/types/index.ts
- [ ] Edit apps/backend/src/routes/menus.ts
- [ ] Verify compilation with typecheck
- [ ] Create and run backend test script (apps/backend/test_menu_images.ts)
- [ ] Handoff documentation