Files
SlpSoftware/aidlc-docs/features/redesign-modern-timetravel/construction/contact-form/nfr-design/logical-components.md
T
SluijsensandClaude Sonnet 5.5 aa843a5675 Contactformulier: cms-client (validatie, reducer, client, hook), formulier in stijl B en beschikbaarheid
Headless pakket src/cms-client met importgrens, formulier dat pas verschijnt als de API antwoordt
(anders blijft de mailto-knop), honeypot, idempotentie, token-vernieuwing en property-based tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 13:13:24 +01:00

982 B

Logical Components — contact-form (U4)

graph TD
    UI[ContactFormView and ContactPanel] --> HOOK[useContactForm]
    UI --> AVAIL[useContactAvailability]
    HOOK --> PURE[validateContact reducer mapApiErrors]
    HOOK --> CLIENT[createContactClient]
    AVAIL --> CLIENT
    CLIENT --> HTTP[http apiUrl fetch with timeout]
    HTTP --> API[(CMS API same origin)]
    HOOK --> TELE[analytics events without data]
    classDef ui fill:#2196F3,stroke:#0d47a1,color:#000;
    classDef core fill:#4CAF50,stroke:#2e7d32,color:#000;
    classDef io fill:#9C27B0,stroke:#4a148c,color:#000;
    classDef ext fill:#F44336,stroke:#b71c1c,color:#000;
    class UI ui;
    class HOOK,AVAIL,PURE core;
    class CLIENT,HTTP,TELE io;
    class API ext;

Text alternative: the UI uses the headless hook and the availability hook; both rely on the pure core and the client; the client uses the http helper with a timeout towards the same-origin API; telemetry carries no data.