Skip to content

Goals dialog: steady through the height step, picker placed once it has settled - #322

Merged
bndct-devops merged 1 commit into
mainfrom
fix/goal-picker-settle
Nov 21, 2026
Merged

bndct-devops merged 1 commit into
mainfrom
fix/goal-picker-settle

Conversation

@bndct-devops

Copy link
Copy Markdown
Owner

Goals dialog: keep the top edge still through the height step, and show the finish-by picker on its trigger only once the dialog has settled.

Fixes the e2e failure on main: the panel's translate and the area's height could start frames apart, so the dialog bobbed mid-step and a card opened then stayed where the trigger had been. Adds a test that opens the picker during the step.

…by card waits for it to settle

The New goal dialog moved its panel with a `translate` transition while the
area under the kinds changed height with a `height` transition. The first
runs on the compositor, the second on the main thread, and under load they
start frames apart: when a step began while another was under way (the
suggestions arriving just after the dialog opened, then a kind picked), the
panel bobbed by tens of px before settling. The panel now moves with `top`,
laid out with the height in the same frame. Its offset is worked out from the
height the panel will end at (layout sizes), not from its drawn rect part way
through a step, so overlapping steps can no longer leave it off the screen.

The finish-by picker and the day picker placed their card once, when opened.
Opened during the step (or the step clamped at the screen's bottom, which
moves the top on purpose, as on phones), the card stayed where the trigger
had been: 79 px under it on a 390 px screen. The card now stays hidden until
the dialog's moving transitions have finished, then sits on the trigger.

This was main's red e2e run: on the CI runner the "loaded" check caught the
dialog part way through a step, 25 px above where it settles.

The unseen copy that measures the count kinds carries data-ruler; the
picker test skips it (it is invisible, aria-hidden and inert, so nothing of
it can peek out), waits for the card to show, and a new test opens the
picker inside a slowed step at 1440 and 390 and checks every frame.
@bndct-devops
bndct-devops merged commit 4d62205 into main Nov 21, 2026
4 checks passed
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.

1 participant