Skip to content

Animate Settings sections and rows as they come and go - #114

Merged
Tarquinen merged 1 commit into
devfrom
settings-rows-motion
Nov 17, 2026
Merged

Tarquinen merged 1 commit into
devfrom
settings-rows-motion

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

In Settings, rows and sections that depend on a switch appeared and disappeared in one frame and pushed the rest of the page. Turning on Enable Voice added Call Setup and two Calls rows at once, and All Experiments added the Volume rows, before the switch's thumb had even moved.

Now every Settings section fades in and out and slides into place as the page changes, with the same roles as Server Details' rows (fade in on MicroIn, placement on Layout, fade out on MicroOut). A new section waits half a Layout before fading in, so the sections below have made room and don't slide over it. A section's card grows and shrinks with its rows on Layout. All of this is in the shared settingsSection helper, and every page already passes keys, so no page needed changes.

Checked on the emulator against session-lab, frame by frame against v0.8.0: Voice with Enable Voice on and off (light, and dark at 4x animator scale) and Experimental with All Experiments on and off. Opening Voice and Experimental from Settings plays no stray fade or slide. scripts/check.sh :feature:settings passes. Not checked on a phone or with Reduce Motion on.

Left alone: rows inside a card still reflow at once while the card grows, so Call History jumps down before the new rows are revealed; and turning Voice off, the Calls section briefly slides over the fading Call Setup. Both last a fraction of a second.

The video shows Enable Voice on and off at real speed, again at 4x slower in dark, then All Experiments on and off: v0.8.0 on the left, this branch on the right.

before-after.mp4

Turning on Enable Voice or All Experiments added sections and rows in one
frame, before the switch's thumb had moved, and pushed the rest of the page.

settingsSection now gives every section animateItem (fade in on MicroIn,
delayed by half of Layout so it lands after the sections below make room;
placement on Layout; fade out on MicroOut), as ServerDetailsView's rows do,
and the section card animates its size on Layout when rows inside it change.
Every Settings page uses settingsSection with keys, so no page needed edits.

Verified: vm.sh check :feature:settings passes. On the emulator against
session-lab, Voice (Enable Voice on/off, light, and dark at 4x animator
scale) and Experimental (All Experiments on/off) frame by frame against
v0.8.0; opening Voice and Experimental from Settings plays no stray fade
or slide.
@Tarquinen
Tarquinen merged commit 9306e39 into dev Nov 17, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — 4b47f27f Deployed Nov 17, 2026 by Tarquinen via check #389
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