Skip to content

✨ Motion M3: the player and Now playing, back into the hand - #118

Merged
simonhull merged 6 commits into
mainfrom
feat/motion-m3
Nov 19, 2026
Merged

simonhull merged 6 commits into
mainfrom
feat/motion-m3

Conversation

@simonhull

Copy link
Copy Markdown
Owner

Plan 071's third milestone: the player and Now playing, as the M3 boards were approved on 2026-11-18. That means A (Back into the hand) for decision 17, the second option for 18, the recommended option for 19 to 22, and 23 parked.

What each pair does

  • Into the moment, from every page the island shows on (into-now-playing; decision 19). This covers the rooms, Artist, Playlist, and Server and its tools. It is M1's Home → Now playing, generalised: the island's cover rises to the poster, the page falls back around it, the poster's stage comes up over it, and the title climbs out a line at a time. Settles in ~1040 ms. From an album the hero rises when it is on screen, as before (album-to-now-playing).
  • Back into the hand, out of the moment to every room and record (back-into-the-hand; decisions 17 and 18).
    • The poster reshapes, at its true size and radius, into wherever the page now holds the playing album in view. That is Home's Continue card (it wins on Home, so Close → Home never retraces the way in), its heading in the Library, or its cell in Albums. When the page doesn't hold it in view, the poster lands in the island's thumb. Nothing is scrolled for it.
    • The controls' pill shrinks back into the island with Play and the bar riding in it. The island's other contents, its thumb among them, come up in place @170.
    • The moment gives way under the page, which gathers in front around the landing. Its headline comes @140, once the poster title has cleared.
    • Settles in ~740 ms. This replaces the interim restack M1 left on Now playing → Home.
  • Now playing → Album (the cover, the album link, or Close with no history). The poster becomes the hero, the album's stage comes up in front, and the album gathers around the cover. This replaces the interim on → Album.
  • Now playing → Artist (decision 22). The name under the song is now registered as name:<artistId>. It takes the stage @40 and grows into the headline, while the poster goes into the hand.
  • Login → Now playing (decision 21). The door opens on the moment: the form falls back, the poster's stage and the cover come up @60, the controls close the frame from below @220, and the title climbs @360 and @450, once the cover is solid. Settles in ~1260 ms.
  • The nav coming back (decision 20). It fades in where it stands on --morph @120. Its shape is set at once while it is still unseen (data-returning, set in the same flush as its look). It no longer drops 20 px and scales up from 0.94.
  • Reduced motion. Both ways are the 120 ms blend, drawn in front, and the island's glass takes its new shape at once.
  • Now playing → Login stays the blend; that is M5's.

Interrupts work as they did in M1 and M2. Pressing the island's cover mid-flight, pressing Close while the moment is still opening, and quick runs of Close, cover, Close all retarget from the pose things had reached.

A bug found on the way

At 3840 under load, Home → Now playing sometimes never landed. The progress bar's flier was chasing the scrubber's fill, which grows in real time with the song, while a loaded frame advances the springs by at most 50 ms. The flier fell behind by more than a pixel and stayed in the air. Now the flier carries only its gap to the fill, so a moving target never reads as distance still to fly.

Tests

  • New spec web/e2e/moment.e2e.ts. It checks stacking, where the poster lands for each destination, landing, turning back mid-flight, rapid presses, 390, 3840, ?latency=300 and reduced motion, all by structure and with no fixed sleeps.
  • Repeated 20× at default workers: 320/320. Repeated 10× at --workers 16 together with journeys.e2e.ts and rooms.e2e.ts: 560/560.
  • vitest: the moment's pairs, grains, landing slots, the controls that fly, the never-reversed rule and the settle times.

Perf

The browser suite was run against a git archive of main as the base, back to back with M3 (KITSUNE_PERF_PORT=15770).

Full suite, both libraries. Base ran 15:56 to 16:25 (load 31 → 3.8; other sessions were busy when it started) and M3 ran 16:25 to 16:55 (load 3.8 → 2.8).

  • At 1k every interaction matches base.
  • At 50k, M3 had a run of budget failures in one window (album, artist ×3, columns, then the fling and shuffle). These are on paths M3 doesn't touch, so they pointed at a spike from outside.

Those specs again at 50k (album, artist, columns, library, shuffle), alternating base, M3, base, M3 from 16:56 to 17:27, with load 2.2 to 4.4 throughout:

