Skip to content

feat(web-ui): lay the Web UI out anew and keep one conversation per screen - #657

Merged
ShotaroKataoka merged 21 commits into
mainfrom
spec/webui-depth
Nov 18, 2026
Merged

ShotaroKataoka merged 21 commits into
mainfrom
spec/webui-depth

Conversation

@ShotaroKataoka

Copy link
Copy Markdown
Contributor

Summary

Lays the Web UI out anew and gives the chat one conversation per screen.

Layout

  • Decks, Styles and Templates move to a left rail (a top bar on phones), with Settings as a gear at its foot. The user menu (name, sign out) is a Cloud-only item below it.
  • The home screen opens on "What are we presenting?" with the chat input in the middle. Dashed Style and Template chips under the input open a gallery of style covers and template themes. Choosing one puts the same @style: / @template: token in the input that / does.
  • Once a conversation starts, it fills the first screenful and the deck list follows below it. When the conversation creates a deck, it moves into the chat sheet beside the deck. The move animates real heights and widths, so it is not a swap.
  • A deck's name, its steps (brief, art direction, outline, slides) as a progress track, and its tools share one row above the slides. At 1440px with the chat open, the slides get about 870px instead of 660px.
  • The / picker is the same card gallery as the chips. It is up to 640px wide whatever the input's width, and opens over the deck beside the chat sheet. It has All / Template / Style / Format buttons, and the arrow keys move in all four directions.
  • Text, surfaces and borders get more contrast steps (WCAG AA for secondary text), on a warm charcoal dark theme and the matching light one.

One conversation per screen

  • The New and deck tabs are gone. The home conversation stays while you open decks and come back, and only New chat clears it. A deck's sheet shows that deck's conversation only.
  • ChatPanelShell holds two conversations, the home one and the open deck's. Before, it held Panel A and Panel B, the tab state, keys and parking (−250 lines), and it had no tests of its own; it now has 6.
  • The rail's chat button is gone. With the sheet closed, Chat at the right of the deck bar opens it again.

Phone fixes (both also on main before this PR)

  • The header chat button marked the sheet open while the chat tab showed, so the sheet slid in, 440px wide, over the preview tab.
  • The chat tab used a second chat panel, which dropped the home conversation (and one that had just created the deck).

Checklist

  • make all passes (ruff + pytest). One test, test_svg_icon_is_inlined_with_prefixed_ids, fails in my worktree only because its icon catalog is not downloaded. It passes in a checkout that has the catalog. This PR changes no Python.
  • ash scan --mode local --fail-on-findings: bandit, checkov, semgrep and cfn-lint passed. grype, syft, trivy, gitleaks, opengrep and actionlint are not installed locally, so CI runs those.
  • Docs updated if behavior/paths changed (no doc describes the old layout)
  • CHANGELOG.md [Unreleased] updated for user-facing changes
  • Commit messages follow Conventional Commits

Testing

  • web-ui: npm test (1516), npm run build:cloud, tsc --noEmit, eslint src/, en/ja key parity.
  • In the browser (local mode, Playwright with a canned agent stream, so no agent runs), desktop 1440×900 and iPhone 13, dark/ja and light/en:
    • home → conversation → list below → open a deck → back: the conversation is still there, and New chat clears it
    • a conversation creates a deck: it becomes the deck's chat with no remount
    • the chat button in the deck bar
    • the gear opens Settings
    • phone chat/preview tabs and swipe
  • Not tried: a live agent (local ACP, Cloud) and a Cloud deployment.

Boundaries touched

None.

…UI type

SPEC: 20261116-1046_webui-depth
Progress: dark tokens lifted to three visible tiers, noise/glow off, solid header, Geist + Hiragino, page titles unified
Next: user reviews before/after and picks the direction
SPEC: 20261116-1046_webui-depth
Progress: user picked the warm variant (hue 70, c 0.004, L 0.165 +0.03 steps, 9% borders)
Next: type hierarchy and resting agent colour
…rief; gradient logo mark

SPEC: 20261116-1046_webui-depth
Progress: warm palette + round-2 type tiers (cards, counts, deck title, brief headings) and team-gradient logo
Next: user review of round2 shots; resting agent colour, light mode, contrast recheck
…re chrome, work area is a raised sheet)

SPEC: 20261116-1046_webui-depth
Progress: desktop-only app-canvas sheet; header border and chat panel shadow dropped on sm+
Next: user review of round3 shots
…ts, floating)

