Haal pakketten-data op via /api/v1/packages i.p.v. hardcoded content #10

Merged
Sluijsens merged 2 commits from feature/packages-api-integration into master 2026-08-02 10:35:29 +02:00
Owner

Samenvatting

  • usePackagesQuery haalt nu echt op bij /api/v1/packages (relatief pad, zelfde domein) i.p.v. de statische placeholder-data (FR-5).
  • PackagesSection toont een foutmelding als het request faalt.
  • Statische packages-array in content.ts blijft staan als referentie-/seed-content voor de CMS.
  • Nieuw: aidlc-docs/features/react-frontend/construction/react-frontend-app/functional-design/packages-api-handoff.md - hand-off voor de agent die de CMS/API-kant bouwt (endpoint-contract, veldtypes, gebruik per veld, seed-data, en de openstaande nginx-proxy-stap voor test + productie).

Let op voor de reviewer

Zolang /api/v1/packages nog niet bestaat (frontend, backend en nginx-proxy moeten nog gebouwd worden), toont de sectie op test/productie de foutmelding i.p.v. de pakketten-kaarten. Dat is verwacht totdat de hand-off is opgepakt.

Test plan

  • vitest run (23/23 tests, inclusief nieuwe success/error-tests voor PackagesSection)
  • eslint . (0 errors, 2 pre-existing warnings elders)
  • tsc -b (schoon)
## Samenvatting - `usePackagesQuery` haalt nu echt op bij `/api/v1/packages` (relatief pad, zelfde domein) i.p.v. de statische placeholder-data (FR-5). - `PackagesSection` toont een foutmelding als het request faalt. - Statische `packages`-array in `content.ts` blijft staan als referentie-/seed-content voor de CMS. - Nieuw: `aidlc-docs/features/react-frontend/construction/react-frontend-app/functional-design/packages-api-handoff.md` - hand-off voor de agent die de CMS/API-kant bouwt (endpoint-contract, veldtypes, gebruik per veld, seed-data, en de openstaande nginx-proxy-stap voor test + productie). ## Let op voor de reviewer Zolang `/api/v1/packages` nog niet bestaat (frontend, backend en nginx-proxy moeten nog gebouwd worden), toont de sectie op test/productie de foutmelding i.p.v. de pakketten-kaarten. Dat is verwacht totdat de hand-off is opgepakt. ## Test plan - [x] `vitest run` (23/23 tests, inclusief nieuwe success/error-tests voor `PackagesSection`) - [x] `eslint .` (0 errors, 2 pre-existing warnings elders) - [x] `tsc -b` (schoon)
Sluijsens added 1 commit 2026-08-01 02:13:41 +02:00
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
7fc06091a5
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.
Sluijsens added 1 commit 2026-08-01 02:21:32 +02:00
Merge branch 'master' into feature/packages-api-integration
Continuous Integration / config (pull_request) Successful in 9s
Continuous Integration / prepare (pull_request) Successful in 1m20s
Continuous Integration / build-production (pull_request) Skipped
Continuous Integration / build (pull_request) Successful in 2m1s
Continuous Integration / test (pull_request) Successful in 1m55s
Continuous Integration / deploy-production (pull_request) Skipped
Deploy / deploy (pull_request) Successful in 34s
Continuous Integration / deploy-test (pull_request) Successful in 35s
cdec908d53
Sluijsens merged commit 5f600d6bf1 into master 2026-08-02 10:35:29 +02:00
Sluijsens deleted branch feature/packages-api-integration 2026-08-02 10:35:29 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SLP_Software/SlpSoftware#10