Haal pakketten-data op via /api/v1/packages i.p.v. hardcoded content
Continuous Integration / config (pull_request) Successful in 3m1s
Continuous Integration / prepare (pull_request) Successful in 1m13s
Continuous Integration / build-production (pull_request) Skipped
Continuous Integration / build (pull_request) Successful in 2m14s
Continuous Integration / test (pull_request) Successful in 1m52s
Continuous Integration / deploy-production (pull_request) Skipped
Deploy / deploy (pull_request) Successful in 43s
Continuous Integration / deploy-test (pull_request) Successful in 44s

PackagesSection gebruikte tot nu toe statische data via een placeholder
query-hook (FR-5). usePackagesQuery haalt nu echt op bij /api/v1/packages
(relatief pad, zelfde domein op test en productie), met een foutmelding
in de UI als het request faalt.

Voegt ook een hand-off-document toe voor de agent die de CMS/API-kant
gaat bouwen: het endpoint-contract, per veld het type/gebruik, en de
huidige statische content als seed-data.
This commit is contained in:
2026-08-01 02:12:31 +02:00
parent 32a5bc0185
commit 7fc06091a5
7 changed files with 181 additions and 19 deletions
+5 -3
View File
@@ -5,9 +5,11 @@
* Shapes mirror the domain entities defined in
* aidlc-docs/features/react-frontend/construction/react-frontend-app/functional-design/domain-entities.md
*
* This module is the current source of truth for content (requirements FR-1/FR-6).
* It is deliberately structured so it can be swapped for TanStack Query data later
* (see src/features/landing/hooks/usePackagesQuery.ts) with minimal changes (requirements FR-5).
* This module is the source of truth for content that isn't (yet) API-backed
* (requirements FR-1/FR-6). `packages` is the exception: it now also doubles as
* the reference/seed data for the `/api/v1/packages` contract consumed via
* src/features/landing/hooks/usePackagesQuery.ts (requirements FR-5) — see
* aidlc-docs/features/react-frontend/construction/react-frontend-app/functional-design/packages-api-handoff.md.
*/
export interface NavLink {