Skip to content

feat(lan-webui): open on a new conversation with a rail and drawer - #2686

Merged
vastsa merged 1 commit into
mainfrom
feat/lan-webui-desktop-layout
Dec 1, 2026
Merged

vastsa merged 1 commit into
mainfrom
feat/lan-webui-desktop-layout

Conversation

@vastsa

@vastsa vastsa commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary / 概要

LAN WebUI now opens on a new conversation instead of a project list, and projects/conversations live in one rail.

  • New-conversation page (compose.js): Desktop mascot + greeting, the bar's title switches the project, one composer pill with attach/send and a model chip. No session exists until the first message or a model choice; the draft and files then move into it, the chat replaces the page in history and sends (or opens the model chooser) itself. A failed start keeps the draft and files, and the retry reuses the idempotency key, so one draft never creates two conversations.
  • Rail (rail.js): recent conversations (running work kept), projects, Search, Archived, device + Disconnect. Docked beside the page at ≥1024 px like the Desktop sidebar (secondary click opens the organize menu, open page marked); a modal drawer behind the bar's menu button on phones (scrim, Esc, page inert, focus returned).
  • Visuals: wide windows read on Desktop's 760 px chat column with Desktop row/text density under a mouse; phones in light mode use a #f5f5f5 plate under white cards (composer, sheets, drawer, fields, code).
  • The mascot is served from apps/desktop/src/assets via Vite ?inline, so LanAsset.body now also accepts bytes.
  • Spec §7, E2E-271/276 and the 9-locale changelog describe the new flow.

Requirement link / 需求关联

  • Owner request in a PI-Desktop session: optimise the desktop-browser layout after Desktop, then rework the phone UI after a provided WorkBuddy reference. No issue.
  • Before/after screenshots were reviewed locally (390 px light/dark, drawer, project picker, typed draft, lists; 820/1024/1280/1440 px). They are not attached here because the CLI cannot upload images.

Validation

Task candidate 7459b2938 on base 62532ce13 (macOS, host Electron):

  • node --test apps/desktop/test/lan-webui-browser-user-path.e2e.mjs: 11/11, including new rail and failed-first-start journeys
  • node --test apps/desktop/test/lan-webui-*.test.mjs: 30/30
  • desktop tsc --noEmit, check-style-tokens, check-architecture, shared changelog.test.ts, docs:check, check:agent-policy, check:pr-base
  • Vite build of assets.ts: the mascot bytes match the source files

Every visit used to land on a project list, and starting a conversation
created an empty session before the user had typed anything. The page now
opens on a new conversation with the Desktop mascot. The conversation is
created with its first message or a model choice, takes the page's place
in history, and a retried start reuses its idempotency key, so one draft
never makes two conversations.

Projects, recent conversations, search, the archive and disconnect move
into one rail: docked beside the page in windows at least 1024 px wide,
as the Desktop sidebar is, and a modal drawer behind the bar's menu
button on phones. Wide windows read on Desktop's chat column; phones in
light mode use a grey plate under white cards.

The mascot is served from the Desktop assets, so LAN assets may now carry
bytes. Specs, E2E-271/276 and the changelog describe the new flow.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7459b29
Status: ✅  Deploy successful!
Preview URL: https://10ccf661.pi-desktop.pages.dev
Branch Preview URL: https://feat-lan-webui-desktop-layou.pi-desktop.pages.dev

View logs

@vastsa
vastsa merged commit f16d775 into main Dec 1, 2026
7 checks passed
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