Repository navigation
Celebrate tickets moving to Done on the board - #25
Merged
Merged
Conversation
When a ticket is marked done, the card or row glows once and a small burst of confetti drifts up from it, fading within about a second. It plays for a drag into Done, "Mark as done" from the card menu (board or list), and setting Status to Done in the drawer. It plays only after the server accepts the move, only for tickets that were open (not archived or already done), and not at all when the viewer prefers reduced motion. Plain DOM and Web Animations, no new dependency. Also fixes the card menu's Unarchive toast, which said "Marked as done".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A small celebration when a ticket is marked done: the card or row glows once in soft green and about a dozen confetti flecks drift up and fade within roughly a second.
It plays from every way a ticket reaches Done on the board:
Behaviour
web/src/celebrate.ts), no new dependency. The overlay doesn't take pointer events and removes itself when the animation finishes.Also fixes a toast I found nearby: Unarchive from the card menu said "Marked KEY as done". It now says "Restored KEY".
Testing
npm run --prefix web typecheck: passesnpm run typecheck: passesnpm test: 484 passed, 0 failedvite build: passeslore www --boardhost with a demo board: drag to Done, card menu on board and list, and the drawer status select all celebrate. Overlay layers are cleaned up afterwards.