feat: add back navigation to onboarding wizard - #560
Open
BABAT-CODE wants to merge 1 commit into
Open
Conversation
Add a Back button on every step after the first so merchants can navigate to earlier steps without losing progress on later ones. Key changes: - Back button (aria-label "Go back to step N of 4") is rendered in the footer on steps 2-4, matching the existing wizard-btn--secondary style used elsewhere in the footer. - All per-step state (walletAddress, verified, invoiceAmount, invoiceRecipient, invoiceCreated) is retained in component state and localStorage when navigating backwards; the wizard only clears state on full completion. - Step action handlers (handleConnectWallet, handleVerifyAddress, handleCreateInvoice) now only auto-advance when the action fires on the current step. If a user navigates back to a completed step and re-inspects their data, clicking Next advances normally without overwriting later-step data. Tests added in OnboardingWizard.test.tsx (6 tests): - No Back button on the first step. - Back button present and functional on step 2 (verify). - Invoice data preserved on back/forward round-trip from step 4. - Wallet address preserved on back/forward round-trip from step 2. - Back button present on the last (dashboard) step. - Previously-completed step does not auto-advance or lose later data. Closes WHEELBACK#2
|
@BABAT-CODE Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Add a Back button on every step after the first so merchants can navigate to earlier steps without losing progress on later ones.
Key changes:
Tests added in OnboardingWizard.test.tsx (6 tests):
Pull Request
Summary
Checklist
abis/andCOMEBACKHERE-contracts/)Notes
make check-abi-snapshots.closes #457