Repository navigation
Integrate notification close clicks and the countdown border - #21235
chessing234 wants to merge 7 commits into
Conversation
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.
|
@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. |
Confidence Score: 5/5
[Medium impact] The code appears safe to merge, with the earlier visual-check concern still outstanding. Findings
SummaryAdds repeated notification dismissal and a countdown border.
Reviews (2) · Last reviewed commit: "Preserve themed notification borders dur..." · Reviewed by Greptile |
| NumberAnimation { | ||
| id: timeLeftGlide | ||
| target: card | ||
| property: "drawnTimeLeft" | ||
| duration: Style.duration(countdown.interval) | ||
| easing.type: Easing.Linear |
There was a problem hiding this comment.
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!
|
ready for a look @dhh @ryanrhughes |
|
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! |
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
quattrowithout 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.cjsScreenshots
The close mark and the draining border need a running notification deck. This host has no Omarchy shell.
Made with Cursor