Repository navigation
fix(wizard): record per-step completion/skip for Spec 046 funnel - #448
Merged
Merged
Conversation
The first-run wizard only ever called markEngaged() on dismiss — it never invoked markConnectCompleted/Skipped or markServerCompleted/ Skipped. Production telemetry (D1) confirmed the gap: every install that engaged the wizard recorded wizard_engaged=true with wizard_connect_step / wizard_server_step still NULL, making the funnel queries documented in Spec 046 SC-012/SC-013 unusable. Wire the four missing call sites: - connectOne() success → markConnectCompleted() - onServerAdded() (single) → markServerCompleted() - onBulkImport() (>0 imported) → markServerCompleted() - dismiss() → mark each unfilled step as skipped before markEngaged Each guarded against re-firing once a status is recorded. Backend, storage, telemetry payload, and worker schema were already correct; the bug was purely in the frontend wiring. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Deploying mcpproxy-docs with
|
| Latest commit: |
fdb555a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://13587ef1.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-wizard-funnel-step-track.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 25332403345 --repo smart-mcp-proxy/mcpproxy-go
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The first-run onboarding wizard only ever called
markEngaged()on dismiss — it never invokedmarkConnect*ormarkServer*. Production telemetry ontelemetry.mcpproxy.appconfirmed the gap: every install that engaged the wizard reportedwizard_engaged=truewithwizard_connect_step/wizard_server_stepstillNULL, so the funnel queries documented in Spec 046 SC-012/SC-013 were dead on arrival.Backend (
internal/httpapi/onboarding.go),OnboardingStatestorage, telemetry payload (internal/telemetry/telemetry.go), and the Cloudflare Worker schema were already correct. The bug was purely a frontend wiring gap inOnboardingWizard.vue.Fix
Wired four call sites in
frontend/src/components/OnboardingWizard.vue:connectOne()successmarkConnectCompleted()onServerAdded()(single server)markServerCompleted()onBulkImport()withtotalImported > 0markServerCompleted()dismiss()(per step still empty)markConnectSkipped()/markServerSkipped()beforemarkEngaged()Each guarded so it only fires once per install (no re-firing if a status is already
'completed'/'skipped').Evidence the data was broken
After applying migration
0005_add_onboarding_funnel.sqlto the prod D1 and backfilling existing rows frompayload_json:Every engaged install had both step columns NULL — no install ever made it past step 0 in our funnel reporting, even though the data shows users were clearly using the wizard.
Test plan
npx vue-tsc --noEmitpassesnpm run buildsucceedsconnect_step_status='completed'viaGET /api/v1/onboarding/stateserver_step_status='completed''skipped'andengaged=true'skipped')Related
specs/046-local-first-onboarding/)🤖 Generated with Claude Code