Repository navigation
Goals dialog: steady through the height step, picker placed once it has settled - #322
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.