Skip to content

Spaces header B on the public pages (draft) - #3933

Merged
backnotprop merged 3 commits into
mainfrom
site/spaces-header-b
Nov 23, 2026
Merged

backnotprop merged 3 commits into
mainfrom
site/spaces-header-b

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Draft. Do not merge yet: merging any apps/marketing change deploys the public site.

What it changes

Replaces the top strip on /workspaces/ and /workspaces/pricing/ with the Spaces "header B":

  • Left to right: the name block (links to /workspaces/), Open source ★ 20.4k (a drop-down of repositories), Pricing (/workspaces/pricing/), the light/dark switch, and Book a call as the last block, padded to the page edge like the name block.
  • The drop-down opens by click and by keyboard (Enter, Space, Arrow Down/Up). Escape, a press outside, focus leaving it, or a scroll closes it. It has aria-expanded and aria-controls.
  • From 760 to 899px wide the count is dropped. Under 760px the words and Book a call fold into one menu. While that menu is open the page cannot scroll, Tab stays inside the menu, and focus moves into the menu and goes back to the button when it closes. Escape closes the menu. Under 420px the theme switch becomes a row in the menu.
  • On the pricing page both Pricing links have aria-current="page".
  • Without scripts, pointing at or focusing the drop-down or the menu button opens it, so every link can still be reached.
  • The theme switch is the site's own control with the same behaviour as before: it follows the system setting until someone chooses, and the choice is saved in the site's cookie. It is now in the header and in the menu, with the labels "Switch to dark theme. Current theme: Light." and "Switch to light theme. Current theme: Dark."
  • The "Join the waitlist" buttons and their dialog are unchanged.

Star counts: one source. apps/marketing/src/data/oss-stars.json now lists the count for every repository, not only the top five. The total and the counts on each drop-down row all come from this file. The refresh script writes the new shape. Nothing is fetched at build time or in the browser.

The pricing page becomes indexable. The header now links to it, so its noindex and its sitemap exclusion are removed.

Undecided

  • Sign in on the public site. It is left out on purpose, so Book a call is the last block.

Tests

  • apps/marketing/oss-stars.test.ts checks the trigger label, the row counts, the fallback with no snapshot, and that the committed snapshot covers every row and adds up to its total.
  • apps/marketing/security-build.test.ts checks the built pages: the addresses of home, Pricing, Book a call and the seven repository links; no Sign in; Pricing marked current only on the pricing page; the star count taken from the snapshot; the pricing page index, follow and listed in the sitemap.

Replace the Spaces top strip on /workspaces/ and /workspaces/pricing/ with
header B: the name block, Open source with its star count and a drop-down
of repositories, Pricing, the light/dark switch and Book a call. Under 760px
the words fold into one menu. No Sign in.

The star snapshot now lists every repository's count, so the total and the
drop-down rows come from one file. The pricing page is linked from the
header, so it is no longer noindex and is in the sitemap.
@backnotprop
backnotprop marked this pull request as ready for review November 23, 2026 16:01
@backnotprop
backnotprop merged commit 493dbb0 into main Nov 23, 2026
27 checks passed
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