Repository navigation
Conversation
Ajsensai
approved these changes
Oct 31, 2026
Author
|
The CI runs on this PR expired before anyone approved them (they need maintainer approval because the PR comes from a fork). I've pushed an empty commit to queue them again. Could a maintainer approve the workflow runs? Thanks! |
This branch has not been deployed
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
showToastdefaults to a fixed 1200 ms, which is too short to read anything longer than a few words. This scales the default with message length at 50 ms per character, clamped between 2 and 6 seconds. Toasts that pass options without a duration keep their 5-second minimum and extend up to 6 seconds for long messages. Explicit durations are unchanged, and the existing 2.5-second cap while the photo editor is open still applies.This restores #4043, which was approved on Jul 11 but closed unmerged on Jul 23 when
devwas force-pushed. Its diff can no longer be reviewed against the rewritten base. One small difference from #4043: the length check usesString(msg || ''), so a non-string message can't break it.Target branch
labin the private maintainer-preview repository, ordevin the public repository.mainremains release-curated.Linked Issue
Fixes #4045
Type of Change
Checklist
labin maintainer-preview;devin the public repository)docker compose uporuvicorn app:app) and verified the change works end-to-end. Type-checks and unit tests are not enough.How to Test
Static checks:
node --check static/js/ui.jspasses andgit diff --checkis clean.Visual / UI changes — REQUIRED if you touched anything that renders
This changes how long toasts stay on screen, not how they look. No CSS, colours, layout or markup changed.
showToast.Screenshots / clips
606990771-a8b80083-ee94-486c-9a82-e4f37ebe0a5c.mp4