Skip to content

Correct Tool header story widths and stale comments in browser-host, theme.css, and the website docs rail - #1888

Open
dormouse-bot wants to merge 1 commit into
mainfrom
fix/nightly-stale-comments-2026-11-24
Open

dormouse-bot wants to merge 1 commit into
mainfrom
fix/nightly-stale-comments-2026-11-24

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Two Tool header stories rendered a different tier than their comments say, and a few comments had drifted from the code. Found by tonight's rolling survey; no runtime behavior changes.

  • lib/src/stories/BrowserChromeHeader.stories.tsx: toolHeaderTier reserves two 26px control slots and the 36px Display slot before applying terminalHeaderTier's 293/173/98 cut-offs, so a Tool's splits go below 382px, Display below 187px, and minimize/kill below 151px. The comments said 356/161/125. TinyTool (140px) therefore rendered the tiny tier, the same as SmallestTool, and NarrowDirtyTool (126px) did too. They move to 170px and 151px so each lands in the tier its comment names. Expect an Argos diff on TinyTool and NarrowDirtyTool.
  • lib/src/host/browser-host.ts: the viewport case's (r.dpr === undefined || dpr) can never be false after the dpr === null return just above it, so it's removed. The parseBrowserRequest comment pointed at the rationale "in docs/specs/dor-browser.md"; the evidence is in dor-browser.rationale.md, so it now uses the (…; rationale) marker form.
  • lib/src/theme.css: the rationale pointer now names docs/specs/theme.rationale.md.
  • lib/src/globals.d.ts, website/src/lib/docs-pages.ts: dropped a consumer list that missed Hosted and the VS Code extension, and a "five producers" count that named three.
  • scripts/windows-audit/prepare.mjs: uses the createHash already imported instead of a dynamic re-import.

tsc -b in lib and browser-host.test.ts pass locally.

- BrowserChromeHeader stories: the Tool header's tier boundaries are
  382/187/151px, not 356/161/125; TinyTool (140px) and NarrowDirtyTool
  (126px) rendered the tiny tier, so move them to 170px and 151px.
- browser-host: drop a viewport clause the dpr null check already
  decides; point the parseBrowserRequest comment at the rationale marker.
- theme.css: the rationale lives in theme.rationale.md.
- globals.d.ts, docs-pages.ts: drop consumer lists and a producer count
  that had gone stale.
- windows-audit/prepare.mjs: use the createHash already imported.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 43de625
Status: ✅  Deploy successful!
Preview URL: https://84d7f8a3.mouseterm.pages.dev
Branch Preview URL: https://fix-nightly-stale-comments-2-bl44.mouseterm.pages.dev

View logs

This branch was successfully deployed

1 active deployment
dormouse/preview — 43de6254 Deployed Nov 24, 2026 by argos-ci[bot]
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