Skip to content

Integrate notification close clicks and the countdown border - #21235

Closed
chessing234 wants to merge 7 commits into
omacom:quattrofrom
chessing234:integrate/notification-toast
Closed

chessing234 wants to merge 7 commits into
omacom:quattrofrom
chessing234:integrate/notification-toast

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Summary

These two open pull requests both edit shell/plugins/notifications/Toast.qml. One changes what a click on the close mark does. The other draws the time left on the same card. The flood control, placement loop, and browser-source work is already in #21030, so it is not repeated here.

The cherry-picks applied on current quattro without a conflict. A leaving card still uses its own key when the timer expires, so the countdown does not close the card that slides up under the pointer.

Test plan

  • node test/shell.d/notifications/logic.cjs

Screenshots

The close mark and the draining border need a running notification deck. This host has no Omarchy shell.

Made with Cursor

TripleU613 and others added 6 commits December 2, 2026 07:56
Clicking the close mark several times in a row opened notifications
instead of closing them. A closing card stops taking clicks while it
animates out, and the card behind slides up under the still pointer. Its
close mark only took clicks once the card counted as hovered, and cards
of different heights put it somewhere else, so the next click landed on
the card's body and ran its default action: a crash report's "diagnose
with AI", a chat, a browser tab.

The deck now takes presses on a close mark itself, so they never depend
on which card has caught up with the pointer. Closing a card by hand
also starts a short run, 1.5 seconds from the last close, in which any
press on the deck closes the card under it and none opens one.
Clearing a pile of notifications took a click each. Held down, the close
mark now keeps closing cards, the first after a pause so a click stays a
single close, then a little faster each time until the button comes up.
The mark also grows under the pointer, so it is an easier target.
Greptile asked for regression coverage of the close routing and the hold
repeat. The decisions move out of the deck's MouseArea into service
functions, closeTargetFor and nextHoldInterval, which the notification
logic suite now runs: a body press opens outside a run and closes inside
one, a press between cards mid-run closes the newest live card, cards on
their way out are skipped, and a held mark speeds up to 25 ms. With the
run check removed, the suite fails.
@chessing234

Copy link
Copy Markdown
Contributor Author

@omarchybot @dhh combined the two toast prs that were not already in the notification integration, so the close mark and the countdown are reviewed together.

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The code appears safe to merge, with the earlier visual-check concern still outstanding.

Findings

  1. P2 Required visual check is missing ▶

Summary

Adds repeated notification dismissal and a countdown border.

  • Close presses keep dismissing cards as the stack shifts.
  • Timed notification cards show a countdown on their border.

Reviews (2) · Last reviewed commit: "Preserve themed notification borders dur..." · Reviewed by Greptile

Comment thread shell/plugins/notifications/Toast.qml Resolved
Comment thread shell/plugins/notifications/Toast.qml Resolved
Comment on lines +206 to +211
NumberAnimation {
id: timeLeftGlide
target: card
property: "drawnTimeLeft"
duration: Style.duration(countdown.interval)
easing.type: Easing.Linear

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Required visual check is missing

The new countdown and close-mark motion have no running-UI evidence. The PR description says this host has no Omarchy shell and lists only the Node test. AGENTS.md requires visual changes to be checked in the running UI; its linked guide also requires before/after screenshots and a recording for motion. Run these changes in an Omarchy session, inspect the recording frame by frame, and attach the captures before merging.

File Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@chessing234

Copy link
Copy Markdown
Contributor Author

ready for a look @dhh @ryanrhughes

@emirb

emirb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for the time you put into this. Some of the fixes you added on top catch real bugs in the original PRs. I'm closing it anyway, along with the other Integrate PRs.

Each bundle puts several people's work in one branch. We can't review it one change at a time or revert a single piece. Merging it would also leave every original PR open. That's why our PR template asks for one problem per PR.

None of the bundles ran on an Omarchy install either.

Please post each fix on the PR it belongs to, so its author can pick it up. If two PRs conflict, a comment on the later one helps us most. A small fix of your own, tested on a real install, is always welcome. Smaller and proven gets merged. Thanks!

@emirb emirb closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Assignees

Couldn't load assignees.