Skip to content

fix(ui): keep task progress steps aligned as status changes - #182716

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/task-progress-alignment
Oct 25, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/task-progress-alignment

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Task markers in the chat Details panel sit in the middle of wrapped descriptions. Align them with the first text line and connect the steps with a subtle vertical rail.

User Impact

Task status changes keep the rows aligned. The approved typography, spacing, spinner and pending-circle appearance are preserved. Commentary links use medium weight.

Why This Change Was Made

The Details checklist shares a fixed marker column and first-line alignment. A quiet vertical rail connects the steps without changing progress state or interactions.

Risk and coverage

  • Production changes only the Details stylesheet (+25/-7); no renderer, state or icon-registry changes.
  • All six existing browser cases passed after the test audit (32.42s), covering desktop/mobile and touch, first-line alignment, Home gesture handles, scroll independence and unread fades.
  • Targeted lint, formatting and diff checks passed.
  • Removed the newly added visual-constant tests and measurement helper. The existing browser test changes only its desktop first-line expectation (+1/-2); no new tests.
  • Production CSS is unchanged from the previously reviewed and captured version, so the images and video below still represent it.

Screenshots

Both columns use the same 266 × 276 px crop at native scale.

Theme Before After
Light Before: light After: light
Dark Before: dark After: dark

Four-step lifecycle

The original spinner runs for approximately three seconds on each step before all four checks appear. The recording uses the real product renderer with a synthetic Gateway fixture and neutral Demo model.

task-progress-four-step-lifecycle.webm
Full chat context — synthetic Demo model

Full chat context

@clawsweeper

clawsweeper Bot commented Oct 24, 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.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 24, 2026 16:18
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@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: 🦐 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR aligns task-progress markers with the first text line, stabilizes status changes, and adds connecting rails.

Example: A task description wraps onto three lines in the desktop Details panel.

  • Before: Its marker sits halfway down the description.
  • After: Its marker aligns with the first line, with a subtle rail connecting subsequent steps.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful visual improvement with directly inspected comparisons, but RTL rail placement and the attributable CSS budget failure require repair.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected light and dark before/after screenshots show the real Control UI Details renderer with synthetic Gateway content, visibly correcting wrapped-marker alignment and adding rails; lifecycle playback was unavailable because the newer recording was absent from prepared artifacts and its scratch download failed.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Wrapped task descriptions place markers below their first line, and status-dependent typography can change wrapping.
Reason: The maintainer-authored direction improves checklist readability within the existing presentation owner and preserves the recent marker-sizing contract.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open: it fixes a visible alignment problem, but the new rail breaks RTL layouts and the added CSS fails the enforced asset budget.

Priority: P3
Reviewed head: b55416a3263a39ed990f46eb5a56b2f2009381b1

Before merge

  • Anchor the connecting rail to the inline start (P2) - Selecting Arabic or Persian sets the document to RTL. The checklist grid then places its marker column on the right, but this physical left offset still paints every connecting segment near the left edge of the row, detached from the markers and potentially alongside wrapped text. Use inset-inline-start and extend the existing geometry coverage to RTL.
  • Fit the added styles within the enforced CSS growth budget (P2) - The current-head performance check fails on the CSS added here: gzip grows from 303614 B to 303730 B, exceeding the effective limit by 52 B, and raw CSS exceeds its effective limit by 561 B. The checker already accommodates the inherited over-budget base, so these failures are additional growth from this PR rather than the inherited baseline alone. Consolidate the touched styles to satisfy both existing limits without raising or bypassing the budget.

Findings

  • [P2] Anchor the connecting rail to the inline start — ui/src/styles/chat/task-progress-details.css:333
  • [P2] Fit the added styles within the enforced CSS growth budget — ui/src/styles/chat/task-progress-details.css:330-338

Tests

  • Missing end-to-end proof: A red-on-base execution of the added regression assertions is not recorded.
Agent review details

How this fits together

Gateway progress cards feed the shared checklist renderer; Details-specific CSS controls desktop and mobile presentation without changing saved progress or actions.

flowchart LR
  A[Gateway progress card] --> B[Progress presentation]
  B --> C[Shared checklist renderer]
  C --> D[Details stylesheet]
  D --> E[Desktop Details]
  D --> F[Mobile Details]
Loading

Technical review

Best possible solution:

Keep presentation in the existing Details stylesheet, position the rail with a logical inset, and consolidate CSS until the existing budget passes.

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

Current-main CSS centers desktop markers against wrapped rows, and the inspected before images show that behavior; no target code was executed during review.

Is this the best way to solve the issue?

The existing stylesheet is the smallest appropriate owner, and the retained renderer and icon contracts avoid unnecessary production machinery.

Full review comments:

  • [P2] Anchor the connecting rail to the inline start — ui/src/styles/chat/task-progress-details.css:333
    Selecting Arabic or Persian sets the document to RTL. The checklist grid then places its marker column on the right, but this physical left offset still paints every connecting segment near the left edge of the row, detached from the markers and potentially alongside wrapped text. Use inset-inline-start and extend the existing geometry coverage to RTL.
    Confidence: 0.99
  • [P2] Fit the added styles within the enforced CSS growth budget — ui/src/styles/chat/task-progress-details.css:330-338
    The current-head performance check fails on the CSS added here: gzip grows from 303614 B to 303730 B, exceeding the effective limit by 52 B, and raw CSS exceeds its effective limit by 561 B. The checker already accommodates the inherited over-budget base, so these failures are additional growth from this PR rather than the inherited baseline alone. Consolidate the touched styles to satisfy both existing limits without raising or bypassing the budget.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Details row alignment and status typography changes intended behavior with a stated reason (ce1fd81: The saved-plan Details implementation reused shared desktop row geometry; this PR explains first-line alignment and stable wrapping as the reason to specialize it.)
  • Spinner and pending-circle sizing keeps the original intent (cb2dbda: The earlier repair matched painted pending and active circles while preserving marker slots, contrast, and spinner animation.)
  • Existing checklist browser coverage keeps the original intent (c7cd3a4: The original polish protected first-line marker alignment, responsive gestures, and overflow indication; the PR extends its existing suite rather than adding a competing harness.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts ui/src/e2e/session-progress-polish.e2e.test.ts --maxWorkers=1
  • pnpm lint:ui:styles
  • pnpm ui:check-performance:base
  • git diff --check

What I checked:

PR surface

Source +24, Tests +195. Total +219 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 26 2 +24
Tests 1 216 21 +195
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 242 23 +219

Review metrics

Metric Value Why it matters
CSS budget excess 52 B gzip and 561 B raw above effective limits Current-head CI attributes the failure to growth beyond the allowance for an already-over-budget base.

Labels

Label changes:

  • add P3: The user-facing change is checklist readability and visual stability; progress execution and saved state are unaffected.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: The user-facing change is checklist readability and visual stability; progress execution and saved state are unaffected.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • 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 24, 2026, 1:23 PM ET / 17:23 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 6160b25 into main Oct 25, 2026
87 of 90 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/task-progress-alignment branch October 25, 2026 20:55
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 26, 2026
…#182716)

* fix(ui): keep task progress steps aligned as status changes

* fix(ui): preserve task progress typography and spinner

* fix(ui): preserve task progress baseline sizing

* test(ui): consolidate task progress geometry checks

* style(ui): remove redundant task progress declarations

* test(ui): retain focused task progress behavior coverage
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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