chore(work): finish 05-core-consent-react

This commit is contained in:
2026-05-19 21:21:28 +02:00
parent 9b6deac954
commit 86d949294f
3 changed files with 8 additions and 14 deletions

View File

@@ -3,12 +3,12 @@ id: 05-core-consent-react
epic: dsr-consent-and-cookie-banner
title: core-consent React subpath — ConsentProvider + useConsent()
type: technical-story
status: todo
status: done
feature: core-consent
depends-on: [04-core-consent-implementation]
blocks: [09-cookie-consent-banner]
created: 2026-05-19T12:00:00Z
updated: 2026-05-19T09:55:07.020Z
updated: 2026-05-19T19:21:30.198Z
---
## Goal
@@ -43,4 +43,4 @@ The `<CookieConsentBanner>` component (Story 09) reads consent state and dispatc
## Tasks
- [ ] Add `<ConsentProvider>` + `useConsent()` hook in `packages/core-consent/src/react/` + barrel export + `"./react"` subpath in `package.json`; RTL tests asserting context propagation, method delegation, and missing-provider error; all gates pass.
- [x] Add `<ConsentProvider>` + `useConsent()` hook in `packages/core-consent/src/react/` + barrel export + `"./react"` subpath in `package.json`; RTL tests asserting context propagation, method delegation, and missing-provider error; all gates pass.

View File

@@ -16,7 +16,7 @@ features:
auth,
]
created: 2026-05-19T12:00:00Z
updated: 2026-05-19T13:27:09.005Z
updated: 2026-05-19T19:21:30.198Z
---
## Goal
@@ -33,7 +33,7 @@ Epic A delivered declarative PII inventory + retention + sub-processors. Epic B
- [x] [02 — Audit action enum amendment (ADR-018)](02-audit-enum-amendment/_story.md)
- [x] [03 — core-consent foundation: types + brand + withConsent + conformance + ESLint rule](03-core-consent-foundation/_story.md)
- [x] [04 — core-consent implementation: Payload impl + DI + migration helpers + tRPC router](04-core-consent-implementation/_story.md)
- [ ] [05 — core-consent React subpath: ConsentProvider + useConsent()](05-core-consent-react/_story.md)
- [x] [05 — core-consent React subpath: ConsentProvider + useConsent()](05-core-consent-react/_story.md)
- [ ] [06 — core-dsr: scaffold + interfaces + Payload impls + handlers + dsrRouter](06-core-dsr/_story.md)
- [ ] [07 — core-api router composition: dsrRouter + consentRouter into appRouter](07-core-api-router-composition/_story.md)
- [ ] [08 — core-ui scaffold](08-core-ui-scaffold/_story.md)