Requirements, application design (incl. concept-API-contract voor het contactformulier), units en functional design voor U1. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
Unit Dependencies
Matrix
| Unit | Depends on | Blocks |
|---|---|---|
| U1 theme-foundation | — | U2, U3, U4, U5 |
| U2 b-modern-sections | U1 | U3, U4 (container frames) |
| U3 packages-block | U1, U2 | U4 (preselect), U5 (shared packages logic) |
| U4 contact-form | U1, U2, U3 (preselect context) | U5 (cms-client reused by the terminal skin) |
| U5 e-timetravel | U1, U3, U4 | — |
| X-a category | — | U3 real data (soft) |
| X-b gate + rate limit | — | U4 end-to-end test (soft) |
| X-c contact module | X-b (marker) | U4 end-to-end test |
| X-d mail + retry | X-c, merge of ASF branch | owner notification in production (not frontend) |
| X-e admin API | X-c | X-f |
| X-f admin UI | X-e, merge of ASF branch | — |
Diagram
graph TD
U1[U1 theme-foundation] --> U2[U2 b-modern-sections]
U2 --> U3[U3 packages-block]
U3 --> U4[U4 contact-form]
U4 --> U5[U5 e-timetravel]
Xa[X-a category] -.soft.-> U3
Xb[X-b gate and rate limit] --> Xc[X-c contact module]
Xc -.end to end.-> U4
Xc --> Xd[X-d mail and retry]
Xc --> Xe[X-e admin API]
Xe --> Xf[X-f admin UI]
Merge[(merge of ASF branch decided by Bryan)] -.-> Xd
Merge -.-> Xf
classDef fe fill:#63b3ed,stroke:#2b6cb0,color:#000;
classDef cms fill:#9ae6b4,stroke:#2f855a,color:#000;
classDef gate fill:#f6e05e,stroke:#c05621,color:#000;
class U1,U2,U3,U4,U5 fe;
class Xa,Xb,Xc,Xd,Xe,Xf cms;
class Merge gate;
Text alternative: frontend units run in sequence U1 to U5; CMS units run in parallel, with the form unit's end-to-end test depending on the contact module and mail and admin UI waiting for the merge of the ASF branch.
Integration points and checkpoints
- Contract:
contact-api-contract.mdv0.3.1 (source of truth, OpenAPI exported by the CMS later). - Checkpoint 1 (after U3): packages with mock data of 3 and 6, swipe row on a phone viewport.
- Checkpoint 2 (after U4): form against mock server; contract tests; notify the CMS builder if the contract needs changes.
- Checkpoint 3 (Build and Test): end-to-end against a test host once X-b and X-c are deployed there.
- Rollback: each unit is its own commit; the form is behind
VITE_CONTACT_FORM_ENABLED; E is a separate lazy chunk.