Skip to content

Conversation

@joshlarson
Copy link
Contributor

@joshlarson joshlarson commented Jan 28, 2026

Scope

No ticket. I just got annoyed having to keep typing things like "dev-blue.mbtace.com".

Implementation

  • This simply adds more buttons to the banner at the top of non-prod pages.

Screenshots

Screenshot 2026-01-28 at 4 42 14 PM

How to test

Navigate to any page on the website locally, ideally one with a complicated path, like this schedule finder 2.0 one, and then click one of the env buttons on the banner. That should take you to the same page, but in the environment you selected.

Minor Pitfall

Because this uses the @conn object when the layout is rendered, actions that change the URL without a full page refresh will sometimes cause the buttons to navigate to the page that you originally navigated to, rather than the page than what you'd expect based on the URL.

For instance, in SF2.0, if you change the route, stop, or direction, those are live-patches, not true navigations, which means that the buttons won't get updated.

If you run into this, you can simply refresh the page and then try the buttons again.

(If these buttons were intended to be used in production, then that would change my thinking on this, but because these buttons won't be visible to riders, I don't think it's worth to effort to fix this right now.)

@joshlarson joshlarson requested a review from a team as a code owner January 28, 2026 21:39
@joshlarson joshlarson requested a review from thecristen January 28, 2026 21:39
@joshlarson joshlarson added the dev-blue Deploy to dev-blue label Jan 28, 2026
Copy link
Collaborator

@thecristen thecristen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, why not

@joshlarson joshlarson merged commit e565ae7 into main Jan 29, 2026
17 checks passed
@joshlarson joshlarson deleted the jdl/feat/buttons-to-change-environments branch January 29, 2026 18:42
@github-actions github-actions bot removed the dev-blue Deploy to dev-blue label Jan 30, 2026
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.

3 participants