Interaction (50k, median / p95 ms) base M3 base again M3 again budget
Play a song from the Library 24.0 / 24.6 24.1 / 30.4 23.4 / 48.6 ✗ 24.0 / 25.3 45 ms
Play a song from the Library, clicking a cell 24.6 / 25.7 24.2 / 37.6 24.7 / 41.1 24.4 / 25.8 45 ms
Play a song on its album page 19.0 / 20.0 19.0 / 27.9 18.9 / 19.6 19.1 / 19.7 70 ms
Next 18.2 / 18.9 18.2 / 25.8 17.7 / 19.2 17.9 / 19.0 35 ms
Previous 21.7 / 25.0 21.3 / 25.8 21.7 / 25.4 22.3 / 28.5 45 ms
Star the song playing from the island, on screen 15.9 / 17.0 15.9 / 17.7 15.9 / 19.6 16.1 / 17.5 30 ms
Shuffle on Now playing, press to Up next reordered 16.0 / 16.3 16.1 / 16.3 16.0 / 16.2 16.0 / 16.3 25 ms
Star a song, on screen 16.0 / 17.5 16.1 / 17.8 16.2 / 17.3 15.9 / 17.3 30 ms
Open an album from the Library 46.3 / 72.8 45.3 / 57.3 44.8 / 62.4 46.3 / 67.1 120 ms
Library first rows, from page load 382.3 / 407.5 381.1 / 477.8 375.5 / 405.7 381.0 / 741.9 ✗ 500 ms
Longest frame in a 2 s Library fling 16.8 / 50.0 ✗ 16.8 / 50.0 ✗ 16.8 / 49.9 ✗ 16.8 / 50.1 ✗ 32 ms
Longest frame while the Library sweeps the rail A to Z 33.4 / 66.7 33.4 / 116.7 ✗ 33.4 / 66.7 33.4 / 66.7 75 ms
Open the columns menu 16.3 / 16.7 16.5 / 17.1 16.3 / 16.6 16.5 / 16.9 30 ms
Open a song's ⋯ menu 15.4 / 16.2 15.7 / 16.7 15.5 / 15.8 15.6 / 16.1 25 ms
Shuffle the library, press to sound 19.5 / 52.2 ✗ 19.7 / 23.2 19.8 / 49.8 20.7 / 52.0 ✗ 50 ms
Next, in a shuffle 18.7 / 21.2 18.6 / 19.6 18.6 / 19.0 18.5 / 18.9 30 ms
Turn the Library's order round, click to rows 21.6 / 37.9 21.9 / 27.4 21.4 / 27.3 20.0 / 27.8 150 ms
Longest frame while dragging a column across the Library header, 2 s 16.8 / 50.0 ✗ 16.8 / 33.4 ✗ 16.8 / 50.0 ✗ 16.8 / 50.0 ✗ 32 ms
Drop a column, release to rows in their new order 17.4 / 20.8 17.5 / 20.1 17.0 / 23.4 17.1 / 21.3 38 ms
Alt+→ on a column header, key to rows in their new order 17.5 / 57.8 ✗ 17.2 / 24.6 17.3 / 29.1 17.6 / 29.5 47 ms
Open an artist with 800 songs from its album, click to Top songs' rows 83.0 / 133.6 90.3 / 217.1 86.4 / 95.1 83.9 / 97.8 235 ms
All N songs, click to the full list's rows 43.1 / 57.5 42.6 / 51.0 43.6 / 49.9 42.7 / 49.5 140 ms
An artist's songs, flat to by album, click to rows 41.9 / 89.8 41.6 / 52.0 42.0 / 55.4 40.8 / 58.3 120 ms
Play a song from an artist's flat list 18.6 / 19.2 18.7 / 32.6 18.5 / 18.8 18.6 / 21.1 45 ms
Longest frame in a 2 s fling of an artist's 800 songs 16.8 / 50.1 ✗ 16.8 / 50.0 ✗ 16.8 / 66.7 ✗ 16.8 / 66.7 ✗ 32 ms

Medians agree to within a millisecond or two everywhere. The p95 failures (the 50k fling and column-drag frame tests, an Alt+→, shuffle-to-sound, the first rows) land on both branches in turn, so they are this machine's noise and not M3's. Nothing on the play path changed: the island and its play, star, Next and Previous match base.

Where the build departs from the boards

These are recorded in DESIGN.md's Open drift.

  • The Hand board always lands the poster in the thumb. Decision 18 chose the second option, so the build lands it where the page holds the album in view.
  • Into the moment, every control still flies, as M1 shipped. The Arrive board flies only Play and the bar.

@simonhull
simonhull merged commit 149999b into main Nov 19, 2026
10 checks passed
@simonhull
simonhull deleted the feat/motion-m3 branch November 19, 2026 01:52
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