Skip to content

ui: move Sessions and Automations row actions onto IconButton - #194141

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/icon-button-tables
Nov 6, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/icon-button-tables

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Unifies Sessions and Automations row actions on the shared IconButton: 28px boxes, 15px row glyphs, consistent hover and open-menu states, and existing larger phone targets. Session menu tooltips remain localized, and row focus and selection behavior stay intact.

Validation: three affected UI tests, both desktop and phone virtualization/focus cases, UI typecheck, scoped lint, CSS lint, and formatting pass. Existing selector and tooltip assertions were updated with zero test-line growth. The test-line ratchet passes against the integrated base. Existing visual proof was inspected; hosted CI and asset budgets remain pending.

Evidence

Scenario Before After
Automations row run ▷ · hover · 1280 light 01-automations-rows-before 02-automations-rows-after
Sessions row ⋯ menu · hover · 1280 light 03-sessions-rows-before 04-sessions-rows-after
State Screenshot
Automations row run ▷ · hover · 1280 dark 05-automations-dark
Sessions row ⋯ menu · hover · 1280 CRT light 06-sessions-crt
Automations row run ▷ · hover · 390 light 07-automations-390

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 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 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. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR moves Sessions and Automations row actions onto the shared IconButton styling.

Example: Hover the Run now action for the “Triage support inbox” automation.

  • Before: The action uses a 26px box and 12px glyph beside a differently sized menu button.
  • After: Both actions use 28px boxes, 15px glyphs, and the shared hover treatment.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The visual result is demonstrated, but the consumer migration and assertion contract need repair before merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Control UI screenshots directly demonstrate the changed Automations glyph sizing and Sessions hover treatment; the linked phone and alternate-theme images could not be inspected because they were absent locally and scratch downloads were rejected.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Adjacent row actions have inconsistent glyph sizes, button dimensions, and hover treatments.
Reason: The maintainer-authored direction consolidates presentation under an existing owner without changing action semantics or adding configuration.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this maintainer-authored PR provides a useful visual consolidation and depends on an open prerequisite.

Priority: P3
Reviewed head: 80f0a2a58fea5d640ac0c3bbfe82a7d54f50b08a

Before merge

  • Preserve the Sessions menu selector and update tooltip assertions (P2) - Removing .icon-btn leaves existing consumers unable to find the menu button. sessions-page.test.ts:184 then dereferences menu.title, and view.invalidation.browser.test.tsx:181 calls focus() on null at both phone and desktop widths; exact-head CI confirms these failures. Preserve the existing selector while applying shared styling, and update the locale assertion to inspect the shared tooltip content because this button no longer sets a native title.
  • Retain the typed button event instead of adding an unchecked cast (P3) - Annotating the handler as plain MouseEvent discards the button-specific currentTarget type and introduces a new non-const assertion without the required SAFETY justification. The assertion-safety ratchet governs this production path. Let the IconButton callback context infer the event type, or use the existing typed event-handler contract, so the button remains typed without this assertion.

Findings

  • [P2] Preserve the Sessions menu selector and update tooltip assertions — ui/src/pages/sessions/session-row.tsx:414-416
  • [P3] Retain the typed button event instead of adding an unchecked cast — ui/src/pages/sessions/session-row.tsx:426-428
Agent review details

How this fits together

Control UI row components receive session and automation data, render accessible action buttons, and forward activation to existing session and automation owners.

flowchart LR
  A[Gateway data] --> B[Sessions rows]
  A --> C[Automations rows]
  B --> D[Shared IconButton styling]
  C --> D
  D --> E[Existing action handlers]
Loading

Technical review

Best possible solution:

Use the shared button owner while preserving existing selector contracts, updating tooltip assertions, and retaining typed button events.

Do we have a high-confidence way to reproduce the issue?

Base styles establish the inconsistent action dimensions, supplied screenshots show the visual difference, and exact-head CI confirms the broken selector consumers.

Is this the best way to solve the issue?

Reusing IconButton is a focused solution that removes duplicate styling and preserves the existing mask renderer, but its selector and event-type cutover needs completion.

Full review comments:

  • [P2] Preserve the Sessions menu selector and update tooltip assertions — ui/src/pages/sessions/session-row.tsx:414-416
    Removing .icon-btn leaves existing consumers unable to find the menu button. sessions-page.test.ts:184 then dereferences menu.title, and view.invalidation.browser.test.tsx:181 calls focus() on null at both phone and desktop widths; exact-head CI confirms these failures. Preserve the existing selector while applying shared styling, and update the locale assertion to inspect the shared tooltip content because this button no longer sets a native title.
    Confidence: 1
  • [P3] Retain the typed button event instead of adding an unchecked cast — ui/src/pages/sessions/session-row.tsx:426-428
    Annotating the handler as plain MouseEvent discards the button-specific currentTarget type and introduces a new non-const assertion without the required SAFETY justification. The assertion-safety ratchet governs this production path. Let the IconButton callback context infer the event type, or use the existing typed event-handler contract, so the button remains typed without this assertion.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/sessions/sessions-page.test.ts src/pages/sessions/view.invalidation.browser.test.tsx
  • pnpm tsgo:ui
  • pnpm check:assertion-safety
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 740334c adds ui/src/styles/cron.css:1208 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 740334cfae6b; files: ui/src/styles/cron.css)

PR surface

Source -56. Total -56 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 58 114 -56
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 58 114 -56

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is visual consistency work with narrow validation repairs and no demonstrated production workflow failure.
  • 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 🦞 diamond lobster 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 visual consistency work with narrow validation repairs and no demonstrated production workflow failure.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster 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 November 6, 2026, 8:27 AM ET / 13:27 UTC.

Base automatically changed from brzezowski/icon-button-component to main November 6, 2026 18:26
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/icon-button-tables branch from 80f0a2a to ea740f4 Compare November 6, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski merged commit a5750a4 into main Nov 6, 2026
74 of 78 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/icon-button-tables branch November 6, 2026 18:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…aw#194141)

Reuse IconButton for existing table and list actions while preserving menu placement, localized labels, keyboard focus and mobile targets.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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: S 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