CodeNomad/packages
Pascal André 036a008c2c
fix(ui): restore the web preview entry on mobile, hide it through Remote Control (#1128)
Phones lost their only entry to the session web preview when the
conversation actions were reorganized: on mobile, the Full screen action
took the preview's place instead of joining it. Previews still work there
through direct (LAN) access, which serves them through the capability
iframe proxy. Remote Control, on the other hand, serves no preview content
(`/previews/*` is host-only), so its clients, desktop browsers included,
were offered a preview that could only fail to load.

The conversation header now offers the preview on every platform, inline
and in its overflow menu, with Full screen added on mobile. `/api/meta`
reports `remoteControl: true` for requests that arrived through the Remote
Control ingress, `lib/server-meta.ts` exposes it as `remoteControlClient()`,
and the shell hides the preview entry for those clients. The shell asks for
the server metadata on mount; the read is cached and shared with the other
callers, and the entry stays visible until a Remote Control answer arrives.

The Remote Control help page says, in all ten locales, that conversation
actions hide Open web preview there; dev-docs/UI_SHELL.md records the
convention.

Validation: a header-windows browser test drives the real conversation
header on a Pixel 5 profile and on desktop Chrome, with and without the
Remote Control metadata, and checks the inline buttons and the overflow
menu. It fails on the previous shell (no preview entry on the phone, and a
preview entry kept through Remote Control). meta.test.ts and the Remote
Control surface test cover the flag locally and through the real ingress
(the surface fixture's metadata gains the `host` field /api/meta needs).
The UI unit tests run by CI, the server routes, proxy and Remote Control
suites, the help checks and both typechecks pass.
2026-10-24 15:07:18 +02:00
..
cloudflare chore(release): prepare CodeNomad 1.0.0 versions (#1045) 2026-10-20 20:36:44 +02:00
electron-app feat(settings): manage desktop data profiles and drop the startup question (#1123) 2026-10-24 09:46:30 +02:00
remote-tunnel chore(release): prepare CodeNomad 1.0.0 versions (#1045) 2026-10-20 20:36:44 +02:00
server fix(ui): restore the web preview entry on mobile, hide it through Remote Control (#1128) 2026-10-24 15:07:18 +02:00
tauri-app feat(settings): manage desktop data profiles and drop the startup question (#1123) 2026-10-24 09:46:30 +02:00
ui fix(ui): restore the web preview entry on mobile, hide it through Remote Control (#1128) 2026-10-24 15:07:18 +02:00