Repository navigation
feat(explorer-ui-v2)!: show only the network picker, with no version picker, label or banner - #189
Merged
Merged
Conversation
…picker, label or banner Each network now serves one Aztec version, so the header offers only the network choice. - Remove the version picker and label (version-selector.tsx) and the previous-version banner (version-banner.tsx), which only rendered on a non-canonical build, with their styles. - `VITE_CHICMOZ_ALL_UI_URLS` keeps each network's name and URL; fields after the URL, such as today's `|v6|canonical`, are read and ignored, and a network listed twice keeps its first entry. - With no archived state, the WebSocket URL is always used and the landing tip always shows the live block clock. - The Alpha V5 notice renders whenever `VITE_CHICMOZ_V5_RETIRED_NOTICE` is `true`. BREAKING CHANGE: the UI no longer reads `VITE_NETWORK_VERSION`, nor the version and status fields of `VITE_CHICMOZ_ALL_UI_URLS`; an `archived` entry no longer turns off the WebSocket or the live block clock. Builds that still set them are unaffected otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e bar to one picker - A network listed twice in `VITE_CHICMOZ_ALL_UI_URLS` links to its first entry whose status is `canonical` or absent, else to its first, so a legacy list that names an archived version first still links to the current one. - The top bar now holds one picker. Measured in Chromium from 300 to 1920 px with the network picker as a menu and the longest chain label, each link folds about 50 px narrower than before (two links hold from 407 to 924 px), and the wordmark fits down to 300 px, so the rule that hid it below 360 px is gone. - Tests: the header shows no version label or picker, scoped to the top bar, for one version per network and for a previous version, and nothing renders between the top bar and the page; on a build whose version the list marks archived, the WebSocket URL is still used and the landing tip still shows the live block clock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… tie-break - CLAUDE.md states the deployment list's real rule: a legacy `|version|status` suffix is ignored, except that a network listed twice links to its first entry whose status is `canonical` or absent, else to its first entry. - The shell cases turn the Alpha V5 notice off, so the check that nothing renders between the top bar and the page holds when the test environment sets it. - The top bar shows one more link just above each of its five breakpoints than at it. - The archived hero tip case sets its own network and the file restores the env after each test. - The tie-break case covers a `CANONICAL` status and an entry with no status, each listed after a non-canonical entry of its network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #188, taking its option 1 (remove).
What changes
version-selector.tsxandversion-banner.tsxare deleted).VITE_NETWORK_VERSIONis no longer read. A build that still sets it behaves the same as one that does not.VITE_CHICMOZ_ALL_UI_URLSkeeps its shape. Entries areNetwork|URL. A legacy|version|statussuffix is ignored, except for one tie-break: a network listed twice links to its first entry whose status iscanonicalor absent, else to its first entry. Networks keep their first-seen order.NETWORK_VERSION,DEPLOYMENT_STATUSand the archived handling are removed, so the WebSocket URL and the landing page's live block clock no longer depend on the deployment list.VITE_CHICMOZ_V5_RETIRED_NOTICE), network switching (path, query and fragment are kept), and the footer's build label.This is marked breaking (
feat!) because a deployment that served two versions of one network side by side loses its version picker. A later side-by-side version would bring it back from history.Tests
shell.test.tsx: no version label or picker in the top bar, and nothing rendered between the top bar and the page, for the one-version list and for a list that still names a previous version.deployments.test.ts: the list parser, including the tie-break (canonical after non-canonical, mixed-case status, missing status, two canonical entries).constants.test.ts,hero-tip.test.tsx: a build whose version the list marksarchivedstill uses the WebSocket URL and still shows the live block clock.top-bar.test.tsx: both sides of all five breakpoints.Local run in
services/explorer-ui-v2:yarn lintclean,yarn test277 passed (50 files),yarn buildpasses.Known limit
The breakpoints were measured in headless Chromium with a fallback monospace font scaled to approximate Space Mono, so they carry a few pixels of uncertainty beyond the 10 px of slack. The unit tests pin the values, not the physical fit.
🤖 Generated with Claude Code