x
This commit is contained in:
1 parent
6096c727d9
commit
3965f4f4da
38 files changed
+1513
-752
No files matched your search
@@ -1,24 +1,20 @@
|
||||
# Execution Plan: Split-Screen Editorial Carousel
|
||||
# Execution Plan: Update Category Image Feature
|
||||
|
||||
## Step 1: Codebase Exploration and Detail Verification
|
||||
- Target: Run an Explorer to verify types, schema validation, and find styles or markup patterns.
|
||||
- Verification: Explorer report on existing `EDITORIAL_CAROUSEL` patterns, build verification, and theme compliance requirements.
|
||||
## Step 1: Codebase Exploration and detail verification
|
||||
- Target: Run an Explorer to verify category routes in `apps/backend` and existing MCP tools in `apps/mcp-server`.
|
||||
- Verification: Explorer reports on exact files, routes, schemas, and confirms where categories are defined, where the database models are, and how other MCP tools interface with the backend.
|
||||
|
||||
## Step 2: Milestone 1 - Schema, Types & MCP Tooling (Backend)
|
||||
- Target: Update `packages/types/index.ts` and `apps/mcp-server/section-toolkit.ts` using `teamwork_preview_worker`.
|
||||
- Skill needed: `database-architect` (for types) / `backend-mcp-lead` (for MCP).
|
||||
- Verification: Run typecheck and verify that MCP toolkit compilation succeeds.
|
||||
## Step 2: M1 - Backend Implementation
|
||||
- Target: Implement the PATCH endpoint `PATCH /api/categories/:id/image` in `apps/backend/src/routes/categories.ts` to update the `imageUrl` of a category.
|
||||
- Verification: Worker runs typecheck and build in `apps/backend`.
|
||||
|
||||
## Step 3: Milestone 2 - Admin Page Builder Form (Admin CMS UI)
|
||||
- Target: Update `apps/admin/src/components/page-builder/EditorialCarouselForm.tsx` using `teamwork_preview_worker`.
|
||||
- Skill needed: `frontend-lead` / `cms-architect`.
|
||||
- Verification: Run typecheck and build in `apps/admin`.
|
||||
## Step 3: M2 - MCP Tool Implementation
|
||||
- Target: Add `update_category_image` tool definition in `apps/mcp-server/index.ts` to accept `id` (number) and `imageUrl` (string). Implement the handler to call the backend endpoint `PATCH /categories/:id/image`.
|
||||
- Verification: Worker runs typecheck and build in `apps/mcp-server`.
|
||||
|
||||
## Step 4: Milestone 3 - Frontend Renderers (SPA & Website)
|
||||
- Target: Update `apps/spa/src/components/DynamicEditorialCarousel.tsx` and `apps/website/src/components/dynamic/DynamicPageRenderer.tsx` using `teamwork_preview_worker`.
|
||||
- Skill needed: `frontend-lead` (for SPA) and `nextjs-seo-architect` (for website/Next.js dynamic rendering). Check theme compliance using `theme-compliance-auditor`.
|
||||
- Verification: Run typechecks and builds in `apps/spa` and `apps/website`.
|
||||
|
||||
## Step 5: Milestone 4 - Review and End-to-End Verification
|
||||
- Target: Review all changes using `teamwork_preview_reviewer` and run a `teamwork_preview_auditor` to check for integrity.
|
||||
- Verification: Monorepo `npm run typecheck` passes, and the carousel renders and behaves correctly on mobile and desktop.
|
||||
## Step 4: M3 - E2E Verification & Auditing
|
||||
- Target:
|
||||
- Run typecheck and build across the monorepo to ensure compilation.
|
||||
- Verify `update_category_image` tool registers on the MCP server.
|
||||
- Run a script or test to confirm that calling the tool successfully updates a category's `imageUrl` in the database.
|
||||
- Execute Forensic Auditor to verify code integrity and no cheating.
|
||||
Reference in new issue
Block a user