chore(work): finish 04-manifest-schema-and-wire-use-case

This commit is contained in:
2026-05-18 17:15:38 +02:00
parent 32018e8a7b
commit 81f75f756e
3 changed files with 10 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ id: 04-manifest-schema-and-wire-use-case
epic: product-analytics-channel
title: Extend manifest schema and wireUseCase with analyticsEvents
type: technical-story
status: in-progress
status: done
feature: core-shared
depends-on: [03-analyzed-brand-and-with-analytics-wrapper]
blocks:
@@ -12,7 +12,7 @@ blocks:
07-eslint-rule-no-undeclared-analytics-event,
]
created: 2026-05-18T12:03:00Z
updated: 2026-05-18T11:59:15.558Z
updated: 2026-05-18T15:15:39.064Z
---
## Goal
@@ -47,4 +47,4 @@ The manifest field is the declaration surface the ESLint rule (Story 07) and boo
## Tasks
- [x] Add `analyticsEvents: string[]` (default `[]`) to the use-case schema in `define-feature.ts` and update the feature generator template to emit the field — existing manifests remain valid; all gates pass on this commit.
- [ ] Extend `wireUseCase` to accept optional `analytics` arg and compose `withAnalytics` (innermost, before `withAudit`) when provided + update `wire-use-case.test.ts` with analytics path (Analyzed brand present) and no-analytics path (Analyzed brand absent) — all gates pass on this commit.
- [x] Extend `wireUseCase` to accept optional `analytics` arg and compose `withAnalytics` (innermost, before `withAudit`) when provided + update `wire-use-case.test.ts` with analytics path (Analyzed brand present) and no-analytics path (Analyzed brand absent) — 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:55:08.463Z
updated: 2026-05-18T15:15:39.064Z
---
## Goal
@@ -22,7 +22,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)
- [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)
- [x] [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)
- [ ] [07 — Add no-undeclared-analytics-event ESLint rule](07-eslint-rule-no-undeclared-analytics-event/_story.md)