Skip to content

IS-11570 Add browser back/forward navigation to the HAAPI stepper#266

Draft
aleixsuau wants to merge 2 commits into
devfrom
feature/dev/IS-11570-haapi-stepper-history-navigation
Draft

IS-11570 Add browser back/forward navigation to the HAAPI stepper#266
aleixsuau wants to merge 2 commits into
devfrom
feature/dev/IS-11570-haapi-stepper-history-navigation

Conversation

@aleixsuau

@aleixsuau aleixsuau commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Jira: https://curity.atlassian.net/browse/IS-11570

Adds useHaapiStepperHistoryNavigation and mounts <HaapiStepperHistoryNavigation /> in the app, wiring the browser Back/Forward buttons to the HAAPI stepper:

  • Records every reached step as a browser-history entry, mirrored in an in-memory model.
  • Back/Forward re-opens the nearest reproducible step (GET link / GET form) in the direction of travel, skipping non-reproducible ones (POST forms, client operations).
  • Truncates abandoned forward branches, mirroring native pushState behaviour.

Testing

Run a HAAPI flow and use the browser Back/Forward buttons: reproducible steps (GET links / GET forms) are revisited, non-reproducible ones (POST forms, client operations) are skipped.

Unit tests: npx vitest run src/shared/feature/history.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aleixsuau
aleixsuau requested a review from luisgoncalves July 23, 2026 13:26
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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