chore(work): finish 03-analyzed-brand-and-with-analytics-wrapper

This commit is contained in:
2026-05-18 13:55:06 +02:00
parent c7bdf7cf3b
commit edf354318b
3 changed files with 10 additions and 18 deletions

View File

@@ -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<F>` brand to `core-shared/conformance/` and the `withAnalytics
## Tasks
- [x] Add `Analyzed<F>` brand type to `packages/core-shared/src/conformance/brands.ts` and `isAnalyzed(f): f is Analyzed<F>` 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.

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