Skip to content

fix(dashboard): keep each row's bar beside its text at sm and up - #2781

Merged
thiras merged 2 commits into
mainfrom
claude/dashboard-progress-bar-layout-743cae
Oct 30, 2026
Merged

thiras merged 2 commits into
mainfrom
claude/dashboard-progress-bar-layout-743cae

Conversation

@yigitdot

Copy link
Copy Markdown
Contributor

Fixes #2776.

What changed

In LivePulls.tsx, Pools.tsx and Allowance.tsx, each flex-wrap justify-between row now gives:

  • the text block min-w-0 flex-1: it grows from a zero basis and wraps inside its own column;
  • the bar block shrink-0 (it keeps w-full sm:w-64).

Why

The text block took its one-line width as its flex basis. When text + gap + 16rem was close to the row width, a few characters more on a poll (formatUsdc trims zeros, so 0.1608 ↔ 0.155831; file count; duration) wrapped the bar under the text, and the next poll pulled it back. The row height changed, so the whole page jumped. Pools (USDC amounts) and Allowance (delivered bytes) share the pattern and the same risk.

The bar now moves under the text only below the sm breakpoint.

Verification

  • pnpm lint, pnpm test (80 passed), pnpm build (includes tsc).
  • Browser check against pnpm dev with a scratch /_status server serving dashboard-full.json: swept the panel width 420–1200 px in 2 px steps with both paid strings. New layout: 0 wraps. Old classes restored in the DOM: the bar flips at 862–878 px, so the probe reproduces the bug.
  • 375 px viewport: bar sits full-width under the text, no horizontal scroll.

Notes for review

  • No unit test: the component tests use renderToString, which cannot observe layout.
  • The issue's optional fixed 6-decimal paid amount is left out; the bar no longer moves, and the text can still gain a line as it grows.

🤖 Generated with Claude Code

A row's text block took its one-line width as its flex basis, so a few
characters more on a poll (a paid amount with more decimals, a longer
file count or duration) pushed the 16rem bar onto its own line, and the
next poll pulled it back. The text block now grows from a zero basis and
wraps inside its own column, and the bar does not shrink. The bar moves
under the text only below the sm breakpoint. Pools and Allowance rows
share the pattern and take the same fix.

Fixes #2776

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 20:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

The live pull's text column no longer takes its one-line width, so an
output path wider than the column had no break point and painted over
the progress bar. The path now breaks anywhere, as the URI above it
does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yigitdot
yigitdot requested a review from thiras October 30, 2026 20:34
@thiras
thiras merged commit 109ca62 into main Oct 30, 2026
34 checks passed
@thiras
thiras deleted the claude/dashboard-progress-bar-layout-743cae branch October 30, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dashboard: the running pull's progress bar jumps between the row's right side and a line below

3 participants