From 1434fe9d820f457c8f7a8991d3b4629e57933354 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Mon, 18 May 2026 13:33:06 +0200 Subject: [PATCH] chore(work): finish 01-scaffold-core-analytics-package --- docs/work/_system/_state.json | 31 ++++++------------- .../_story.md | 6 ++-- .../epics/product-analytics-channel/_epic.md | 4 +-- 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/docs/work/_system/_state.json b/docs/work/_system/_state.json index dafdda3..06a3f32 100644 --- a/docs/work/_system/_state.json +++ b/docs/work/_system/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-18T11:29:56.999Z", + "updated_at": "2026-05-18T11:33:07.052Z", "epics": { "binder-wrap-helper": { "status": "done", @@ -247,10 +247,10 @@ "prd": "docs/work/prds/product-analytics-channel.prd.md", "stories": { "01-scaffold-core-analytics-package": { - "status": "in-progress", + "status": "done", "title": "Scaffold @repo/core-analytics package with IAnalytics and NoopAnalytics", "ac_total": 2, - "ac_completed": 1, + "ac_completed": 2, "depends_on": [], "blocks": [] }, @@ -348,8 +348,13 @@ "ready": [ { "epic": "product-analytics-channel", - "story": "01-scaffold-core-analytics-package", - "title": "Scaffold @repo/core-analytics package with IAnalytics and NoopAnalytics" + "story": "02-recording-analytics", + "title": "Add RecordingAnalytics to @repo/core-testing" + }, + { + "epic": "product-analytics-channel", + "story": "03-analyzed-brand-and-with-analytics-wrapper", + "title": "Add Analyzed brand and withAnalytics wrapper" }, { "epic": "product-analytics-channel", @@ -358,22 +363,6 @@ } ], "blocked": [ - { - "epic": "product-analytics-channel", - "story": "02-recording-analytics", - "title": "Add RecordingAnalytics to @repo/core-testing", - "waiting_on": [ - "product-analytics-channel/01-scaffold-core-analytics-package" - ] - }, - { - "epic": "product-analytics-channel", - "story": "03-analyzed-brand-and-with-analytics-wrapper", - "title": "Add Analyzed brand and withAnalytics wrapper", - "waiting_on": [ - "product-analytics-channel/01-scaffold-core-analytics-package" - ] - }, { "epic": "product-analytics-channel", "story": "04-manifest-schema-and-wire-use-case", diff --git a/docs/work/epics/product-analytics-channel/01-scaffold-core-analytics-package/_story.md b/docs/work/epics/product-analytics-channel/01-scaffold-core-analytics-package/_story.md index 0632989..c558ab0 100644 --- a/docs/work/epics/product-analytics-channel/01-scaffold-core-analytics-package/_story.md +++ b/docs/work/epics/product-analytics-channel/01-scaffold-core-analytics-package/_story.md @@ -3,7 +3,7 @@ id: 01-scaffold-core-analytics-package epic: product-analytics-channel title: Scaffold @repo/core-analytics package with IAnalytics and NoopAnalytics type: technical-story -status: in-progress +status: done feature: core-analytics depends-on: [] blocks: @@ -14,7 +14,7 @@ blocks: 08-react-provider, ] created: 2026-05-18T12:00:00Z -updated: 2026-05-18T11:29:56.831Z +updated: 2026-05-18T11:33:06.880Z --- ## Goal @@ -49,4 +49,4 @@ All downstream stories depend on `IAnalytics` existing as the contract surface. ## Tasks - [x] Run `pnpm turbo gen core-package analytics` to scaffold `@repo/core-analytics` — verify the generator output compiles and all gates pass on this commit alone. -- [ ] Replace generator placeholder content with `IAnalytics` interface (`track`, `identify`, `pageView`, `flush`), `AnalyticsAttributeValue` + `AnalyticsUser` types, and `NoopAnalytics` implementation (`flush()` returns `Promise.resolve()`); add sibling tests covering all four methods; export everything from the package root barrel — all gates pass on this commit. +- [x] Replace generator placeholder content with `IAnalytics` interface (`track`, `identify`, `pageView`, `flush`), `AnalyticsAttributeValue` + `AnalyticsUser` types, and `NoopAnalytics` implementation (`flush()` returns `Promise.resolve()`); add sibling tests covering all four methods; export everything from the package 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 4701a7d..83b8e35 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-18T10:46:27.080Z +updated: 2026-05-18T11:33:06.880Z --- ## Goal @@ -19,7 +19,7 @@ Consumers routinely bolt analytics SDKs on at the React component layer, bypassi ## Stories -- [ ] [01 — Scaffold @repo/core-analytics package](01-scaffold-core-analytics-package/_story.md) +- [x] [01 — Scaffold @repo/core-analytics package](01-scaffold-core-analytics-package/_story.md) - [ ] [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) - [ ] [04 — Extend manifest schema and wireUseCase with analyticsEvents](04-manifest-schema-and-wire-use-case/_story.md)