SPEC: 20261116-1046_webui-depth
Progress: shadow-float + popover 0.225 for menus/dialogs, resting shadow on deck cards and chat input, 2px hover lift
Next: user review of round4 shots
…de the canvas

SPEC: 20261116-1046_webui-depth
Progress: open chat owns the gutter (canvas margin-right 0 via :has), raised surface + left shadow; chat input steps to popover level
Next: user review of round5 shots
… share one page surface

SPEC: 20261116-1046_webui-depth
Progress: three levels (page, floating chat/cards/inputs, menus/dialogs); chat sheet inset 8px on all sides
Next: user picks round5 (canvas sheet) or round6 (no sheet)
…fic chat sheet shadow

SPEC: 20261116-1046_webui-depth
Progress: light foreground-muted 0.55->0.50; readable text-foreground/20-60 and muted/60-80 moved to muted/secondary tokens; --shadow-sheet per theme
Next: user review; open PR
…ompt, phase rail)

SPEC: 20261116-1046_webui-depth
Progress: desktop icon rail, creation-first home with hero prompt, boxless slide-object deck cards with readable titles, vertical phase rail in the workspace
Next: user review (merge or reset), then CHANGELOG and PR
… the sheet on send

SPEC: 20261116-1046_webui-depth
Progress: Panel A renders as the home stage while blank (same element, no remount); first send view-transitions it into the chat sheet; Spec/Vibe, HTML, + menu and model picker as chips in the composer footer; recent kiro sessions as cards under the stage (Local)
Next: user review (merge or reset), then CHANGELOG and PR
…ntinuous layout moves

SPEC: 20261116-1046_webui-depth
Progress: shell layouts stage/center/sheet; first message folds the heading and suggestions away and grows the column to the page (Web Animations on real height); deck creation or Back to decks narrows the column into the sheet (width and margins) while the page fades in; scroll-to-latest scrolls the message list only
Next: user review (merge or reset), then CHANGELOG and PR
…ess track

SPEC: 20261116-1046_webui-depth
Progress: deck title, phase track (done / next / later) and Slides tools share one row; tool labels collapse to icons when the bar is narrow (container query, names kept for screen readers); vertical phase rail removed (slides ~660px -> ~870px at 1440px with chat open)
Next: user review (merge or reset), then CHANGELOG and PR
… picker

SPEC: webui-depth
Progress: v6 — ChoiceChip gallery (style covers, template themes, 3 columns), token helpers, tests
Next: decide whether the / picker follows the same look
…ee of the input width

SPEC: 20261116-1046_webui-depth
Progress: v7 — shared ChoiceGallery cards, placeSlashPanel, kind buttons, 2D arrow keys
Next: user review (merge or reset)
…stom badge on the cover

SPEC: 20261116-1046_webui-depth
Progress: v8 — 4/3/2 columns by panel width, name-only captions with the description as a tooltip
Next: user review (merge or reset)
…eck tabs

SPEC: 20261118-1024_chat-single-panel
Progress: home conversation kept across decks (cleared only by New chat), deck chat per deck; tabs, parking and chatTab removed
Next: mobile check, user review
…he deck's chat/preview tabs

SPEC: 20261118-1024_chat-single-panel
Progress: the side sheet no longer opens over the preview tab; a phone overlay is the screen's width
Next: user review
…op the rail chat button

SPEC: 20261118-1024_chat-single-panel
Progress: the rail/header toggle is gone (home and phones never needed it); the deck bar shows Chat while the sheet is closed on desktop
Next: user review
… menu cloud-only; no dev badge

SPEC: 20261118-1024_chat-single-panel
Progress: Local's user menu held only Settings — the gear opens it directly; sign-in info and sign out stay in the cloud user menu; devIndicators off
Next: user review
…ab keeps the conversation

SPEC: 20261118-1024_chat-single-panel
Progress: the phone deck chat tab used a second inline shell; swapping to it unmounted the persistent one, losing the home conversation and the one that had just created the deck. The persistent shell now fills the screen below the tab bar (no header, no backdrop) and takes its own swipe
Next: CHANGELOG, PR
…phone fixes

