Skip to content

Fold the drawer's Catch Up and What's New rows with AnimatedVisibility - #139

Merged
Tarquinen merged 2 commits into
devfrom
drawer-shortcut-rows-native
Nov 18, 2026
Merged

Tarquinen merged 2 commits into
devfrom
drawer-shortcut-rows-native

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

The drawer's Catch Up and What's New rows folded in and out using machinery ported from iOS: a presence gate, a hand-solved spring, a frame loop, and "mounted" flags in the list model.

Now both rows stay in the list while search is empty and fold with AnimatedVisibility: height, fade and the same 0.96 scale from the top, on MotionRole.Layout's enter and exit springs, which follow Reduce Motion. When the rows show and hide is unchanged, and so are What's New's close delay after Settings, the finished Catch Up label and the count kept while folding.

Visible differences from dev:

  • No 6 dp blur during the fold.
  • Changes made while you switch servers now fold instead of snapping (the list fades in then anyway).
shortcut-rows-before-after.mp4

Verified:

  • scripts/check.sh for every module on the Android VM.
  • Emulator with session-lab, dev vs this branch: Catch Up shown and hidden by unread changes, including quick reversals; What's New hidden from its menu; light and dark; animator scale 1, 5 and 0.

The two shortcut rows above the session list collapsed and expanded on a
ported iOS presence gate, a hand-solved spring and a frame loop, with the
model keeping a "mounted" flag per row while it folded. Now both rows are
always items of the list while search is empty and fold in and out with
AnimatedVisibility (expandVertically/shrinkVertically, fade and the same
0.96 scale from the top) on MotionRole.Layout's enter and exit springs,
which follow Reduce Motion. When the rows show and hide, What's New's
close delay after Settings, the finished Catch Up label and the count kept
while folding are unchanged. Changes made while the drawer is hidden land
in place.

Removed: the ported shortcut slot machinery (DrawerShortcutInputs,
DrawerShortcutSlot, the frame loop), the 6 dp blur during the fold, the
model's catchUpMounted/whatsNewMounted flags, and the four
MotionSystemTests that tested the slots.

Verified: scripts/check.sh for every module on the Android VM; on the
emulator with session-lab, Catch Up shown and hidden by unread changes
(including quick reversals) and What's New hidden from its menu, at
animator scale 1 and 5.
@Tarquinen
Tarquinen merged commit e1d80df into dev Nov 18, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — b5668608 Deployed Nov 18, 2026 by Tarquinen via check #452
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