feat(onboarding) - add dynamic steps#922
Conversation
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (310 total)
✅ Bundle size check passed |
|
Deploy preview for remote-flows-example-app ready! ✅ Preview Built with commit d9eae8e. |
|
Deploy preview for remote-flows ready! ✅ Preview Built with commit d9eae8e. |
📊 Coverage Report✅ Coverage increased! 🎉
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d9eae8e. Configure here.

Add dynamic steps like we did in contractor onboarding.
But there's a gotcha to avoid breaking our consumers we have to start using feature flags
I am extracting code from #906, to check little by little the changes
Note
Medium Risk
Changes onboarding step generation and navigation semantics (indices/visibility) behind a new
dynamic_stepsfeature flag, which could break consumers that assume sequential indices or fixed step lists if misused. Adds a new step key placeholder without a backing form yet, increasing integration risk around step rendering and state initialization.Overview
Adds feature-flagged dynamic onboarding steps via
buildSteps, introducing stepvisiblemetadata and supporting either legacy sequential indices (default) or preserved original indices including hidden steps whendynamic_stepsis enabled.Updates
useOnboardingto derive steps frombuildSteps, expands step typing (StepKeys) and wiring (schema map, fields/meta, step value initialization), and exposes a newonboardingBag.stepsarray for consumers to render navigation.Updates the example onboarding UI to render step titles/navigation from
onboardingBag.stepsand enables thedynamic_stepsfeature in options; adds comprehensive unit tests forbuildStepsbehavior and extendsOnboardingFeaturesto includedynamic_steps.Reviewed by Cursor Bugbot for commit d9eae8e. Bugbot is set up for automated code reviews on this repo. Configure here.