chore(work): finish 01-scaffold-core-analytics-package

This commit is contained in:
2026-05-18 13:33:06 +02:00
parent 563eab06a6
commit 1434fe9d82
3 changed files with 15 additions and 26 deletions

View File

@@ -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",

View File

@@ -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.

View File

@@ -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)