Skip to content

improve(ui): simplify Sessions visual hierarchy - #127793

Merged
clawsweeper merged 6 commits into
mainfrom
openclaw/dashboard-sessions-bulk-messaging-support
Aug 23, 2026
Merged

clawsweeper merged 6 commits into
mainfrom
openclaw/dashboard-sessions-bulk-messaging-support

Conversation

@clawsweeper

@clawsweeper clawsweeper commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Sessions page gave overview metrics, explanatory copy, and advanced filters similar visual weight, making a scan-heavy roster feel heavier than the neighboring Automations page. Its visual fixture also omitted the current sessions.search method, so screenshots incorrectly showed an old-Gateway compatibility warning.

Why This Change Was Made

This is a presentation-only reduction grounded in the current Automations visual language:

  • replaces the overview tiles with compact Sessions, Live, and Unread heading facts;
  • removes redundant subtitles and the aggregate Tokens fact while retaining per-row and detail token data;
  • tightens section, table-row, and expanded-detail spacing;
  • keeps roster search and Active/Archived/All visible;
  • moves recency, limit, source, and grouping controls into an icon-only Filters popover;
  • matches Automations’ 32px accessible filter trigger and mobile right alignment.

The current visual and E2E mocks now advertise sessions.search and return an empty result by default. The existing old-Gateway test explicitly omits that method and continues to verify the disabled search explanation.

No Gateway method, protocol type, persistence, permission, session action, request owner, or runtime workflow changes.

User Impact

Operators get a calmer, denser Sessions page without losing capability. Transcript search, roster filtering, status scope, grouping, category creation, selection, archive/delete actions, pagination, inline overrides, metadata, and compaction history remain available through the same owners.

Production LOC: +276/-245 (net +31). Tests, test support, and tooling: +72/-77 (net -5). The production growth is the accessible progressive-disclosure popover and its responsive styling; it replaces the permanently exposed advanced-filter surface.

Evidence

  • Inspected current-Gateway desktop/mobile screenshots and Automations comparison
  • Exact-head CI run — green, including openclaw/ci-gate
  • Sessions render tests — 52/52 passed
  • Responsive Chromium layout tests — 5/5 passed at 375, 430, 768, and 1440px
  • Session filter and group-management mocked-Gateway E2Es — 15/15 passed
  • Transcript-search E2Es — 6/6 passed, including explicit old-Gateway coverage
  • Scoped check:changed, localization verification, production build, and performance budgets — passed
  • Mandatory uncommitted and full-branch autoreview — no actionable findings
  • Direct dependency contract check: @awesome.me/[email protected] source confirms the for anchor, placement, without-arrow, reflected open state, and cancellable wa-show/wa-hide events used by the popover

@clawsweeper

clawsweeper Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 22, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

Visual evidence

All captures were inspected after the final rebased Playwright run.

Before: stacked overview, transcript, and filter surfaces

Current Sessions page before this change

After: quiet roster and progressive filters

Sessions roster after this change

Advanced filters opened on demand

Bulk messaging: selection and frozen audience review

Selected Sessions toolbar

Bulk message review

Durable outcomes: partial failure and failed-only retry

Operation with one accepted recipient and one failure

Original operation reconciled after failed-only retry

Final local proof

  • Full changed-surface checks: green
  • Production build: green
  • Focused protocol/Gateway/UI tests: 192 passed
  • i18n tooling tests: 20 passed
  • Playwright operator journey: passed after rebase
  • Branch autoreview: clean

@clawsweeper
clawsweeper marked this pull request as ready for review August 22, 2026 06:12
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Aug 22, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 22, 2026
@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 22, 2026, 11:38 PM ET / August 23, 2026, 03:38 UTC.

ClawSweeper review

What this changes

The PR replaces Sessions overview tiles with compact heading facts, moves advanced roster filters into an accessible popover, and updates current-Gateway test mocks for transcript search.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer visual-direction review. The branch preserves the Sessions data and action owners while adopting the existing Automations popover pattern; no patch-level correctness defect was found.

Priority: P3
Reviewed head: bc4d730191219460fc3607db41d836929b9dc97a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The visual evidence and focused coverage are strong; direct upstream popover-source inspection remains unavailable in this checkout.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: Not applicable to this member-authored PR; the body nevertheless supplies inspected after-change Sessions screenshots and reports focused browser coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this member-authored PR; the body nevertheless supplies inspected after-change Sessions screenshots and reports focused browser coverage.
Evidence reviewed 6 items Current-main baseline: Current main renders the overview as a separate section and keeps advanced controls inline, establishing that this is a presentation refactor rather than an already-landed change.
Established sibling pattern: Automations already uses the same icon-only trigger, bottom-end popover, and show/hide aria-expanded synchronization that this branch applies to Sessions.
Changed owner boundary: The branch keeps session filter updates flowing through the existing onFiltersChange owner and only changes where controls render.
Findings None None.
Security None None.

