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

@@ -1,5 +1,5 @@
{
"updated_at": "2026-05-18T11:46:49.704Z",
"updated_at": "2026-05-18T11:55:08.636Z",
"epics": {
"binder-wrap-helper": {
"status": "done",
@@ -267,10 +267,10 @@
]
},
"03-analyzed-brand-and-with-analytics-wrapper": {
"status": "in-progress",
"status": "done",
"title": "Add Analyzed brand and withAnalytics wrapper",
"ac_total": 2,
"ac_completed": 1,
"ac_completed": 2,
"depends_on": [
"01-scaffold-core-analytics-package"
],
@@ -348,8 +348,8 @@
"ready": [
{
"epic": "product-analytics-channel",
"story": "03-analyzed-brand-and-with-analytics-wrapper",
"title": "Add Analyzed brand and withAnalytics wrapper"
"story": "04-manifest-schema-and-wire-use-case",
"title": "Extend manifest schema and wireUseCase with analyticsEvents"
},
{
"epic": "product-analytics-channel",
@@ -363,14 +363,6 @@
}
],
"blocked": [
{
"epic": "product-analytics-channel",
"story": "04-manifest-schema-and-wire-use-case",
"title": "Extend manifest schema and wireUseCase with analyticsEvents",
"waiting_on": [
"product-analytics-channel/03-analyzed-brand-and-with-analytics-wrapper"
]
},
{
"epic": "product-analytics-channel",
"story": "05-assert-feature-conformance-analyzed",

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)