mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-19 23:05:21 +00:00
* fix(app): keep the command popover against the composer as it resizes The popover lives in a portal and positioned itself from an asynchronous copy of the composer's rect. Any composer layout change painted first: a wrapped line overlapped the popover, cleared text left it floating above the composer, and a window resize left it at the old width, for one frame on web and up to seconds on Android under JS load. The popover now follows the composer's live size between measurements. Native reads the anchor's height on the UI thread every frame with a Reanimated frame callback; web commits the placement from a ResizeObserver with flushSync, before paint. The keyboard translate view in the portal becomes host-sized and box-none, so the popover moves inside it without leaving its parent's bounds (Android hit-testing). * docs(app): state where the native popover's fixed-bottom tracking stops holding The native frame follows only the composer's height so it never depends on whether iOS's native-driver keyboard lift has reached the shadow tree. The centered New workspace composer and width changes still wait for the rest measurement, as before. * fix(app): stop the native popover frame measuring a composer that left the tree When the composer unmounts with the popover open, the portal removes the frame a commit later. A busy JS thread holds that commit for many frames, and every failed measure() logged a Reanimated warning: 31 to 111 per layout swap on Android. A gate written from the anchor's ref callback arrives on the UI thread only after that same JS task, so the frame now stops on its first failed measure and falls back to the rest measurement. * fix(app): close the autocomplete popover while its retained panel is hidden A workspace stays mounted with display: none while another route shows, and the popover stayed open inside it. On native its frame then failed to measure the hidden composer, stopped tracking, and kept the stale placement after the user came back. The popover now closes with its panel and reopens with a fresh measurement. * fix(app): open the autocomplete list where it rests, with only the rows it shows The list mounted every result and then scrolled itself to the composer edge. On Android the scroll command reaches the screen one or two frames after the rows, so each open and each result change painted the far end of the list, or the selection 8 px low, before the resting frame. Mounting 115 commands also held the popover's first frame for 500 ms to 1 s. The list is now an inverted, virtualized list: its resting scroll position is the composer edge, and the first commit holds the rows that fill the popover. Each result set gets its own list, so a result change starts at the composer edge with the same bounded commit. Arrow-key selection is revealed through the list's own viewability and scroll-to-index. * fix(app): rest the autocomplete list at the far end when the selection wraps there Wrapping the arrow-key selection from the best match to the far end of a long list scrolled there over several frames, because the rows in between were not mounted. The list now gets a scroller that rests at the end the selection wrapped to, so the jump is one frame and mounts only the rows it shows. * fix(app): keep the selected autocomplete row in view when the popover gets shorter The row the arrow keys selected was brought into view once. A popover that then lost height, because the composer grew or the window shrank, cut that row off while Enter still chose it. The list checks the selected row again whenever its height changes. The test that counted scroll calls through patched Element prototypes now reads the list's resting scroll position instead. * fix(app): keep the autocomplete list when the same results arrive again The composer hands the popover a new list on every keystroke and refetch, often holding the results it already showed. The list started over for each one: a second mount before the filtered results, and a list the user had scrolled returned to its rest. A result set is now its options in order.