fix: add duration: 8000 to all toast.error() calls (#87)#88
Merged
Conversation
Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
✅ UI verification passed — design spec compliance confirmed. All changes are behavioral only ( |
Collaborator
Author
|
✅ Post-merge verification passed. Ad-hoc smoke tests (all passed):
Skipped:
E2E suite: 16 passed, 7 failed, 4 skipped. All 7 failures are pre-existing editor/link/page-crud issues already tracked in #85 — not caused by this PR (which only changed |
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.
Closes #87
What
All
toast.error()calls added in PR #86 (and one pre-existing call inpage-menu.tsx) used Sonner's default 4-second duration instead of the design-spec-required 8 seconds for error toasts. Users seeing transient errors had insufficient time to read the message.How
Added
{ duration: 8000 }as the second argument to all 10toast.error()calls that were missing it acrosspage-tree.tsx(8 calls),workspace-home.tsx(1 call), andpage-menu.tsx(1 call). Also fixed the example in.agents/conventions.mdthat showedtoast.error()without the duration option — this was the root cause of the convention gap that led to the bug.Testing
Added a static analysis regression test (
src/components/toast-error-duration.test.ts) that scans all source files undersrc/fortoast.error()calls and fails if any are missing{ duration: 8000 }. This prevents the same class of violation from recurring in future PRs.