shell: custom window title bar in the Matou language; hide the native menu bar #256
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
The operator app window wears the stock OS frame: a native title bar labelled "OurCloud" plus the default Electron application menu (File / Edit / View / Window / Help). It looks like a generic Electron shell, not a Mātou surface.
What I expected
Ben's ruling from the Phase A rehearsal: the app draws its own title bar (like matou-app's, whose look he wants), with the native menu bar hidden. The custom bar should be colourable — its colours ride the kit's brand/presentation tokens so it wears the Mātou language (and follows a re-pointed community palette like every other surface).
Steps to reproduce
Additional context
matou-app (sibling project, same machine) is the reference implementation and the look Ben wants: a frameless window; the renderer draws a slim title bar with a drag region, the app title, and minimize / maximize / close buttons that call window-control IPC handlers in the main process; page layouts subtract the bar's height via a CSS variable. Port that pattern into this app's shell posture and style the bar from
--oc-*tokens (this is new app chrome — record the design decision as an ADR/DDR in the usual sequence). Native menu: hidden entirely.Reported during the #183 Phase A rehearsal.
Done in
a99be63(on origin/main).The operator app now draws its own window title bar in the Mātou language and hides the native menu entirely (Ben's #183 Phase A ruling, matou-app's precedent). Recorded as DDR 0123.
What shipped:
electron-main: frameless window (frame: false),Menu.setApplicationMenu(null), and three window-control IPC handlers (ourcloud:window-{minimize,maximize,close}) acting on the sourceBrowserWindow(maximize toggles restore).electron-preload: hands the rendererwindowControlson the boot bridge, beside the existing leave-the-app effects.app/src/components/shell/TitleBar.vue(new): a slim bar — drag region + accent mark + app title on the left, minimise/maximise/close on the right (adata-actioncontract). Colours are--oc-*tokens only (ground--oc-background, mark--oc-accent, serif title on--oc-ink,--oc-linehairline), so it wears the Mātou language and re-themes with a re-pointed community palette (ADR 0122 / DDR 0007).AppShellmounts the bar once above every surface; the surface subtracts the bar height via--oc-titlebar-height.windowControlsis threaded production/dev → boot → bootstrap → AppShell, with a no-op fallback off-shell (src/lib/windowControls.ts).Guards (the #257 boot-guard shape):
app/tests/unit/titleBarShell.test.ts(frameless + hidden menu + IPC wiring),titleBar.test.ts(bar title + controls), and anappShell.test.tsassertion that the bar mounts above every surface and drives. Full app suite green (boot.test.tsneedsgoon PATH, an unrelated sandbox env limitation).client_secretis echoed back by the SMTP + brand reconcilers, so the token exchange 401s and the door shows its own login form #1611