Live Verification

Entry: /sessions

Result: PASS (completed)

Steps:

  • PASS goto /sessions
  • PASS wait_for openclaw-sessions-page
  • PASS expect_text Sessions
  • PASS click button[aria-label="Filters"]
  • PASS wait_for wa-popover.sessions-filter-popover[open]
  • PASS expect_text Updated within

Live proof recording

Recorded live on the PR head (bc4d73019121), 12.96s, browser surface.

How this fits together

The Control UI renders Gateway-provided session lists and capability metadata into an operator roster. This change affects the roster’s presentation and filter disclosure without changing Gateway session requests, actions, or persistence.

flowchart LR
  Gateway[Gateway session data] --> Sessions[Sessions page]
  Gateway --> Capability[Method advertisement]
  Capability --> Search[Transcript search state]
  Sessions --> Toolbar[Visible search and status controls]
  Sessions --> Popover[Advanced filters popover]
  Toolbar --> Roster[Filtered session roster]
  Popover --> Roster
Loading

Decision needed

Question Recommendation
Should the Sessions page adopt this denser default hierarchy, with advanced filters behind the Automations-style popover? Adopt the compact hierarchy: Accept the Sessions-specific presentation alignment with Automations while retaining the current filter and search capabilities.

Why: The implementation preserves existing capabilities, but the intended visual density and progressive-disclosure tradeoff are a product judgment rather than a mechanical correctness question.

Before merge

  • Resolve merge risk (P1) - Direct Web Awesome popover source could not be inspected because this worktree has no installed package and DNS is unavailable; current-main sibling use of the same pinned version reduces, but does not eliminate, that contract-verification gap.
  • Resolve merge risk (P1) - GitHub reports the branch behind current main, so its visual interaction checks should be refreshed after any rebase or merge-ref update.
  • Complete next step (P2) - A protected maintainer label and the remaining visual-product choice require human acceptance; no focused repair is indicated.
Agent review details

Security

None.

PR surface

Source +34, Tests -10, Other +2. Total +26 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 4 279 245 +34
Tests 5 67 77 -10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 10 348 322 +26

Review metrics

Metric Value Why it matters
Production versus test LOC production +31 (276 added, 245 removed); tests/test support -5 (72 added, 77 removed) The net production growth is the popover and responsive presentation path; changed tests preserve the filter and current-Gateway mock contracts.
Current-Gateway mock capability 1 method added: sessions.search The default UI mock now represents the advertised current Gateway method while the explicit old-Gateway test retains the unavailable state.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/session-list-filter.e2e.test.ts, serialized state: ui/src/pages/sessions/view.test.ts, serialized state: ui/src/pages/sessions/view.ts, serialized state: ui/src/styles/sessions.css, unknown-data-model-change: ui/src/pages/sessions/view.browser.test.ts, unknown-data-model-change: ui/src/pages/sessions/view.test.ts, and 3 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Choose the compact Sessions hierarchy deliberately, then refresh it against current main while retaining the existing accessible popover and filter-flow coverage.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Choose the compact Sessions hierarchy deliberately, then refresh it against current main while retaining the existing accessible popover and filter-flow coverage.

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

Not applicable: this PR proposes a visual hierarchy change rather than reporting a failing production behavior; focused browser coverage exercises the changed filter interaction.

Is this the best way to solve the issue?

Yes for the technical scope: the branch reuses the current Automations popover pattern and retains the existing Sessions filter owner; the remaining question is whether maintainers want this visual direction.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2a87667bb256.

Labels

Label changes:

  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P3: This is a contained Control UI presentation and ergonomics change with no protocol, persistence, or session-action behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this member-authored PR; the body nevertheless supplies inspected after-change Sessions screenshots and reports focused browser coverage.

Evidence

