Repository navigation
improve(ui): simplify the session hovercard - #189630
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR compacts session hovercards by simplifying attribution, location, task progress, and pull request rows while removing secondary details and actions. Example: Hover the session “Model pickers above the composer” with three pull requests.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep open: this maintainer-authored simplification has clear visual value, but the fade fallback needs correction and unrelated Details navigation coverage should be retained. Priority: P3 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe Control UI hovercard consumes sidebar session facts and Gateway-owned progress and pull request snapshots, then renders a portaled preview with navigation links. flowchart LR
A[Gateway snapshots] --> B[Session stores]
C[Sidebar session facts] --> D[Hovercard runtime]
B --> D
D --> E[Solid hovercard]
E --> F[Portaled preview and links]
Technical reviewBest possible solution: Keep the compact renderer, enable fade animations only when scroll timelines are supported, and preserve the independent Details navigation scenarios. Do we have a high-confidence way to reproduce the issue? Source and the CSS contract establish the unsupported-timeline fallback; it was not executed during this read-only review. Is this the best way to solve the issue? The existing hovercard, snapshot stores, and Markdown renderer support the simplification without new state owners; a CSS feature query is the smallest correction. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cdee3a194f96. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -765, Tests -850. Total -1615 across 22 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 2:18 PM ET / 18:18 UTC. |
|
The fade animation declarations are now gated by matching scroll-timeline feature queries for both axes. Unsupported engines retain clipping without running a permanent mask over fitting text. An older Firefox runtime was not executed locally; that qualification remains explicit. The three Details automation-navigation scenarios are preserved, including the selected job ID, desktop/mobile entry points, and mobile-host dismissal. All three pass. Only the removed hovercard inspector's scenarios and unused helpers were deleted. The stale hovercard-bar promise is also removed from the tool description and corrected in the docs. The obsolete fixed-gap-only test was dropped; no new test cases were added. Focused UI checks (36), tool/prefix checks (23), scoped static checks, and independent full-candidate review pass. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
#189630 renders the session folder and branch as one context row; the catalog e2e still expected two, leaving main red. Co-authored-by: ceckert <[email protected]>
* improve(ui): simplify the session hovercard * fix(ui): preserve hovercard fallbacks and Details coverage
What Problem This Solves
The session hovercard carries too much: machine specs, a color dot, surface and automation rows, a Create PR action, a progress bar, and multi-line pull request rows that push the card to its scroll limit.
User Impact
User impact: hovering a session shows who started it, how long ago, where it runs, what it is doing now and its pull requests, in a single 320 px card. Ten pull requests fit without scrolling.
Why This Change Was Made
project / branchshares one row, with branch changes on the right when no pull request exists. Provider and profile take a second row only when the session has a placement.#number, "N failing" or a spinner while checks run. Up to ten rows, then "N more". The full link, the accessible name with state and checks, and the GitHub rate-limit and unavailable notices stay.Failure text keeps its place above the task block, and "In this session" keeps its structure with the new spacing.
Evidence
Captured with real pointer hover on sidebar rows in the Control UI mock (
session-designfixture). Before is1198e82710f.How the states were produced: the session, progress card and pull request data for every state was added temporarily to the mock fixture and answered through the normal gateway requests, and the fixture's pull request subscribe handler was patched temporarily to answer passive session keys. The sidebar filters were changed by clicking them. Themes were applied by loading the theme stylesheet and setting the document theme attributes. None of this is part of the PR. Nothing was inserted into or hidden in the page.
Local checks:
tsgo:ui, stylelint, oxfmt, oxlint on changed files andui:i18n:verifypass.ui:check-performance:basepasses: total CSS raw -5250 B, gzip -645 B. 8 focused unit and browser test files pass. The e2e files for session hovercards, cloud placement, identity links, channel hovercards, sidebar pull requests and adversarial progress markdown pass.Test changes: tests that asserted the color dot, machine facts, automation link, Create PR, per-row diff and checks text, progress bar promotion and two-line clamps now assert the new content. The hovercard automation-inspector tests are removed with that panel; the three independent Details automation-navigation cases and their required fixture are preserved. The obsolete test freezing 8px and 16px gaps is removed. The Create PR assertion was removed from
task-pull-requests.real-gateway.e2e, which was not run locally.Landing validation
Measured card size in the mock: 320 px wide in every state; 368 px for the full state and 563 px for twelve pull requests, with no scrolling. In reduced motion the fades stay on.
Task progress with pull requests, Absolutely dark
Task progress with pull requests, Absolutely light
Last message with a failing pull request, Absolutely dark
Last message with a failing pull request, Absolutely light
Current step with changes, Absolutely dark
Current step with changes, Absolutely light
Twelve pull requests, Absolutely dark
Twelve pull requests, Absolutely light
Channel-linked session, Absolutely dark
Channel-linked session, Absolutely light
Run failure, Absolutely dark
Run failure, Absolutely light
GitHub rate limit, Absolutely dark
GitHub rate limit, Absolutely light
Other themes, After
Known gaps: