oficina / docs Public

Docs: the chrome is set in the system UI font (estilo 260f98c) open

On branch chore/estilo-system-font

Brings estilo main 260f98c into Docs, the same change Sheets (af8deeb) and Calendar (00d8e3d) already landed.

What changed

  • go.mod/go.sum: estilo v0.0.0-20261025200559-260f98c42e2d (from d53b8e9; the only other commit in between is f14458a, homeconnect's action row, which Docs does not import). go mod tidy run.
  • internal/docs/views/layout.html: removed <link rel="stylesheet" href="/static/estilo/fonts/v1/fonts.css">. There was no Onest preload.
  • internal/docs/app.go: estilo's font handler stays mounted at theme.FontPrefix; comment now says why (old cached pages).
  • internal/docs/theme_assets_test.go: TestOnestIsLinkedAndServed (required the link) deleted.
  • internal/docs/nowebfont_test.go: TestNoPageLinksOrPreloadsAChromeWebfont, new.
  • AGENTS.md: the "chrome uses no webfont" rule no longer names Onest as an exception.

The test tells chrome fonts from document fonts Requests the door, list, a document, the share page, a public link and the HTML error page (Accept: text/html). Fails if any names estilo's /static/estilo/fonts/ at all, has a <link> with as=font or a font-file href outside Docs' own /static/fonts/, or declares an inline @font-face. Also fails if the document page has no Docs font preload under /static/fonts/, so an allowance that matched nothing cannot pass. It scans every template under views/ (10) for the estilo path, and checks the retired v1 fonts.css and onest-latin.woff2 still answer 200.

Seen to fail, each for its own reason (pages stayed 200 throughout)

  • Before removing the link: red on layout.html and all six pages ("names estilo's webfont path").
  • Onest preload at /static/onest-latin.woff2: red, "links or preloads a chrome font".
  • Inline @font-face in layout: red, "declares a font face inline".
  • show.html's document preloads removed: red, "preloads none of Docs' own faces".
  • Document preloads moved under /static/estilo/fonts/: red.
  • Font handler unmounted: red, v1 URLs answer 404.

Gates

  • TMPDIR=/tmp GOTOOLCHAIN=go1.26.5 .amadan/ci.d/10-gate: gate: ok.
  • go test -tags browser -run Font ./internal/docs/: result posted below.

Not merged, not deployed.

LLM

Pins estilo 260f98c (Onest dropped, chrome in the system UI face, Paul: "No flashing, ever!"); drops the v1 fonts.css link; new test fails if any served page links, preloads or declares a chrome webfont, while Docs' own /static/fonts/ document preloads stay required.

Gates at 7c8e608

  • Hub CI: amadan ci status oficina/docs -branch chore/estilo-system-font reports passed (exit 0).
  • Local TMPDIR=/tmp GOTOOLCHAIN=go1.26.5 .amadan/ci.d/10-gate: gate: ok.
  • go test -tags browser -run Font ./internal/docs/ (RASTRILLO_CHROME = Playwright chromium-1234): everything passes except TestFontTheGateCoversEveryFaceTheDocumentUses. That test was already failing: it fails the same way on origin/main 5a951ba with no change from this branch. Run alone on main it took 423 s and failed on the same documents with the same messages (default seed 20261025, server-rendered pass only): 6, 11, 16, 21, 26 and 31.bin. For example, "6.bin server-rendered: the gate waited for [Docs Carlito Docs Liberation Mono], the DOM uses [Docs Carlito]", and "11.bin ... the DOM uses []". Every fifth document fails, so this looks like a problem in the rig or in the feat/fonts work, not the chrome font. Nobody has looked into it yet. This branch leaves it alone.

First browser run note: without RASTRILLO_CHROME set, every chromedp font test fails at 0.00s with "no chromium found". That is an environment problem, not a result.

GPT-6-Astra (Codex), reviewing for session 21a32889.

Reviewed the whole branch chore/estilo-system-font at 7c8e608624db9dfce432a03eb754d286a9074896 against 5a951bab89f4eb0c180ed85e2611562d2022926f, in detached scratch worktrees under /tmp. After fetching, origin/main is 35ffb28; its intervening commit touches only native-app files, and the merge base remains the requested 5a951ba.

VERDICT: APPROVE — ready to merge.

  1. No P0, P1 or P2 findings introduced by this branch.

The adoption is correct: the selected estilo theme supplies the system UI stack, Docs no longer links the v1 stylesheet, and the legacy handler remains mounted. The dependency's intervening homeconnect change is not imported by Docs. Docs' document font manifest, preloads in show.html, hold/gate scripts, gate construction and editor bundle are unchanged.

Verification:

  • OrbStack running; TMPDIR=/tmp GOTOOLCHAIN=go1.26.5 .amadan/ci.d/10-gate passed (gate: ok). Hub CI also reports passed at the reviewed head.
  • The pinned estilo package's TestChromeFontIsSystemUI, TestFontHandlerServesOnlyV1sTwoFiles and TestFontV1IsUnchanged passed.
  • The new test passes clean. Seven independent scratch mutations failed on their intended assertions: restore v1 stylesheet; add a chrome font preload elsewhere; add a font-file link without as=font; add inline @font-face; remove document preloads; move them under estilo's prefix; unmount the legacy handler. The page responses retained their expected statuses. For the handler mutation, its now-unused import was also removed to get past compilation and observe both legacy URLs returning 404. Restoring the scratch files made the test pass again.
  • TMPDIR=/tmp GOTOOLCHAIN=go1.26.5 CGO_ENABLED=0 RASTRILLO_CHROME=<Playwright chromium-1234> go test -tags browser -run Font ./internal/docs/ -count=1 -timeout=30m -v completed in 844 seconds: 29 top-level tests passed, including both Chromium/WebKit checks; no skips. The sole failing test was TestFontTheGateCoversEveryFaceTheDocumentUses. I separately ran that test on the exact baseline 5a951ba (424 seconds): all six diagnostics match the branch exactly, on server-rendered 6.bin, 11.bin, 16.bin, 21.bin, 26.bin, and 31.bin, seed 20261025. This confirms the known failure is pre-existing, not caused by this adoption.

No branch edits, commits, pushes or merges. All mutation edits were confined to the scratch worktree and restored.