Skip to content

Show and dismiss notifications instantly instead of sliding and fading - #16306

Merged
dhh merged 3 commits into
quattrofrom
worktree-notifications-no-slide
Oct 22, 2026
Merged

dhh merged 3 commits into
quattrofrom
worktree-notifications-no-slide

Conversation

@dhh

@dhh dhh commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

New notifications used to start 30px above their spot, transparent, and slide down and fade in over ~320ms. Dismissed, expired and cleared cards faded out while the rest of the stack slid over them. Now both are instant: a new card is simply there at full opacity, and a closed card disappears with the stack jumping to its new layout.

  • land() on the scene clock stops the clock and jumps every card to its target. Arrival (showRow) and departure (closeToasts) use it instead of an animated retarget.
  • A leaving card loses its placement right away, so its Toast is hidden and takes no input. Its model row is removed on the next tick (finishLeaving), never from inside the delegate handler that dismissed it. The fade-era restingPlace override and sceneSettled are gone.
  • Cards that arrived since the deck last opened or closed take their late height changes (a slow icon, a re-wrap) as a jump too.
  • Toast text fades only when the deck expands or collapses. Taking or giving up the front as cards arrive and leave is instant.
  • clearAll / clearDeck close their cards in one jump instead of one per card.
  • A settled signal drives the hover re-hit-test after either a jump or a finished animation.

Hover expand/collapse and in-place updates still animate.

Tests: test/shell.d/notifications-test.sh passes. The close test now drains the deferred removal, and a new case checks that clearing several cards lands once. Not yet checked visually in a live session.

🤖 Generated with Claude Code

dhh and others added 3 commits October 22, 2026 22:48
Late height changes on a new card, the next card's text taking the front,
and clearing several cards now jump too. Departure drops the fade-era
resting placement, so a leaving card is hidden and takes no input, and its
deferred removal no longer cuts short an unrelated animation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ions-no-slide

# Conflicts:
#	shell/plugins/notifications/Service.qml
#	shell/plugins/notifications/Toast.qml
#	test/shell.d/notifications/logic.cjs
@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No actionable defect was found in the changed code.

Summary

Notifications now appear and disappear without sliding or fading.

  • New and leaving notification cards jump straight to their places.

dhh acknowledged that live visual verification has not been done: “Not yet checked visually in a live session.” This review did not run tests or verify the UI.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Card arrives] --> L["land(): stop clock and jump"]
  C[Cards close] --> H[Remove their placements]
  H --> L
  H --> D[Next tick: remove rows and release senders]
  L --> S[Emit settled]
  U[Hover or in-place update] --> R[Animate with retarget]
  R --> S
  S --> P[Check the card under the pointer]
Loading

Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/qua..." · Reviewed by Greptile

@dhh
dhh merged commit 3c7027d into quattro Oct 22, 2026
2 checks passed
@dhh
dhh deleted the worktree-notifications-no-slide branch October 22, 2026 15:27
@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