browsertrix/frontend
Emma Segal-Grossman 46aab91ef5
Adds optional IDs to toasts to replace rather than add to toast stack (#2236)
This has been bugging me for a while — any type of repetitive action
that shows a toast will quickly cause a big stack of toasts to build up.
This fixes that by allowing different categories of toasts to exist,
where each category can only have one active toast. _Different_
categories of toast can coexist just fine, but toasts with the same `id`
will replace any existing toast with that same `id`.

It's been a pet peeve for a while, and it should make any sort of "power
user" use of Browsertrix a lot nicer :)

I've gone over all the existing toasts and applied what feel like decent
differentiations, but I'm not set on any of them — open to suggestions!


https://github.com/user-attachments/assets/dbe39141-9e56-427d-b702-124c45ef2b9a

---------

Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
2024-12-13 15:27:01 -05:00
..
.husky chore: Auto-commit extracted localization strings (#2089) 2024-09-30 10:48:13 -07:00
config/tailwind/plugins Add detailed permissions & permission summaries to user invite popup (#2003) 2024-08-20 20:34:29 -04:00
docs Plausible analytics (#2226) 2024-12-10 16:30:22 -08:00
lib Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
patches
scripts Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00
src Adds optional IDs to toasts to replace rather than add to toast stack (#2236) 2024-12-13 15:27:01 -05:00
tests fix: Hide login link on login page (#2039) 2024-08-21 15:33:24 -07:00
xliff Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00
.dockerignore
.editorconfig
.eslintrc.js Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
.gitignore
.prettierignore Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
.vscode add vscode config symlink in frontend dir 2023-11-20 16:56:48 -05:00
.yarnrc refactor: Implement brand colors (#2141) 2024-11-12 08:54:11 -08:00
00-browsertrix-nginx-init.sh analytics path in dev server (#2231) 2024-12-12 15:06:03 -05:00
Dockerfile Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
frontend.conf.template Frontend hosted-docs (#2107) 2024-10-08 14:56:34 -07:00
index.d.ts
lit-localize.json feat: Localization workflow improvements (#2069) 2024-09-10 14:15:26 -07:00
minio.conf
package.json Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
playwright.config.ts Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
postcss.config.js Add detailed permissions & permission summaries to user invite popup (#2003) 2024-08-20 20:34:29 -04:00
prettier.config.js Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00
README.md Update frontend local dev guide (#1073) 2023-08-15 12:03:39 -07:00
sample.env.local feat: Merge workflow job types (#2068) 2024-09-25 10:37:18 -04:00
tailwind.config.js refactor: Implement brand colors (#2141) 2024-11-12 08:54:11 -08:00
tsconfig.eslint.json
tsconfig.json chore: Improve time to load org UI (#2044) 2024-08-26 10:45:10 -07:00
web-test-runner.config.mjs Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
webpack.config.js Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00
webpack.dev.js analytics path in dev server (#2231) 2024-12-12 15:06:03 -05:00
webpack.prod.js Emit eslint errors during webpack builds & during dev (#1667) 2024-04-09 17:42:31 -04:00
yarn.lock Localize durations on frontend (#2196) 2024-12-03 16:46:57 -05:00