Skip to content

Web UI: a professional pass over the whole interface - #638

Merged
FMXExpress merged 1 commit into
mainfrom
claude/pasclaw-desktop-plan-uapzcp
Nov 13, 2026
Merged

FMXExpress merged 1 commit into
mainfrom
claude/pasclaw-desktop-plan-uapzcp

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

What this is

A visual redesign of the web UI (src/pkg/gateway/webui.html), on every tab. The neon look is replaced by a restrained one: no glowing borders, gradient panels or grid backdrop, no monospace-everywhere, no uppercase letter-spaced labels, no emoji for icons.

No features are added or removed. desktop.html is not touched.

The design system

The stylesheet is rewritten around a small set of tokens.

  • Tokens. One neutral surface scale, one accent, three status colours, shared radii and one popover shadow. Sans for the interface; mono for code, paths, config keys and tool output.
  • Base control styles. Buttons, inputs and selects get their look from element-level rules in :where(), so every control starts consistent, including ones the script creates without a class. That is what restyles the Workflow editor, which had no styles of its own.
  • A real light theme. html.lite now swaps the tokens. Before, light mode was a CSS invert filter over the whole page.
  • Theme follows the OS. The page uses the operating system's setting until the theme button is used, then remembers the choice.
  • Icons. One icon set (one grid, one stroke weight) replaces emoji and symbol glyphs. Markup and script both use it through one SVG sprite.

Layout changes

  • App bar. A slim bar with the wordmark, tabs with an underline for the current one, a status chip with a state dot (online / offline / locked), and the theme and token buttons.
  • Chat.
    • The transcript is a readable column. The user's message is a bubble, replies are prose, and an error is a labelled block.
    • One composer box holds the input and its bar.
    • Per-message actions (copy, edit, regenerate, retry) sit in the gap under the message, so showing them moves nothing. They used to reserve a strip inside every bubble.
  • Other tabs. Tables and stat cards sit on surfaces. Settings is a measured form, with nested sections as sub-headings. Dialogs and menus share one style.
  • Narrow screens.
    • The tab strip scrolls sideways and keeps the current tab in view.
    • The chat list opens over the transcript and closes when a chat is picked. It starts closed on a phone.
    • Toolbar labels drop to icons.
    • The workflow editor stacks vertically.

