fix(site): support browser back and forward in template builder wizard - #27104
Merged
jeremyruppel merged 1 commit intoJul 14, 2026
Merged
Conversation
jeremyruppel
commented
Jul 8, 2026
jeremyruppel
marked this pull request as ready for review
July 8, 2026 18:27
aqandrew
approved these changes
Jul 8, 2026
aqandrew
left a comment
Contributor
There was a problem hiding this comment.
Works well! Feels very snappy + glad state is preserved when going forward/back with Cmd + arrow keys
jeremyruppel
marked this pull request as draft
July 8, 2026 20:07
…wizard Drive the wizard's current step from a ?step= search param so browser back/forward moves between steps instead of leaving the wizard. Step transitions push history entries; invalid, skipped, or unreachable steps are clamped to what the wizard state allows and the URL is rewritten with a replace. The ?base= param is the only search param accepted on entry. It is consumed by the page container: resolved against the available bases, held in local state, and removed from the URL before the wizard view mounts. When a base is preselected this way, the wizard starts on the first step after base selection. Also moves toSelectedBaseMeta into wizardState.ts so both the page container and BaseInfraSelectStep can use it, and adds initWizardState and furthestAllowedIndex helpers.
jeremyruppel
force-pushed
the
jeremyruppel/devex-594-wizard-browser-navigation
branch
from
July 13, 2026 12:59
32f5ce9 to
df136ff
Compare
jeremyruppel
marked this pull request as ready for review
July 13, 2026 14:06
aqandrew
approved these changes
Jul 13, 2026
jeremyruppel
deleted the
jeremyruppel/devex-594-wizard-browser-navigation
branch
July 14, 2026 12:55
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Browser back/forward controls did not work in the template builder wizard. Using browser navigation sent the user out of the wizard entirely instead of moving between steps.
The wizard's current step is now driven by a
?step=search param. Step transitions push history entries so browser back/forward walks the steps. Steps that are invalid, skipped, or unreachable given the wizard state are clamped and the URL is rewritten with a replace, keeping URL and state in sync in both directions.?base=is accepted as the only entry search param and deep-links to a preselected base template (superseding #26808). The page container resolves it against the available bases, holds the wizard behind a loader until it is consumed and removed from the URL, then mounts the wizard starting on the first step after base selection.Closes https://linear.app/codercom/issue/DEVEX-594