What I checked:

  • Current-main baseline: Current main renders the overview as a separate section and keeps advanced controls inline, establishing that this is a presentation refactor rather than an already-landed change. (ui/src/pages/sessions/view.ts:1075, 2a87667bb256)
  • Established sibling pattern: Automations already uses the same icon-only trigger, bottom-end popover, and show/hide aria-expanded synchronization that this branch applies to Sessions. (ui/src/pages/cron/view.ts:635, 2a87667bb256)
  • Changed owner boundary: The branch keeps session filter updates flowing through the existing onFiltersChange owner and only changes where controls render. (ui/src/pages/sessions/view.ts:1120, bc4d73019121)
  • Behavior coverage: The updated browser tests open the real popover before exercising list filters and group management; the view test covers accessible trigger state. (ui/src/e2e/session-list-filter.e2e.test.ts:11, bc4d73019121)
  • History routing: Sessions and Automations history shows sustained work by Peter Steinberger, including filtered-session ownership and grouped-session pagination. (ui/src/pages/sessions/view.ts:1128, 1e0f62ebfeae)
  • Dependency contract limitation: The PR imports the existing pinned Web Awesome popover, but its installed source is absent and DNS prevented upstream inspection. Current main uses the same pinned component pattern on Automations, Activity, and New Session. (ui/package.json:12, bc4d73019121)

Likely related people:

  • Peter Steinberger: History shows repeated Sessions and Automations ownership, including the filtered-session refactor and grouped-session pagination. (role: feature owner; confidence: high; commits: 1e0f62ebfeae, f007b0f7a800, e2e070c927a6; files: ui/src/pages/sessions/view.ts, ui/src/pages/cron/view.ts)
  • Vyctor H. Brzezowski: Recent Sessions history includes accessibility work relevant to this icon-only control and its exposed accessible name. (role: accessibility contributor; confidence: medium; commits: 17e11e43415e, 588427357bdc; files: ui/src/pages/sessions/view.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • After refreshing the head against main, retain a focused filter-open/close browser trace if direct Web Awesome source inspection is still unavailable.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-22T10:44:48.655Z sha d4355ef :: needs real behavior proof before merge. :: [P1] Revalidate participation at final chat admission
  • reviewed 2026-08-22T11:20:11.093Z sha 4d64957 :: needs real behavior proof before merge. :: [P1] Reserve retry targets before dispatching them | [P1] Stop dispatch when durable progress recording fails | [P2] Count the audience after applying the roster query | [P2] Give the unified search box an accessible name | [P3] Document the Operations deep link
  • reviewed 2026-08-22T12:00:31.156Z sha b99d22c :: needs real behavior proof before merge. :: [P1] Authorize dispatching retry targets
  • reviewed 2026-08-23T00:09:28.780Z sha 0cb9e4c :: needs changes before merge. :: [P3] Update the responsive browser fixture for compact facts
  • reviewed 2026-08-23T00:25:48.305Z sha 37c8582 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T00:57:40.119Z sha e6186d6 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T01:47:19.245Z sha f35856f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T03:21:18.976Z sha dbb2f58076b4038de269af01e5bbcc3c86d91fd2 :: needs maintainer review before merge. :: none

@clawsweeper
clawsweeper force-pushed the openclaw/dashboard-sessions-bulk-messaging-support branch 2 times, most recently from 42cc909 to 7e07537 Compare August 22, 2026 07:44
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 22, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 23, 2026
@clawsweeper

clawsweeper commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready handoff

Exact head: dbb2f58076b4038de269af01e5bbcc3c86d91fd2

The branch is presentation-only. It reduces persistent information, moves advanced roster controls behind Filters, matches Automations’ icon-only/right-aligned mobile filter treatment, and keeps every existing session-management capability.

Evidence

  • Corrected current-Gateway desktop/mobile screenshots and Automations comparison
  • Exact-head CI run: green, including openclaw/ci-gate
  • Sessions render tests: 52/52 passed
  • Responsive browser proof: 5/5 passed
  • Session filter and group-management mocked-Gateway E2Es: 15/15 passed
  • Transcript-search E2Es: 6/6 passed, including the explicit old-Gateway case
  • Scoped check:changed, localization verification, production build, and performance limits: passed
  • Mandatory uncommitted and full-branch autoreview: no actionable findings
  • Web Awesome 3.10.0 source directly checked: the anchor, placement, arrow, open-state, and show/hide event contracts match this use

ClawSweeper’s technical uncertainty is addressed. The only remaining decision is ordinary maintainer acceptance of the supplied visual hierarchy; no mechanical repair or failing gate remains.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 23, 2026
@clawsweeper clawsweeper changed the title style(ui): simplify Sessions visual hierarchy improve(ui): simplify Sessions visual hierarchy Aug 23, 2026
@clawsweeper

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper
clawsweeper force-pushed the openclaw/dashboard-sessions-bulk-messaging-support branch from dbb2f58 to bc4d730 Compare August 23, 2026 03:31
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 23, 2026
@clawsweeper
clawsweeper merged commit 4a70af5 into main Aug 23, 2026
159 checks passed
@clawsweeper

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants