Commit 7dbdeb4
committed
fix(tour): run guided-tour orchestration once on every boot
The Phoenix onboarding tour and the newly-added-features markdown were
both wired up in ways that left users in non-default native projects
silently un-onboarded. Two specific gaps:
- new-project.js only called guidedTour.startTourIfNeeded() from
closeDialogue() (fires when the new-project dialog is opened and
then dismissed via openFolder) and from init() when the welcome
screen pref was off. On a native app with a non-default project
open, _shouldNotShowDialog() returned true and the dialog was
never shown, so startTourIfNeeded() was never reached and the
tour could not fire on any subsequent boot either.
- newly-added-features.init() was called directly from main.js
regardless of project context, so the "what's new" markdown
could open under a user's current project tabs instead of the
welcome project.
Move all post-boot orchestration to guided-tour.js, fire it from a
single _bootDonePromise.then() in new-project.js, and gate the
"newly added features" surfacing on a real higher-version change
(detected via semver vs the new userAlreadyDidAction.lastSeenAppVersion).
On a higher version we switch to the welcome project first so the
markdown lands in the onboarding context. Downgrades are a no-op and
leave state untouched so a future re-upgrade to a previously-seen
version does not re-fire. PhoenixTour stays a once-per-lifetime
overlay tour gated by its own CURRENT_TOUR_VERSION constant.1 parent 22cecc2 commit 7dbdeb4
3 files changed
Lines changed: 89 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
27 | 98 | | |
28 | 99 | | |
29 | 100 | | |
| |||
280 | 351 | | |
281 | 352 | | |
282 | 353 | | |
| 354 | + | |
| 355 | + | |
283 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
284 | 360 | | |
285 | 361 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
152 | 163 | | |
153 | 164 | | |
154 | 165 | | |
| |||
158 | 169 | | |
159 | 170 | | |
160 | 171 | | |
161 | | - | |
162 | 172 | | |
163 | 173 | | |
164 | 174 | | |
| |||
0 commit comments