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

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