Skip to content

feat: UX review fixes for admin, history and agent panel - #886

Merged
EVWorth merged 22 commits into
mainfrom
claude/hopeful-bardeen-1k4d1h
Oct 24, 2026
Merged

EVWorth merged 22 commits into
mainfrom
claude/hopeful-bardeen-1k4d1h

Conversation

@EVWorth

@EVWorth EVWorth commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Two areas from the October UX review (#783), with one commit per issue. Both were written by implementer-frontend subagents working in separate worktrees, then merged and checked together here.

Admin, backup, restore, import, history

Agent panel

Closes #815. Closes #819. Closes #824. Closes #826. Closes #828. Closes #833. Closes #836. Closes #797. Closes #805. Closes #808. Closes #812. Closes #816. Closes #820. Closes #822. Closes #830. Part of #801.

#868 (Cancel doesn't stop the agent's SQL) and the rest of #801 need backend changes; those come in a separate PR.

Test plan

  • npm run test:unit: 164 files and 3,297 tests passed on the merged branch.
  • npm run type-check and npx dprint check --list-different are clean. eslint shows 0 errors and no new warnings.
  • Each new test was checked by reverse-applying its fix and watching it fail.
  • Browser tests run one file at a time by the agents: ProcessListTab 1/1, ImportDialog 36/36, AgentPanel 3/3, AppLayout 50/50.
  • Not yet checked by eye in the ?mock preview: the floating kill confirm, the backup and restore fieldsets, the history rows, and the agent panel's sharing strip and resize handle.

Generated by Claude Code

claude added 22 commits October 24, 2026 13:36
Only the first load shows the full-pane spinner; a reload after a SET
refreshes in the background so the scroll position survives, and the
changed row is highlighted briefly.

Closes #819.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
A plan event replaced the first plan anywhere in the transcript, so the
second turn's plan rewrote the first turn's box out of view. Only a plan
after the latest user message is replaced now.

Closes #816.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Show "N of M variables" while filtering and a "No variables match" row
when the filter hides everything. Sort headers and group rows are now
real buttons (with aria-sort and aria-expanded) so they are reachable
from the keyboard.

Closes #824.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The store kept one `starting` flag, so every Start button read
"Starting…" at once. It now records which harness is starting; only
that button says so and the rest are disabled.

Closes #805.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Time is coloured only for running statements (Query, Execute, Killed);
idle Sleep, Daemon and replication threads stay muted, and durations are
formatted ("5m 40s", "14d 0h") by a new shared formatter. "Kill query"
is offered only when the session has a statement. The confirm floats
beside the skull instead of widening the column, takes focus when it
opens and closes on Escape, handing focus back.

Closes #833.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
A tool row showed its statement as one truncated line with no way to
read the rest. It now has a tooltip and expands to the full detail.
Agent text goes through a small markdown renderer for lists, headings,
inline code, bold and fenced code, built as React nodes (no HTML).

The transcript blocks move to AgentTranscript.tsx to keep the panel
under the component size limit.

Closes #820.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Clearing history emptied the list but left the "0 of 37" count and the
connection/database filter chips from before. Reset both on clear (and
put them back if the clear fails), and drop any read still in flight.

Closes #828.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
A `failed` event became a grey note, styled like "Stopped.", and the
session stayed open so every later message failed the same way. It is
now an error block (role="alert", error colour, inline code rendered),
the store marks the session failed and refuses to send, and the
composer offers "Start a new session" in place of Send.

The composer moves to AgentComposer.tsx.

Closes #808.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Each entry was one button with Delete and the error toggle as
span role="button" inside it, so neither had a tab stop. The row is now
a list item holding sibling buttons: load (covering the SQL and its
details), delete, and expand-error. The row moves to its own component.

Closes #826.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
End killed the session at once and the transcript vanished. Ending
while a turn runs now asks first, and the old transcript stays on
screen under a "Session ended" divider (unanswered permission prompts
read as dismissed) until a new session starts. The start screen moves
to AgentStart.tsx.

Part of #830.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
During an SQL import the footer now offers "Cancel import", which calls
the job-cancel command the restore dialog uses (cancel_backup) with the
run's id. The progress panel then says the import was cancelled, how
many statements had run, and whether what they changed stands.

Closes #815.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Tools > Agents listed "Claude Code" while the panel said "Start Claude
Agent". The setup list now uses the backend's harness label (loaded by
the panel), with fallbacks that match it. Also moves the comment about
production schema changes down to the checkbox it describes.

Completes the checklist with the end-session commit before it.

Closes #830.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The panel header named only the harness. A strip under it now lists
each shared connection with its environment and posture badges (the
badges move out of AgentSettingsDialog into AgentBadges.tsx so both
use the same ones), plus a "Manage…" link that opens the Agents
settings.

Closes #797.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The search box now waits 200 ms after typing stops before asking the
store, instead of two IPC reads per keystroke. Durations use the shared
formatter ("3m 4s", "51.2s"). The From/To date filter is bounded by
local midnight and local end of day rather than UTC, so a picked day
means the user's day.

Part of #836.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The panel sits after Monaco in the tab order and Monaco keeps Tab, so a
keyboard user could not reach it, and starting a session or answering
an approval left focus on <body>. Focus now moves to the first Start
button or the message box when the panel opens or the session changes,
and back to the message box after an approval or proposal dialog
closes (when nothing else took focus) and after answering a permission.

Closes #812.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
An empty Database showed italic "NULL", an empty Info "—" and an empty
State nothing. All three now show the same muted "—". The auto-refresh
select gets an accessible name.

Part of #836.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The Connection, Database, file and batch-size fields now have labels
bound to them, and the checkbox and radio groups (Tables, Content,
Options, Insert Format) are fieldsets with legends.

Part of #836.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The panel was a fixed 380px, which in a 1024px window left the editor
about 510px and clipped the query toolbar. It now has a divider styled
like the sidebar's that drags or takes the arrow keys, stays between
300px and half the window, opens at 380px only when the window has room
(30% of it otherwise), and remembers the width.

Closes #822.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The "will drop or overwrite data" list showed each statement with the
dump's comment banner in front, so the DROP was cut off the end of the
line. Leading comments are now stripped for display (conditional
comments, which execute, are kept).

Part of #836.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The approval dialog showed the row count as plain secondary text below
1,000 rows and did not say who asked. The count is now always a bold
sentence with the statement's verb ("Deletes 132 rows."), still
coloured at 1,000 or more.

The dialog also shows "Asked by ..." when the request names its
requester: the panel's harness for an in-app session, or the client's
name for an external one. The backend does not send that yet; the
request is read defensively for `session` and `client` fields, and the
mock sends them so the line can be seen with ?mock.

Part of #801.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
@EVWorth
EVWorth merged commit ae6fd13 into main Oct 24, 2026
12 checks passed
@EVWorth
EVWorth deleted the claude/hopeful-bardeen-1k4d1h branch October 24, 2026 18:01
@github-actions github-actions Bot mentioned this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment