Skip to content

[codex] Cap and dedupe toast queue#171

Draft
vku2018 wants to merge 1 commit into
StableRoute-Org:mainfrom
vku2018:grantfox-108-toast-queue-cap
Draft

[codex] Cap and dedupe toast queue#171
vku2018 wants to merge 1 commit into
StableRoute-Org:mainfrom
vku2018:grantfox-108-toast-queue-cap

Conversation

@vku2018

@vku2018 vku2018 commented Jul 4, 2026

Copy link
Copy Markdown

Summary

  • Cap the visible toast queue at three items and clear timers for toasts dropped from the queue.
  • Collapse duplicate messages with the same level into one toast with a count badge, refreshing the auto-dismiss timer instead of stacking repeats.
  • Preserve info status / error alert roles, the polite live region, and document the queue behavior in README.

Refs #108

Validation

  • npm ci --ignore-scripts --no-audit
  • npm test -- src/components/tests/ToastProvider.test.tsx (5 passing)
  • npm run lint
  • git diff --check (passes with existing CRLF warnings only)
  • npm run build (blocked by pre-existing src/app/quote/Client.tsx missing assetsDiffer)
  • npm test (109 passing, 10 failing in pre-existing quote page tests due the same missing assetsDiffer)

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