feat(ui): toast queue — stack up to 3, independent fade in/out, keep grading styles (v1.19 D) - #58
Merged
Merged
Conversation
…grading styles (v1.19 D)
This was referenced Aug 17, 2026
Merged
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.
Summary
UI/UE 4th-round deepening — item D: toast queue stacking (rant
2026-08-17T20:39:30, v1.19).Replaces the single overwriting
#toastelement with a queue container#toast-wrap(fixed bottom-center, vertical stack,gap:10px,pointer-events:noneso it never blocks page clicks):toast(msg, type)now creates an independent element per call — consecutive operations no longer overwrite earlier messagesTOAST_MAX = 3): when exceeded, the oldest is removed immediately to make room.out+toast-out0.2s animation) after 2.6s, then removes itself — no shared timer, no cross-talk; orphaned timers of evicted toasts are no-ops.toast.success/.error/.infoborder + text colors unchanged); all 39 existingtoast()call sites untouched.toastkeepspointer-events:auto(container isnone) — future-proof for interactive toastsDocs:
docs/user-stories.mdv1.19 (item D) +ui/README.md「toast 队列约定」. Verified by DOM-stub smoke test (21 assertions: queue append/order, 3-cap eviction, fade-out + removal, timer cleanup, container reusability, HTML/CSS structure, grading preserved),cargo test,cargo fmt --check.Rant (verbatim)
Related
2026-08-17T20:39:30.507364(projectaitokenpool, status in_progress; A = feat(ui): URL hash routing — share/bookmark/refresh restore (v1.19 A) #55, B = feat(ui): transactions summary bar — income/expense/net tied to tab & column filters (v1.19 B) #56, C = feat(ui): custom SVG select arrow — appearance:none, themed, hover/focus like input (v1.19 C) #57 merged)feat/ui-ue-round4-toast-queue(per rant: 分支 feat/ui-ue-round4; items E–G to follow)Tests
node --check ui/js/app.jscargo test— 1 passedcargo fmt --check