Repository navigation
fix(setup): "Everything is set up" shows once per admin, remembered on the server. CU-17tkuw61bjx - #766
Merged
Conversation
…n the server. CU-17tkuw61bjx
The wizard's last screen kept coming back for an admin whose workspace was
already set up: the only lasting record that the admin had been through it was
the Mingo conversation the panel creates after "Start with Mingo", and the
handoff marker lives in one browser's localStorage. Another browser or device,
cleared browser data, or a tour that never got started brought the screen back.
The server now keeps `userOnboardingProgress.setupSeen`: the wizard records
its last screen ("You are ready to go" / "Everything is set up") as seen the
moment it shows, `useSetupPending` keeps a session away from `/setup` once the
server has seen it, and the way out of the wizard is decided once per visit,
so the answer landing mid-visit does not throw the admin off the screen before
"Start with Mingo". "Reset Onboarding" clears the record and is offered to an
admin who saw the screen without starting the tour.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Member
Contributor
🦩 Flamingo Code Review✅ Tests and checks passed on this commit (3 lanes). ✅ No findings on the current head. Advisory: findings do not block the merge.
✅ What this change does well
1 possible problem checked and ruled out
Review again. New commits are not reviewed until you ask:
Or comment 🧪 Tests and mutationTests per lane
Checks
1 gap (not tested here):
Started 2026-11-03 10:59 UTC · updated 2026-11-03 11:01 UTC · workflow run |
Contributor
Author
…-once # Conflicts: # apps/web/src/app/(app)/settings/components/profile-card.test.tsx # apps/web/src/app/(app)/setup/components/setup-wizard.test.tsx # apps/web/src/app/components/onboarding-v2-redirect.tsx
Contributor
Author
romanivan-flamingo
enabled auto-merge
November 3, 2026 11:02
oleksandr-blip
approved these changes
Nov 3, 2026
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.
Frontend part of Setup wizard: show "Everything is set up" only on an admin's first login (FE subtask 17tkuw61bjx).
Why
The wizard's last screen kept coming back for an admin whose workspace was already set up. The only lasting record that the admin had been through it was the Mingo conversation the panel creates after "Start with Mingo" (
tourDialogId), and the handoff marker lives in one browser's localStorage. Another browser or device, cleared browser data, or a tour that never got started brought the screen back.What changes
userOnboardingProgress.setupSeen(new on the BE) is the lasting record. The progress query and every user onboarding mutation select it; the onboarding store carries it./setupwizard records its last screen ("You are ready to go" / "Everything is set up") as seen the moment it shows, through the newmarkUserOnboardingSetupSeenmutation (fire-and-forget, idempotent on the server). On display rather than on the button: an admin who leaves the screen another way has seen it too.useSetupPendingsends a session to/setuponly while the server has not seen the admin there (on top of today'stourDialogIdand local-marker checks, which cover records from before the flag existed and the moment right after the button).OnboardingV2Redirect: the way out of/setupis decided once per visit, when the answer first lands, so the seen record landing mid-visit does not throw the admin off the screen before "Start with Mingo". Leaving the wizard stays the wizard's own job; the way in from the dashboard stays live for "Reset Onboarding".Tests
New:
use-setup-pending.test.tsx(the rule),onboarding-v2-redirect.test.tsx(both legs, the once-per-visit decision),setup-wizard.test.tsx(the mark on each last screen, once). Extended:reset-onboarding-dialog.test.tsx(useCanResetOnboarding),use-onboarding-mutations.test.tsx(the mark mirrors into the store). 81 tests across the onboarding/setup files pass;type-check,lint:ci,formatandcheck:loadingare green.Verified on the BE feature tenant (tenant-4305-18)
Dev "Skip onboarding" leaves
setupSeentrue (BE side effect); after a reset the dashboard sends the admin to "Everything is set up", the mark lands on display and the admin stays on the screen; a browser without local markers opens on the dashboard and a direct/setupreturns there; "Reset Onboarding" from the Mingo menu brings the screen back once with a fresh stamp; "Start with Mingo" opens the tour, recordstourDialogIdand keeps the earlier stamp.Rollout
Needs the BE on the environment first: the progress query selects
setupSeen, and an unknown field fails the whole query, which hides the wizard entirely. Order: oss-lib release, saas-tenant release (dev, then QA), then this FE release.Change-Set: fix-setup-wizard-seen-once
Depends-On: https://github.com/flamingo-stack/openframe-saas-tenant/pull/4305
Depends-On: flamingo-stack/openframe-oss-lib#2892
Change set
flamingo-stack/openframe-oss-frontend#766: this pull request is the only one in it so far. Another pull request joins by naming this one in aDepends-Online, or by carrying the sameChange-Setline.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.