Skip to content

fix(ui): stop node signal pill from wrapping; restore full-width spread#6007

Merged
jamesarich merged 1 commit into
mainfrom
claude/suspicious-brown-c8acae
Jun 29, 2026
Merged

fix(ui): stop node signal pill from wrapping; restore full-width spread#6007
jamesarich merged 1 commit into
mainfrom
claude/suspicious-brown-c8acae

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Why

On real phone widths the node-card signal pill (SNR / RSSI / quality) wrapped onto multiple lines — dBm dangled onto its own line and the chip looked crushed:

"the signal info looks like shit now"

🐛 Fix

#5985 bundled SNR + RSSI + quality into a single StatusSurface pill (to give the bright status colors a legibility scrim) but left it as one MetricsGrid item — so it was forced into a 1/3-width column with nowhere for the text to go. Before #5985 these were three independent grid items spread edge-to-edge.

This renders the signal pill on its own full-width line (Arrangement.SpaceBetween: SNR left, RSSI center, quality right) — the pre-scrim spread, now with the scrim behind it. Short metrics (channel, sats) still flow through the grid below.

Before (#5985 regression) After
SNR 14.00 dB -41 / dBm crammed in a 1/3 column SNR … RSSI … ◢ Good spread full-width on its own line

Compact density is unaffected — it lives in NodeItemCompact and shows a single quality chip, not the SNR/RSSI pill.

🧹 Test coverage

The regression slipped through CI because every existing node screenshot sample had hopsAway >= 1, so they rendered the hops chip instead of the signal pill. Adds ScreenshotSampleNodeCompleteDirectSignal (a hopsAway = 0 direct neighbor) that actually exercises the pill, with regenerated light/dark references.

Testing Performed

  • spotlessApply spotlessCheck, detekt, assembleDebug — pass
  • :core:ui:allTests (60) and :feature:settings:allTests (92) — pass
  • :screenshot-tests:updateDebugScreenshotTest — pass; new references reviewed visually

🤖 Generated with Claude Code

The SNR/RSSI/quality signal pill wrapped onto multiple lines on real
phone widths — "dBm" dangled onto its own line and the chip looked
crushed.

Cause: #5985 bundled SNR + RSSI + quality into one StatusSurface pill
(for legibility scrim) but left it as a single MetricsGrid item, so it
was forced into a 1/3-width column and its text had nowhere to go.
Before #5985 these were three separate grid items spread edge-to-edge.

Fix: render the signal pill on its own full-width line (SpaceBetween:
SNR left, RSSI center, quality right) — the pre-scrim spread, now with
the scrim. Short metrics (channel, sats) still flow through the grid.

Adds a screenshot sample (hopsAway = 0) that actually exercises the
signal pill — every existing sample had hopsAway >= 1 and rendered the
hops chip instead, which is why the regression slipped through CI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added the bugfix PR tag label Jun 29, 2026
@jamesarich jamesarich enabled auto-merge June 29, 2026 12:38
@jamesarich jamesarich added this pull request to the merge queue Jun 29, 2026
Merged via the queue into main with commit 26bab94 Jun 29, 2026
16 checks passed
@jamesarich jamesarich deleted the claude/suspicious-brown-c8acae branch June 29, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant