From edf354318beb71aef6af1e1bce4db1e155a52170 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Mon, 18 May 2026 13:55:06 +0200 Subject: [PATCH] chore(work): finish 03-analyzed-brand-and-with-analytics-wrapper --- docs/work/_system/_state.json | 18 +++++------------- .../_story.md | 6 +++--- .../epics/product-analytics-channel/_epic.md | 4 ++-- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/docs/work/_system/_state.json b/docs/work/_system/_state.json index ee59c67..073086e 100644 --- a/docs/work/_system/_state.json +++ b/docs/work/_system/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-18T11:46:49.704Z", + "updated_at": "2026-05-18T11:55:08.636Z", "epics": { "binder-wrap-helper": { "status": "done", @@ -267,10 +267,10 @@ ] }, "03-analyzed-brand-and-with-analytics-wrapper": { - "status": "in-progress", + "status": "done", "title": "Add Analyzed brand and withAnalytics wrapper", "ac_total": 2, - "ac_completed": 1, + "ac_completed": 2, "depends_on": [ "01-scaffold-core-analytics-package" ], @@ -348,8 +348,8 @@ "ready": [ { "epic": "product-analytics-channel", - "story": "03-analyzed-brand-and-with-analytics-wrapper", - "title": "Add Analyzed brand and withAnalytics wrapper" + "story": "04-manifest-schema-and-wire-use-case", + "title": "Extend manifest schema and wireUseCase with analyticsEvents" }, { "epic": "product-analytics-channel", @@ -363,14 +363,6 @@ } ], "blocked": [ - { - "epic": "product-analytics-channel", - "story": "04-manifest-schema-and-wire-use-case", - "title": "Extend manifest schema and wireUseCase with analyticsEvents", - "waiting_on": [ - "product-analytics-channel/03-analyzed-brand-and-with-analytics-wrapper" - ] - }, { "epic": "product-analytics-channel", "story": "05-assert-feature-conformance-analyzed", diff --git a/docs/work/epics/product-analytics-channel/03-analyzed-brand-and-with-analytics-wrapper/_story.md b/docs/work/epics/product-analytics-channel/03-analyzed-brand-and-with-analytics-wrapper/_story.md index 2a2660a..136079a 100644 --- a/docs/work/epics/product-analytics-channel/03-analyzed-brand-and-with-analytics-wrapper/_story.md +++ b/docs/work/epics/product-analytics-channel/03-analyzed-brand-and-with-analytics-wrapper/_story.md @@ -3,12 +3,12 @@ id: 03-analyzed-brand-and-with-analytics-wrapper epic: product-analytics-channel title: Add Analyzed brand and withAnalytics wrapper type: technical-story -status: in-progress +status: done feature: core-shared depends-on: [01-scaffold-core-analytics-package] blocks: [04-manifest-schema-and-wire-use-case] created: 2026-05-18T12:02:00Z -updated: 2026-05-18T11:46:49.541Z +updated: 2026-05-18T11:55:08.463Z --- ## Goal @@ -43,4 +43,4 @@ Add the `Analyzed` brand to `core-shared/conformance/` and the `withAnalytics ## Tasks - [x] Add `Analyzed` brand type to `packages/core-shared/src/conformance/brands.ts` and `isAnalyzed(f): f is Analyzed` guard to `brand-runtime.ts`; export both from the conformance index — all gates pass on this commit. -- [ ] Add `withAnalytics(analytics, factory)` wrapper to `packages/core-analytics/src/with-analytics.ts` using `attachBrand` from `core-shared/conformance/brand-runtime` + `with-analytics.test.ts` asserting brand attached after wrapping and absent before; export from `@repo/core-analytics` root barrel — all gates pass on this commit. +- [x] Add `withAnalytics(analytics, factory)` wrapper to `packages/core-analytics/src/with-analytics.ts` using `attachBrand` from `core-shared/conformance/brand-runtime` + `with-analytics.test.ts` asserting brand attached after wrapping and absent before; export from `@repo/core-analytics` root barrel — all gates pass on this commit. diff --git a/docs/work/epics/product-analytics-channel/_epic.md b/docs/work/epics/product-analytics-channel/_epic.md index 079d3d2..6019cfb 100644 --- a/docs/work/epics/product-analytics-channel/_epic.md +++ b/docs/work/epics/product-analytics-channel/_epic.md @@ -6,7 +6,7 @@ type: epic status: in-progress features: [core-analytics, core-shared, core-testing, core-eslint] created: 2026-05-18T12:00:00Z -updated: 2026-05-18T11:38:17.680Z +updated: 2026-05-18T11:55:08.463Z --- ## Goal @@ -21,7 +21,7 @@ Consumers routinely bolt analytics SDKs on at the React component layer, bypassi - [x] [01 — Scaffold @repo/core-analytics package](01-scaffold-core-analytics-package/_story.md) - [x] [02 — Add RecordingAnalytics to @repo/core-testing](02-recording-analytics/_story.md) -- [ ] [03 — Add Analyzed brand and withAnalytics wrapper](03-analyzed-brand-and-with-analytics-wrapper/_story.md) +- [x] [03 — Add Analyzed brand and withAnalytics wrapper](03-analyzed-brand-and-with-analytics-wrapper/_story.md) - [ ] [04 — Extend manifest schema and wireUseCase with analyticsEvents](04-manifest-schema-and-wire-use-case/_story.md) - [ ] [05 — Extend assertFeatureConformance to check Analyzed brand](05-assert-feature-conformance-analyzed/_story.md) - [ ] [06 — Add AnalyticsProtocol and BindContext.analytics](06-analytics-protocol-bind-context/_story.md)