Skip to content

Animate notifications in and out along Emil Kowalski's motion rules - #16469

Merged
dhh merged 7 commits into
quattrofrom
notification-motion
Oct 24, 2026
Merged

dhh merged 7 commits into
quattrofrom
notification-motion

Conversation

@dhh

@dhh dhh commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Applies the animation rules from https://github.com/emilkowalski/skills to notifications.

  • Arrivals: a card drops the last 24px into place from under the bar and fades in. 250ms on a strong ease-out, cubic-bezier(0.23, 1, 0.32, 1).
  • Departures by click or expiry: the card rises the way it came and fades out in 200ms (exit faster than entry). It slips up behind the stack, so the card stepping forward covers it rather than the leaving card fading out on top. A leaving card takes no pointer.
  • Keyboard dismissals (dismissOne, dismissAll, invokeLast): stay instant. Never animate keyboard actions.
  • Deck open/close: 320ms with an overshooting curve becomes 250ms open / 200ms close, no bounce.
  • Card crossfades: ease instead of running linear. Text giving up the front fades out in half the time, so an arrival never double-exposes two cards' words.
  • Animations off: the card fades now go through Style.duration(), so omarchy toggle animations turns them off too.
  • Linger timer removed: the 800ms linger kept the surface mapped (costing fullscreen direct scanout) for an exit animation that no longer existed. The leaving row's model slot now covers the exit.

Verified in the running shell with screen recordings examined frame by frame. Covered: arrival onto an empty deck and onto a stack, a mid-deck exit in an open deck, the front card leaving a collapsed stack, the last card leaving, and keyboard dismissals (one frame, no motion). test/shell.d/notifications-test.sh passes.

🤖 Generated with Claude Code

dhh and others added 5 commits October 24, 2026 08:06
The 800ms linger kept the canvas up for an exit animation that no longer
exists, so a fullscreen window lost direct scanout for nothing each time
the last card closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card's crossfades used a bare 150ms, so they kept playing after
`omarchy toggle animations` had zeroed every other shell animation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deck moved for 320ms on a curve that overshot its rest. It now opens
in 250ms and closes in 200ms on a strong ease-out, and the card's
crossfades ease instead of running linear: out as the deck's text
appears, in-out for the hover swaps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An arriving card falls the last 24px into place as it fades in (250ms),
and a clicked or expired one rises the same way as it fades out (200ms)
while the cards around it close up, all on the deck's strong ease-out.
Keyboard dismissals stay instant, and a leaving card takes no pointer.
Text giving up the front fades in half the time, so an arrival never
shows both cards' words at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A departing card was drawn on top, so in a collapsed deck its fading
plate and words lay over the card stepping forward. It now slips under
the deck, its text going first so it doesn't read through; the last
card keeps its words, with nothing to cover it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previously reported problems are fixed.

Summary

Adds notification arrival and exit motion while keeping keyboard dismissals instant.

  • New notifications drop into the deck and fade into view.
  • Dismissed cards rise behind the stack before leaving.

Both previous findings are addressed. No new actionable issues were found.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Card closes] --> B{Keyboard action?}
  B -->|Yes| C[Remove next tick]
  B -->|No| D[Animate exit and set deadline]
  D --> E[Scene finishes or deadline passes]
  E --> F[Remove card and release sender]
  D --> G[Sender replaces card]
  G --> H[Cancel departure and update card]
Loading

Reviews (2) · Last reviewed commit: "Bring a notification back when its sende..." · Reviewed by Greptile

Comment thread shell/plugins/notifications/Service.qml Resolved
Comment thread shell/plugins/notifications/Service.qml Resolved
dhh and others added 2 commits October 24, 2026 08:51
A leaving card was removed only when the scene clock finished, and
arrivals and updates restart that clock, so a card updating every tick
kept closed ones on screen and counted against the limit indefinitely.
Each departure now ends on a deadline the scene cannot push back.

The activation shortcut also picked the first row, which during an exit
is the card already leaving, and could run its command a second time.
It now takes the newest card still live, as dismissal already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The update landed on the card, but the card stayed marked as leaving,
so its deadline then removed the fresh notification and reported it
expired. A replacement now cancels the departure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit 02defc5 into quattro Oct 24, 2026
2 checks passed
@dhh
dhh deleted the notification-motion branch October 24, 2026 07:00
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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.

2 participants