Repository navigation
feat(lan-webui): open on a new conversation with a rail and drawer - #2686
Merged
Merged
Conversation
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.
Deploying pi-desktop with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 概要
LAN WebUI now opens on a new conversation instead of a project list, and projects/conversations live in one rail.
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.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).#f5f5f5plate under white cards (composer, sheets, drawer, fields, code).apps/desktop/src/assetsvia Vite?inline, soLanAsset.bodynow also accepts bytes.Requirement link / 需求关联
Validation
Task candidate
7459b2938on base62532ce13(macOS, host Electron):node --test apps/desktop/test/lan-webui-browser-user-path.e2e.mjs: 11/11, including new rail and failed-first-start journeysnode --test apps/desktop/test/lan-webui-*.test.mjs: 30/30tsc --noEmit,check-style-tokens,check-architecture, sharedchangelog.test.ts,docs:check,check:agent-policy,check:pr-baseassets.ts: the mascot bytes match the source files