Skip to content

feat(explorer-ui-v2)!: show only the network picker, with no version picker, label or banner - #189

Merged
alejoamiras merged 3 commits into
mainfrom
explorer-ui-remove-version-picker
Dec 4, 2026
Merged

alejoamiras merged 3 commits into
mainfrom
explorer-ui-remove-version-picker

Conversation

@alejoamiras

Copy link
Copy Markdown
Collaborator

Closes #188, taking its option 1 (remove).

What changes

  • The header offers only the network choice. The version picker, the static version label and the version banner are gone (version-selector.tsx and version-banner.tsx are deleted).
  • VITE_NETWORK_VERSION is no longer read. A build that still sets it behaves the same as one that does not.
  • VITE_CHICMOZ_ALL_UI_URLS keeps its shape. Entries are Network|URL. A legacy |version|status suffix is ignored, except for one tie-break: a network listed twice links to its first entry whose status is canonical or absent, else to its first entry. Networks keep their first-seen order.
  • No "archived" mode. NETWORK_VERSION, DEPLOYMENT_STATUS and the archived handling are removed, so the WebSocket URL and the landing page's live block clock no longer depend on the deployment list.
  • The top bar is re-measured for one picker. Each primary link folds into the More menu about 50 px narrower than before (breakpoints 365 / 406 / 924 / 1035 / 1129), and the rule that hid the wordmark below 360 px is removed.
  • Unchanged: the Alpha V5 notice (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 marks archived still 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 lint clean, yarn test 277 passed (50 files), yarn build passes.

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

alejoamiras and others added 3 commits December 4, 2026 16:25
…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>
@alejoamiras
alejoamiras merged commit 09ca2f0 into main Dec 4, 2026
25 checks passed
@alejoamiras
alejoamiras deleted the explorer-ui-remove-version-picker branch December 4, 2026 18:36
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.

explorer-ui-v2: show no version picker, label or banner when each network has one version

1 participant