Commit 09b7b36
fix(wizard): record per-step completion/skip for Spec 046 funnel (#448)
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 Code <noreply@anthropic.com>1 parent 4bf17a0 commit 09b7b36
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
939 | 943 | | |
940 | 944 | | |
941 | 945 | | |
| |||
1013 | 1017 | | |
1014 | 1018 | | |
1015 | 1019 | | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1016 | 1026 | | |
1017 | 1027 | | |
1018 | 1028 | | |
| |||
1038 | 1048 | | |
1039 | 1049 | | |
1040 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1041 | 1055 | | |
1042 | 1056 | | |
1043 | 1057 | | |
| |||
1054 | 1068 | | |
1055 | 1069 | | |
1056 | 1070 | | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1057 | 1081 | | |
1058 | 1082 | | |
1059 | 1083 | | |
| |||
0 commit comments