Skip to content

improve(ui): simplify the session hovercard - #189630

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/session-hovercard-compact
Oct 31, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/session-hovercard-compact

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

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

  • Removed from this card: session color dot, "Opens as dashboard", the automation row and panel, Create PR, machine specs and the progress bar. Automations stay available on the Automations page.
  • Header: title and age are unchanged. Creator and participants become a plain line; the participant menu and person links still work.
  • Location: project / branch shares 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.
  • Task block: a subtle surface titled "Task progress" holds up to three lines of commentary and the current step with its count. Without a progress card, the last message sits in the same block with no title.
  • Pull requests: one line each, with a state-colored icon, the title and then #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.
  • Overflow: long single lines and commentary fade only when they really overflow, using a scroll-driven CSS animation, so no measuring code runs per row.

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-design fixture). Before is 1198e82710f.

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 and ui:i18n:verify pass. ui:check-performance:base passes: 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

  • Restored Details automation navigation: all three existing cases pass (desktop, mobile single job, and mobile job list).
  • Focused hovercard unit/browser checks: 36 cases pass. Progress-card tool and tool-prefix stability checks: 23 cases pass.
  • Both fade animation groups now require scroll-timeline support. Unsupported engines retain clipping without accidentally running a permanent mask over fitting text.
  • The obsolete promise that the hovercard promotes a progress bar was removed from the tool description, and the progress-card documentation now describes the compact summary.
  • Scoped lint, stylelint, format and diff checks pass. Independent review of the full candidate found no P0-P2 findings.
  • No new test cases or production test hooks were introduced. The existing published media was inspected; no new captures were made.

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

Before After

Task progress with pull requests, Absolutely light

Before After

Last message with a failing pull request, Absolutely dark

Before After

Last message with a failing pull request, Absolutely light

Before After

Current step with changes, Absolutely dark

Before After

Current step with changes, Absolutely light

Before After

Twelve pull requests, Absolutely dark

Before After

Twelve pull requests, Absolutely light

Before After

Channel-linked session, Absolutely dark

Before After

Channel-linked session, Absolutely light

Before After

Run failure, Absolutely dark

Before After

Run failure, Absolutely light

Before After

GitHub rate limit, Absolutely dark

Before After

GitHub rate limit, Absolutely light

Before After

Other themes, After

CRT Beacon

Known gaps:

  • Browsers without scroll-driven animations retain clipping without the fade. An older Firefox runtime was not exercised locally; the fallback was reviewed at the CSS feature boundary.
  • The viewport-bounded max height on short windows was set in CSS but not captured.
  • The session color dot, dashboard row and automation row do not appear in the Before images, because the fixture sessions used here do not set them.
  • Keyboard focus on a link clipped inside the commentary scrolls the block to that link; not captured.
  • Hovercard row data still carries color, dashboard and automation fields, because other sidebar code builds the same row. The card no longer reads or re-renders on them.
  • Not run: full suites and real devices.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: The card shows separate project and branch rows, machine specifications, and multiline pull request details.
  • After: A 320 px card combines project and branch, places commentary above the current step, and shows single-line pull requests.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The supplied visual proof supports the design, but the browser fallback defect needs correction before merge.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected dark and light before/after screenshots show the changed Solid hovercard through real sidebar pointer hover in the Control UI with synthetic Gateway responses, including attribution, location, commentary, current progress, and pull request rows.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Dense hovercards make current work and associated pull requests harder to scan.
Reason: The maintainer-authored direction explicitly trades secondary hovercard details for a compact preview, and inspected browser images show the benefit.

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
Reviewed head: d89a811f3d08bd6002754ae74b0c4f96ea613d76

Before merge

  • Gate the fade animations on scroll-timeline support (P2) - In browsers without scroll-timeline support, including Firefox versions before 159 within the documented browser support window, animation-timeline is ignored while the named one-second animation still runs. Both keyframes apply the same mask and fill-mode: both retains it, so fitting text is faded too: a short creator name such as “Avery” loses its trailing characters, and a one-line commentary preview fades at its bottom. Apply the animation declarations only inside a matching @supports condition for both inline and block rules, leaving unsupported browsers unmasked.
  • Retain the independent Details automation navigation scenarios (P3) - Deleting this entire file also removes the desktop, mobile single-job, and mobile job-list cases beginning here. Those cases open session Details and verify navigation to the selected automation, including an ID containing spaces and a plus sign; they never enter the removed hovercard inspector. The Details navigation remains implemented, so this deletion drops distinct coverage of retained behavior. Keep or move those cases and their required fixture while deleting the inspector-specific scenarios.
  • Explain or restore the original intent of Details automation navigation tests - feat(ui): add responsive session headers and detail panels #176653: Selecting an automation from mobile Details must open the Automations page with that job selected.

Findings

  • [P2] Gate the fade animations on scroll-timeline support — ui/src/components/session-hovercard.css:44-48
  • [P3] Retain the independent Details automation navigation scenarios — ui/src/e2e/session-automation-inspection.e2e.test.ts:104-108

Provenance

Tests

  • Missing end-to-end proof: The supplied browser evidence does not exercise fitting text with scroll timelines unavailable, and no red/green regression for that fallback is shown.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P2] Gate the fade animations on scroll-timeline support — ui/src/components/session-hovercard.css:44-48
    In browsers without scroll-timeline support, including Firefox versions before 159 within the documented browser support window, animation-timeline is ignored while the named one-second animation still runs. Both keyframes apply the same mask and fill-mode: both retains it, so fitting text is faded too: a short creator name such as “Avery” loses its trailing characters, and a one-line commentary preview fades at its bottom. Apply the animation declarations only inside a matching @supports condition for both inline and block rules, leaving unsupported browsers unmasked.
    Confidence: 0.97
  • [P3] Retain the independent Details automation navigation scenarios — ui/src/e2e/session-automation-inspection.e2e.test.ts:104-108
    Deleting this entire file also removes the desktop, mobile single-job, and mobile job-list cases beginning here. Those cases open session Details and verify navigation to the selected automation, including an ID containing spaces and a plus sign; they never enter the removed hovercard inspector. The Details navigation remains implemented, so this deletion drops distinct coverage of retained behavior. Keep or move those cases and their required fixture while deleting the inspector-specific scenarios.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against cdee3a194f96.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/e2e/session-progress-hovercard.e2e.test.ts --maxWorkers=1
  • pnpm test ui/src/e2e/session-automation-inspection.e2e.test.ts --maxWorkers=1
  • pnpm lint:ui:styles
  • Verify through sidebar hover that a fitting creator name and one-line commentary remain unmasked without scroll-timeline support, while supported browsers fade only overflowing content.

What I checked:

PR surface

Source -765, Tests -850. Total -1615 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 307 1072 -765
Tests 12 125 975 -850
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 432 2047 -1615

Review metrics

Metric Value Why it matters
Production versus test changes Production +307/-1072; tests +125/-975 The reduction principally removes the automation inspector and obsolete presentation; the Details navigation cases are independent coverage that should survive.

Labels

Label changes:

  • add P3: This is a visual simplification with a limited browser rendering defect and a focused test-retention repair.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a visual simplification with a limited browser rendering defect and a focused test-retention repair.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 2:18 PM ET / 18:18 UTC.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling labels Oct 31, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

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

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 8088fcd into main Oct 31, 2026
132 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/session-hovercard-compact branch October 31, 2026 20:58
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
* improve(ui): simplify the session hovercard

* fix(ui): preserve hovercard fallbacks and Details coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant