From 0f8e3b8cafc096a699df5d61b293e66c0f144bf7 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Mon, 18 May 2026 17:40:19 +0200 Subject: [PATCH] chore(work): finish 06-analytics-protocol-bind-context --- docs/work/_system/_state.json | 11 +++-------- .../06-analytics-protocol-bind-context/_story.md | 6 +++--- docs/work/epics/product-analytics-channel/_epic.md | 4 ++-- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/docs/work/_system/_state.json b/docs/work/_system/_state.json index b04349c..bc8e81c 100644 --- a/docs/work/_system/_state.json +++ b/docs/work/_system/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-18T15:36:52.572Z", + "updated_at": "2026-05-18T15:40:20.636Z", "epics": { "binder-wrap-helper": { "status": "done", @@ -299,10 +299,10 @@ "blocks": [] }, "06-analytics-protocol-bind-context": { - "status": "todo", + "status": "done", "title": "Add AnalyticsProtocol and BindContext.analytics", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [ "05-assert-feature-conformance-analyzed" ], @@ -346,11 +346,6 @@ } }, "ready": [ - { - "epic": "product-analytics-channel", - "story": "06-analytics-protocol-bind-context", - "title": "Add AnalyticsProtocol and BindContext.analytics" - }, { "epic": "product-analytics-channel", "story": "07-eslint-rule-no-undeclared-analytics-event", diff --git a/docs/work/epics/product-analytics-channel/06-analytics-protocol-bind-context/_story.md b/docs/work/epics/product-analytics-channel/06-analytics-protocol-bind-context/_story.md index a6c5ff6..ee5dd97 100644 --- a/docs/work/epics/product-analytics-channel/06-analytics-protocol-bind-context/_story.md +++ b/docs/work/epics/product-analytics-channel/06-analytics-protocol-bind-context/_story.md @@ -3,12 +3,12 @@ id: 06-analytics-protocol-bind-context epic: product-analytics-channel title: Add AnalyticsProtocol and BindContext.analytics type: technical-story -status: todo +status: done feature: core-shared depends-on: [05-assert-feature-conformance-analyzed] blocks: [09-documentation] created: 2026-05-18T12:05:00Z -updated: 2026-05-18T10:46:27.080Z +updated: 2026-05-18T15:40:20.464Z --- ## Goal @@ -39,4 +39,4 @@ Feature binders that need analytics accept `ctx.analytics` from the aggregator's ## Tasks -- [ ] Add `AnalyticsProtocol` structural type to `packages/core-shared/src/di/bind-protocols.ts` and `analytics?: AnalyticsProtocol` to `BindContext` + `BindProductionContext`; export from the `@repo/core-shared/di` barrel — all gates pass on this commit. +- [x] Add `AnalyticsProtocol` structural type to `packages/core-shared/src/di/bind-protocols.ts` and `analytics?: AnalyticsProtocol` to `BindContext` + `BindProductionContext`; export from the `@repo/core-shared/di` 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 65ee31f..4938d8d 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-18T15:36:52.400Z +updated: 2026-05-18T15:40:20.464Z --- ## Goal @@ -24,7 +24,7 @@ Consumers routinely bolt analytics SDKs on at the React component layer, bypassi - [x] [03 — Add Analyzed brand and withAnalytics wrapper](03-analyzed-brand-and-with-analytics-wrapper/_story.md) - [x] [04 — Extend manifest schema and wireUseCase with analyticsEvents](04-manifest-schema-and-wire-use-case/_story.md) - [x] [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) +- [x] [06 — Add AnalyticsProtocol and BindContext.analytics](06-analytics-protocol-bind-context/_story.md) - [ ] [07 — Add no-undeclared-analytics-event ESLint rule](07-eslint-rule-no-undeclared-analytics-event/_story.md) - [ ] [08 — Add React provider to @repo/core-analytics](08-react-provider/_story.md) - [ ] [09 — Documentation](09-documentation/_story.md)