Skip to content

Grow panels to fit content that arrives after they open - #16483

Merged
dhh merged 2 commits into
quattrofrom
network-panel-jump
Oct 24, 2026
Merged

dhh merged 2 commits into
quattrofrom
network-panel-jump

Conversation

@dhh

@dhh dhh commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

The network panel's Wi-Fi list and the Bluetooth panel's devices fill in a beat after the panel opens (the scanner is re-enabled 100ms after opening, and Bluetooth discovery keeps finding devices), and the card snapped taller each time.

KeyboardPanel now draws the card at a drawnHeight that follows contentHeight over 200ms on Style.easeOut. The content is laid out at its final height and the card crops it while growing, so new rows are uncovered instead of spilling out. The card's position also uses the drawn height, so on a bottom or side bar the panel grows away from the bar rather than jumping.

For the first 60ms after opening the height snaps instead: that's when lazily built content first measures itself, and a panel shouldn't grow in from a stale size. During a panel-to-panel morph, the morph drives the height.

Verified in the running shell with screen recordings examined frame by frame:

  • On first open, the network panel's card extends over about 5 frames when the Wi-Fi list lands.
  • Bluetooth's card extends a little more with each device discovery finds, with no snaps.

Tests: bluetooth, network, network-captive-portal, network-owe-transition, bar-click-clipping, keyboard-panel-lazy, clock, weather, panel-key-catcher and the plugin/bar contract tests pass.

🤖 Generated with Claude Code

A Wi-Fi scan or Bluetooth discovery fills its list a beat after the
panel is up, and the card snapped taller when it did. The card now
follows the content's height over 200ms on the strong ease-out,
cropping the new rows as it grows, and is placed by that drawn height so
a bottom or side bar's panel grows away from the bar too. For the first
60ms after opening it snaps instead, while freshly built content
measures itself, so a panel never grows in from a stale height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous finding is fixed and no new actionable issues were found.

Summary

The PR makes panel cards grow smoothly as content arrives after opening.

  • Panel cards grow as late-arriving content fills in.

Reviews (2) · Last reviewed commit: "Hand a growing panel's drawn height to t..." · Reviewed by Greptile

Comment thread shell/Ui/KeyboardPanel.qml Resolved
The bar was told the card's final height, so switching to a neighbour
while the card was still growing started the next card taller than
what was on screen, and it jumped before morphing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit 59d6f7f into quattro Oct 24, 2026
2 checks passed
@dhh
dhh deleted the network-panel-jump branch October 24, 2026 13:35
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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.

2 participants