Repository navigation
improve(ui): make Tasks easier to scan - #128853
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
ff744e0 to
6da9ba9
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 5:08 PM ET / 21:08 UTC. ClawSweeper reviewWhat this changesThis PR changes the Control UI Tasks page to a denser shared settings-list layout and adds a mobile regression check for recovery actions. Merge readinessKeep open for maintainer review. The revised head addresses the prior narrow-phone blocker by wrapping recovery controls and asserting all three remain within a 320px viewport; no new correctness finding was identified. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI turns Gateway task summaries into operator-facing task rows and invokes existing task actions from those rows. This PR changes that browser presentation while retaining the established Gateway data and action paths. flowchart LR
A[Gateway task summaries] --> B[Tasks page state]
B --> C[Settings-style task rows]
C --> D[Responsive controls]
D --> E[Operator task actions]
E --> F[Gateway task commands]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -17, Tests +13. Total -4 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared settings primitives and wrapped mobile action group, then merge after exact-head CI and the protected maintainer review complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is an intentional presentation improvement rather than a report of broken existing behavior. Is this the best way to solve the issue? Yes. It reuses the existing Settings design primitives and preserves the established Tasks data and action owners instead of creating a parallel workflow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d48166515ef6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Co-authored-by: Tak Hoffman <[email protected]>
6da9ba9 to
24aebe4
Compare
|
Merged via squash.
|
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
Follow-up to #127793.
AI-assisted: yes. The implementation and final diff were reviewed with the repository's
autoreviewworkflow; no actionable findings remained.What Problem This Solves
The Control UI Tasks page is harder to scan than the current Automations and Sessions pages. A separate summary card, nested section and row cards, repeated subtitles, and status/runtime/agent chips consume substantial vertical space—especially on mobile—without adding task information or capability.
Why This Change Was Made
This change applies the existing settings/list design language to Tasks: compact facts live in section headings, rows share flat divided groups, and task status uses the canonical colored dot with plain metadata. It preserves task loading, pagination, event updates, session navigation, cancellation, copy/retry/dismiss actions, disabled states, warnings, permissions, and Gateway behavior.
Search and filtering remain out of scope.
tasks.listcurrently lacks authoritative pre-pagination text filtering, so a client-only search over the newest terminal tasks could incorrectly report no matches.User Impact
Operators can scan more task state at once with clearer hierarchy and less visual nesting. In the matched fixture:
No workflow, control, state, permission boundary, or API behavior changes.
Evidence
Matched browser captures use the same seven-task fixture, timestamps, dark theme, and reduced-motion setting. Desktop is 1440×1000; mobile is 390×844. Before/after screenshots and separate desktop/mobile comparison videos are attached below.
Exceptional-state browser proof also covered blocked delivery, retry/dismiss, read-only retained results, copy failure, paging, pushed completion, and cancellation.
Validation on exact rebased head:
node scripts/run-vitest.mjs ui/src/pages/tasks/tasks-page.test.ts— 19 passednode scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/pages/tasks/tasks.e2e.test.ts— 4 passednode scripts/check-changed.mjs -- ui/src/lib/tasks/data.ts ui/src/pages/tasks/tasks-page.ts ui/src/pages/tasks/view.ts ui/src/styles/components.css— passedpnpm ui:build— passed; existing unrelated ineffective-import warnings onlygit diff origin/main...HEAD --check— passedautoreview --mode uncommittedbefore commit — no accepted/actionable findings; correctness 0.98The broader repository build compiled through its TypeScript phases but could not finish in this linked worktree because the reused dependency tree lacked current
@openclaw/aibuild artifacts after the large main fast-forward. Per worktree policy, dependencies were not reconciled here; the proportional Control UI production build passed.Desktop before and after
Desktop comparison video:
tasks-desktop-comparison.webm
Mobile before and after
Mobile comparison video:
tasks-mobile-comparison.webm