oficina / meet Public

Switcher: show the suite's apps as tiles open

On branch feat/switcher-tiles

🤖 Paul asked: "Can the 'All apps' dropdown just be a list of apps rather than a dropdown with a single-item list?"

What changed (f7abad372c57a699e464846e21d6727c86581a7f)

  • internal/calls/chrome.go: the switcher now sets Apps: chrome.SuiteApps(a.cfg.home.Directory, "calls"). That gives six tiles (Docs, Sheets, Slides, Calendar, Memoria, Calls), each at https://<slug>.<directory host>/, with Calls marked current, and "All apps" below a divider. It still only appears when HOMEDIRECTORYORIGIN is configured. No origins are hard-coded.
  • internal/calls/app.go: brand.Handler() was added, mounted at brand.Prefix on the outer mux next to sky.Handler()/theme.FontHandler(). It is public and sessionless. The CSP's img-src 'self' data: already covers the icons.
  • estilo is pinned to branch commit 0e4003429d577cf282f3ba4932b6c8560fc091ce (estilo discussion oficina/estilo #24). It must be re-pinned to the estilo main commit after that merges. The bump from 530cb932e768 broke no existing tests.

Tests TestAllAppsLinksToDirectory is replaced by TestTheSwitcherShowsTheSuite (homeconsumertest.go). On / and /settings it checks:

  • the six tiles appear in order, with the right hrefs, icons and names
  • exactly one aria-current, on the Calls tile, with the hidden " (this app)" label
  • "All apps" to the directory appears after the <hr>

It also checks that GET /static/estilo/brand/calls.svg returns 200 with no cookies, and that there is no switcher when no directory is configured. I watched it fail twice: once with the Apps line removed (no tiles), and once with the brand mount removed (icon 404).

Local gate (GOTOOLCHAIN=go1.26.5, .amadan/ci.d/* in order): vet, fmt, test, migration-check and race all pass. make browser was not run: the change is only server-rendered switcher markup, and that gate needs Chromium with the sandbox off.

Not merged, not deployed.

🤖 Hub CI on f7abad3: failed. The failure was already on main and was not caused by this branch.

Only one test fails: TestCreditsMatchProductionDependencies, in step "test". Its message is: "credits were generated with go1.26.5, this test is running under go1.26.10." The hub runner runs make test under go1.26.10, but Calls' credits are pinned to go1.26.5. origin/main at 39eb304 fails CI in exactly the same way, with the same test and the same message (run of 2026-10-21). Every other package passes on the hub, including the new switcher test.

Locally, with GOTOOLCHAIN=go1.26.5, vet, fmt, test, migration-check and race all pass. I made no runner or credits changes: make credits would only re-stamp notices.json to go1.26.10, and the test tells you not to do that. The runner's toolchain needs fixing separately.

Not merged, not deployed.

🤖 Review only, from a detached scratch worktree under /tmp/switcher-review-21a32889; whole branch compared with freshly fetched origin/main. No source edits, commits, pushes or merges. Reviewer: GPT-6-Astra (Codex), reviewing for session 21a32889.

Reviewed head f7abad372c57a699e464846e21d6727c86581a7f against 39eb304921f35127b308a9e3e462b35f1023319c.

VERDICT: APPROVE — ready to merge.

  1. No P0, P1 or P2 findings.

The current slug is correctly "calls", not the repository name "meet". connect.DecodeCredentials validates the startup directory before it reaches SuiteApps; request data does not supply destinations. The new GET brand mount is on the outer mux, outside the session middleware, and exactly at brand.Prefix. The handler itself serves only allowlisted embedded SVGs. The page test exercises both / and /settings, all six tiles, the unique Calls current marker/hidden label, the divider/All apps link, a cookie-free icon request, and absence without a directory. Chrome CSS comes directly from the pinned module.

Shared-component browser verification used HTML rendered by the actual estilo branch templates and CSS: Chromium and WebKit, all six current-app states, signed in and signed out, at 320, 390 and 1280px (72 layouts). All passed: three columns/two rows, no horizontal overflow, loaded icons, targets above 24px and reachable by pointer. Keyboard opening, link order, Escape/focus return, accessible names and scriptless opening passed; WebKit link navigation used macOS Option-Tab.

Validation: GOTOOLCHAIN=go1.26.5 make ci race passed completely. Also ran GOTOOLCHAIN=go1.26.5 make browser as AGENTS.md requires for a page review. Its broad call-media suite reported three failures in unchanged behavior: backdrop paint took 44.1 ms against an 8 ms threshold, and the window scenario missed the bar/title and tile-ellipsis fade checks. I stopped the remainder after those failures; this is not a claimed full browser-gate pass. That fixture sets no Home credentials or directory (internal/callstest/browser_test.go:417), so it does not render the switcher; none of the tested media/fade code changes in this branch. The targeted switcher browser checks above all passed.

Hub CI remains red for the known Go 1.26.10 credits mismatch, which also fails on main; the local Go 1.26.5 gate passes. Note: repin estilo to its resulting main commit after estilo #24 merges. The code verdict does not claim the runner or broad browser gate is green.

Re-pinned estilo to main d53b8e9533a168dee0dc89370fadeef22a43b4f0 (estilo #24 squash; tree identical to the old branch pin 0e40034). go.mod/go.sum only.

New head of feat/switcher-tiles: 3a501ab855d1a07310428c3c745e1c8685ec281f

Local gate (make ci and make race; writeestilo re-run, no diff, GOTOOLCHAIN=go1.26.5): passed. Waiting on hub CI.