Small fixes found on the way

  • Session rows wrapped their hover actions under the title, so every row was two lines tall.
  • Relay field hints were rendered in capitals (they inherited the label's text-transform).
  • File sizes read 16384b; they now read 16.0 KB.
  • Helper text in the workflow editor was dimmed with opacity, below readable contrast.

Behaviour changes to know about

  • With no saved theme choice, someone whose OS is set to light now gets the light theme. Before, the default was always dark.
  • Button labels changed: "Params" is "Parameters", "details" is "Tool details", and the mode button reads "Build" / "Plan" / "Improve" / "Space" with a coloured dot.
  • The status chip reads provider/model · 51 tools · 2 MCP.

Verification

All in Chromium, against a gateway seeded with content on every tab (sessions, memory, skills, MCP, cron, stats) and a scripted model.

  • Contrast. A script walked every piece of rendered text on every tab and state, in both themes: about 4,000 text runs, none below 4.5:1 (3:1 for large text). The token pairs were also checked numerically before the stylesheet was written.
  • Interaction. 37 checks pass, on the working copy and again on the rebuilt binary:
    • theme: follows the OS, follows a live OS change, toggles, persists across reload;
    • all 14 tabs switch, with the URL hash following;
    • the mode button cycles and the mode reaches the chat request body;
    • tool-details, parameters and context toggles, files menu, slash menu;
    • hover actions leave the transcript layout unchanged, and copy works;
    • a real turn sends and renders; a failed turn shows the error block with retry;
    • workflow: add, select and delete a node;
    • settings: the raw JSON editor;
    • phone (390px): chat list overlay, tab strip scroll, Send button on screen, and no sideways page scroll on any tab.
  • Context chart. Its palette was re-validated on the new dark and light surfaces.
  • Screens. Every tab was reviewed by screenshot in dark, light and at phone width.
  • Tests. Full make test passes on FPC 3.2.2.

Not tested: Firefox and Safari (only Chromium is available here), and the Delphi build (dcc64 is not available; the change is HTML/CSS/JS plus the regenerated webui.res).


Generated by Claude Code

The neon look -- glowing borders, gradient panels, a grid backdrop,
monospace everywhere, uppercase letter-spaced labels, emoji for icons --
is replaced by a restrained one, on every tab. No feature changes.

Design system (the stylesheet is rewritten around it):
- Tokens: one neutral surface scale, one accent, three status colours,
  shared radii and one popover shadow. Sans for the interface; mono for
  code, paths, config keys and tool output.
- Base control styles sit in :where(), so every button, input and select
  starts consistent -- including ones the script creates without a class.
  That is what restyles the Workflow editor, which had no styles at all.
- A real light theme: html.lite swaps the tokens. It was a CSS invert
  filter over the whole page. The page follows the OS setting until the
  theme button is used, then remembers the choice.
- An icon set (one grid, one stroke weight) in place of emoji and symbol
  glyphs, used from markup and script through one sprite.

Layout:
- A slim app bar: wordmark, tabs with an underline for the current one,
  a status chip with a state dot (online / offline / locked), actions.
- Chat: a readable column; the user's message is a bubble, replies are
  prose, an error is a labelled block. One composer box holds the input
  and its bar. Per-message actions sit in the gap under the message, so
  showing them moves nothing (they used to reserve a strip inside every
  bubble).
- Tables and stat cards on surfaces; settings as a measured form with
  nested sections as sub-headings; dialogs and menus share one style.
- Narrow screens: the tab strip scrolls sideways and keeps the current
  tab in view; the chat list opens over the transcript and closes when a
  chat is picked; toolbar labels drop to icons; the workflow editor
  stacks.

Small fixes found on the way: session rows wrapped their hover actions
under the title (every row was two lines tall); relay field hints were
rendered in capitals; file sizes read "16384b"; helper text in the
workflow editor was dimmed with opacity below readable contrast.

Verified in Chromium against a gateway with content on every tab:
- contrast of all rendered text, every tab and state, both themes:
  about 4,000 text runs, none below 4.5:1 (3:1 for large text);
- 37 interaction checks: theme (OS-follow, toggle, persistence), all 14
  tabs, mode cycle reaching the request body, toggles and panels, hover
  actions leaving layout unchanged, copy, a real turn and a failed one
  with retry, workflow add/select/delete, settings raw editor, and the
  phone layout (no sideways page scroll on any tab);
- the context chart's palette re-validated on the new surfaces.
Full make test passes on FPC 3.2.2.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T14:30:42.836358Z d5329da PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@FMXExpress
FMXExpress merged commit db4e8e0 into main Nov 13, 2026
FMXExpress pushed a commit that referenced this pull request Nov 13, 2026
The README had no screenshots, and the two web UI ones in docs/screenshots
still showed the neon design #638 replaced.

- A Screenshots section in the README, between Quick start and Features:
  the chat tab, then the light theme, the context breakdown, the workflow
  editor and phone width.
- docs/screenshots regenerated with capture.py on the current build, plus
  five new shots: web-ui-chat-light, web-ui-context, web-ui-workflow,
  web-ui-settings, web-ui-phone. web-ui-chat, web-ui-memory and
  web-desktop are the same pages in the new design.
- capture.py names each shot's colour scheme. The UI now follows the OS
  theme until one is picked, and Playwright's default scheme is light, so
  without it the "dark" shots came out light. It also seeds a two-node
  workflow so the editor shows a graph, can open the context panel, and
  takes a viewport and device scale per shot (the phone shot is 390 px at
  2x).
- docs/screenshots/README.md describes the new shots, the status chip's
  current text, and what regenerates byte-identical: run twice from a
  fresh home at the same path, six of the eight do. web-desktop has a
  clock; web-ui-chat-light differs by one colour level in a few pixels of
  the header. web-ui-context also depends on the fixture home's path,
  which is in the system prompt it measures.

All eight captured with no page errors (shoot exits non-zero on any).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KYD1zZPD7GuM8pF1btwi2U
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.

2 participants