Skip to content

fix: on-boarding and trial upgrade inconsistencies#2902

Merged
abose merged 4 commits into
mainfrom
ai
May 13, 2026
Merged

fix: on-boarding and trial upgrade inconsistencies#2902
abose merged 4 commits into
mainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented May 13, 2026

No description provided.

abose added 4 commits May 13, 2026 20:20
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.
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit ddbcd4c into main May 13, 2026
12 of 21 checks passed
@abose abose deleted the ai branch May 13, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant