skillhub/openspec/changes/add-configurable-frontend-analytics/tasks.md
小妍儿 ✨ 6952629eed
feat(web): add passive semantic analytics attributes across frontend workflows (#1010)
* feat(web): expose passive semantic analytics attributes

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* fix(web): omit disabled non-native analytics intents

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* fix(web): keep docs integration test outside production build inputs

Move the collector example test alongside existing root-level web tests so the web-only Docker context does not require repository documentation. Preserve all assertions and default Vitest discovery; document the boundary.

Verified 1217 tests, focused 12 tests, typecheck, lint, build and a fresh web-only build without repository docs. Original snapshot reproduced TS2307. Independent review passed. Full local image build was blocked by an uncached pnpm download with network disabled; remote image CI remains authoritative.

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* docs(analytics): configure intent rules and add a manual Umami demo

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* fix(analytics): accept product IDs and preserve concurrent intents

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* fix(analytics): guard consent at Umami dispatch boundary

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* fix(analytics): snapshot validated Umami payload primitives

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* docs(analytics): define configurable opt-in integration

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

* chore(analytics): refresh manifest line numbers after main merge

The merge of latest main shifted source lines in router and pages. Only
line numbers change; routes, IDs and sites are identical.

Refs #989

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* fix(analytics): preserve release Web defaults in optional edge

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* docs(analytics): add Chinese guide and split delivery scope

Refs #989

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

* docs(analytics): keep upstream override and bypass module cache in guide

Export the upstream override so later compose commands keep it, and
tell operators to bypass the immutable module cache when re-checking
an edited local entry.

Refs #989

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>

---------

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
Co-authored-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-10-29 14:56:58 +08:00

3.2 KiB

1. Scope and integration

  • 1.1 Confirm maintainer authorization, preserve contributor history and resolve latest-main translation conflicts.
  • 1.2 Define runtime configuration, adapter boundary, failure behavior and production deployment scope.

2. PR-1 (#1010)

  • 2.1 Verify passive markers, frozen published IDs and manifest drift against the current base.
  • 2.2 Verify the vendor-neutral helper, frozen defaults, finite rules, skipped diagnostics, repeat-init/stop and example adapter assertions.
  • 2.3 Fix and regression-test the example edge's server-level 100M application upload limit, release Web upstream default and native Linux host-gateway mapping.
  • 2.4 Provide an independently followable Chinese guide for existing-platform adapters and the local Umami demo, including configuration, deployment, acceptance, troubleshooting, upgrade and shutdown; link the English contract.
  • 2.5 Align the two-PR interfaces and manually check OpenSpec structure against add-skill-suites (CLI unavailable; not CLI validation).
  • 2.6 Run focused/full tests, typecheck, lint, build, manifest, Compose rendering and diff checks; repeat built-frontend/real-collector browser acceptance and the guide walkthrough, including upload boundaries.
  • 2.7 Independent parent review and publication; keep Issue #989 open.

3. PR-2 (follow-up): optional frontend capability

  • 3.1 Move helper/adapter to a single product source under web/src/features/analytics and preserve all PR-1 assertions.
  • 3.2 Add default-closed runtime loader and vendor-neutral controller/registry; register Umami as the first adapter.
  • 3.3 Cover consent, validation, duplicate init, async stop races and adapter failures.
  • 3.4 Validate this OpenSpec change with the CLI when available and bind the follow-up PR/task.

4. PR-2 (follow-up): deployment

  • 4.1 Safely serialize and validate configuration without breaking existing runtime config.
  • 4.2 Add isolated proxy snippets with request-time DNS, certificate validation and exact endpoints.
  • 4.3 Wire Docker/Compose/Helm defaults and reserved sub-path validation.
  • 4.4 Provide optional persistent self-hosted Compose combination without another Nginx.

5. PR-2 (follow-up): documentation

  • 5.1 Replace source-editing quickstart with configuration-only production paths for supported platforms; distinguish custom adapter development.
  • 5.2 Document fields, platform prerequisites, initialization, verification, troubleshooting, upgrade and shutdown.
  • 5.3 Link deployment entry points and document adapter extension and actual privacy boundaries.

6. PR-2 (follow-up): quality gates

  • 6.1 Consolidated independent implementation review, fixes and final base checkpoint.
  • 6.2 Reviewed requirement/scenario/test matrix and targeted source/deployment checks.
  • 6.3 Exact-SHA release Compose S3/auth smoke and Chromium normal/changed/failure scenarios, including default zero module/SDK/request and root/sub-path upload/login/download/CSP/cache compatibility.
  • 6.4 CI/privacy/readiness, one validation report and retained preview for human acceptance.
  • 6.5 Close Issue #989 only after configuration-only deployment is complete and verified, not when PR-1 merges.