feat: add non-linear navigation to Wizard#4814
Draft
ernst-dev wants to merge 2 commits into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4814 +/- ##
=======================================
Coverage 97.61% 97.61%
=======================================
Files 952 952
Lines 30816 30819 +3
Branches 11318 11321 +3
=======================================
+ Hits 30081 30084 +3
Misses 688 688
Partials 47 47 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ernst-dev
had a problem deploying
to
allure-report
July 23, 2026 16:16 — with
GitHub Actions
Failure
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.
Description
Adds an opt-in, backward-compatible
allowNonLinearNavigationboolean prop toWizard. When set totrue, users can jump directly to any step ahead of the current one from the navigation pane, rather than only to previously-visited steps or optional steps skippable viaallowSkipTo. This enables a non-linear navigation model where every step is directly reachable.Implementation reuses the Wizard's existing step-status/event machinery — no new event reason or breaking change:
Nextstatus whenallowNonLinearNavigationis on, so it renders as a focusable, non-aria-disablednavigation link.onNavigatewithreason: 'skip'(already documented as navigating to a previously-unvisited step); visited steps continue to firereason: 'step'.isLoadingNextStepistrue.false;allowSkipTo(the in-form skip-to button) is independent and can be combined.Threaded through
internal.tsx→wizard-navigation/wizard-step-navigation-expandable→wizard-step-list(getStepStatus), covering both visual-refresh and classic navigation panes plus the small-container expandable pane.Related links, issue #, if available: Internal SIM AWSUI-61922.
How has this been tested?
Non-linear navigationunit-test suite insrc/wizard/__tests__/wizard.test.tsxcovering: all forward steps enabled when the prop is set, backward-compatibility (forward required steps stay disabled by default),reason: 'skip'on forward jumps to unvisited steps,reason: 'step'on navigating back to visited steps, and forward steps remaining disabled duringisLoadingNextStep.jest -c jest.unit.config.js src/wizard/__tests__/).eslintclean onsrc/wizardandpages/wizard;quick-build(TypeScript) clean.pages/wizard/non-linear-navigation.page.tsxfor manual/visual verification, including keyboard navigation.Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
interfaces.ts.CONTRIBUTING.md. — Yes, opt-in, defaults tofalse.CONTRIBUTING.md. — Yes.aria-current/aria-disablednavigation-link semantics.Security
checkSafeUrlfunction. — N/A, no URL handling.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.