SPEC: 20261116-1046_webui-depth
Progress: Unreleased Changed (layout, / gallery, chips, single chat) and Fixed (phone chat button, phone chat tab)
Next: PR
@ShotaroKataoka ShotaroKataoka added the blog:skip ブログ対象外 label Nov 18, 2026
@ShotaroKataoka
ShotaroKataoka merged commit d6a5a77 into main Nov 18, 2026
27 of 29 checks passed
@ShotaroKataoka
ShotaroKataoka deleted the spec/webui-depth branch November 18, 2026 12:28
ShotaroKataoka added a commit that referenced this pull request Nov 19, 2026
#660)

* 🐛 fix(web-ui): prerender the home screen as the stage, not the deck screen

The decks page started its layout state as "sheet", so the prerendered home
(and every first paint until hydration) laid out the deck-screen frame and
showed DeckListView's New Deck button, while the chat shell itself was
already rendered as the stage. Hydration then switched to the stage and
removed the button. Start the state as "stage", the shell's own first
layout on the home screen.

Found through the e2e suite: in CI the specs caught the prerendered New
Deck button, saw it "not stable" and then "detached from the DOM" once
hydration removed it. A probe of the home screen (MutationObserver,
15 s) showed the button attached at ~25 ms and gone at ~430 ms, then no
DOM mutations at all: a one-off swap at hydration, not a re-render loop.
After this change the button never appears on the home screen.

Checks: npm test 131 files / 1516 tests passed (one earlier full run hit
a SlideCarousel timing flake that passes alone 3/3 and on the re-run);
npx tsc --noEmit OK; npx eslint src/ --quiet OK.

* 🧪 test(e2e): start new chats from the home composer, not New Deck

Since #657 the home screen is the composer at the stage and DeckListView's
New Deck button only shows beside an open deck's sheet, so every spec that
clicked New Deck waited out its 60 s timeout (22 of the 25 failures in CI
run 44315920373; locally 25 failed / 3 passed in 24.6 min on 7c1e45f).
The specs now open /decks and type into the home composer once it has
taken the focus (it does so on hydration, on desktop), which also keeps a
fill from landing in the prerendered textarea. deck-creation additionally
checks that the home screen shows no New Deck button.

Specs: background-reopen, compose-async, compose-card, continue-session,
deck-creation, deck-reload, model-picker.

Checks (on the branch tip with the next two commits): npm run test:e2e
30 passed in 1.8 min (1:50 wall; the last green CI e2e on main took
2.6 min for 28); npx tsc --noEmit OK; npx eslint e2e/ --quiet OK.

* 🧪 test(e2e): wait for the open deck's name in its bar in mcp-deck-open

The spec waited for a chat tab button named after the deck; #657 removed
the deck chat tabs (one conversation per screen), so it timed out on both
engines. It now waits for the deck bar's heading with the loaded deck's
name (a name without a folder timestamp shows unchanged through
deckDisplay), after which the deck's sheet is the only chat input.

Checks (on the branch tip): npm run test:e2e 30 passed in 1.8 min;
mcp-deck-open v3 1.6 s, v2 1.7 s.

* 🧪 test(e2e): test one conversation per screen in multi-chat

multi-chat started its chats with New Deck (gone from the home screen
since #657). Its chats now start from the home composer, and a new
"one conversation per screen" group checks the behaviour #657 agreed on
(V3 only; the layout does not depend on the engine):
- the home screen is the stage (composer and title, no New Deck, no New
  chat); a message makes the conversation take the screen, with New chat
  and the deck list below
- the home conversation stays across opening a deck and going back
  through the rail's Decks item; only New chat clears it
- a deck's sheet shows only that deck's conversation, with no tabs and no
  New chat; closed, it opens again from Chat in the deck's bar
- a deck the home conversation makes keeps the same conversation element
  (marked before the deck opens, still streaming), and the home screen is
  blank again
The two several-chats tests (one stub process per chat, Stop while
kiro-cli starts) stay as they were.

Checks (on this commit, the branch tip): npm run test:e2e 30 passed in
1.8 min (1:50 wall), no timeouts; npm test 131 files / 1516 tests passed
(vitest covers src/ only, unchanged since the UI fix); npm run build:cloud
OK; npx tsc --noEmit OK; npx eslint src/ --quiet OK; en/ja key parity OK
(638 keys).

* 🐛 fix(web-ui): the logo goes back to the deck list in place, keeping the home conversation

SPEC: 20261119-0940_e2e-new-layout
Progress: the logo and the rail's Decks item share one handler (back on a deck, scroll to the list on the centred home); multi-chat checks the logo path does not reload
Next: CI on #660
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog:skip ブログ対象外

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant