From 86d949294f05e3bf96ab574d7139b464d85bee3e Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 19 May 2026 21:21:28 +0200 Subject: [PATCH] chore(work): finish 05-core-consent-react --- docs/work/_system/_state.json | 12 +++--------- .../05-core-consent-react/_story.md | 6 +++--- .../epics/dsr-consent-and-cookie-banner/_epic.md | 4 ++-- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/docs/work/_system/_state.json b/docs/work/_system/_state.json index e9d7f30..5e71592 100644 --- a/docs/work/_system/_state.json +++ b/docs/work/_system/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-19T13:27:09.259Z", + "updated_at": "2026-05-19T19:21:30.369Z", "epics": { "binder-wrap-helper": { "status": "done", @@ -284,10 +284,10 @@ "blocks": [] }, "05-core-consent-react": { - "status": "todo", + "status": "done", "title": "core-consent React subpath — ConsentProvider + useConsent()", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [ "04-core-consent-implementation" ], @@ -569,11 +569,6 @@ } }, "ready": [ - { - "epic": "dsr-consent-and-cookie-banner", - "story": "05-core-consent-react", - "title": "core-consent React subpath — ConsentProvider + useConsent()" - }, { "epic": "dsr-consent-and-cookie-banner", "story": "06-core-dsr", @@ -609,7 +604,6 @@ "story": "09-cookie-consent-banner", "title": "CookieConsentBanner component in core-ui", "waiting_on": [ - "dsr-consent-and-cookie-banner/05-core-consent-react", "dsr-consent-and-cookie-banner/08-core-ui-scaffold" ] } diff --git a/docs/work/epics/dsr-consent-and-cookie-banner/05-core-consent-react/_story.md b/docs/work/epics/dsr-consent-and-cookie-banner/05-core-consent-react/_story.md index c7f367c..b5a0063 100644 --- a/docs/work/epics/dsr-consent-and-cookie-banner/05-core-consent-react/_story.md +++ b/docs/work/epics/dsr-consent-and-cookie-banner/05-core-consent-react/_story.md @@ -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 `` component (Story 09) reads consent state and dispatc ## Tasks -- [ ] Add `` + `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 `` + `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. diff --git a/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md b/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md index a9bed21..f0a00cd 100644 --- a/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md +++ b/docs/work/epics/dsr-consent-and-cookie-banner/_epic.md @@ -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)