Skip to content

fix(ui): toasts match the app's style and show the right type for each message - #345

Merged
MrYuion merged 3 commits into
developfrom
fix/toast-styles
Nov 17, 2026
Merged

MrYuion merged 3 commits into
developfrom
fix/toast-styles

Conversation

@MrYuion

@MrYuion MrYuion commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Toasts were solid blocks of colour with a soft shadow. They did not look like the rest of the app. Some also used the wrong type: copy toasts were a mix of blue and green, and "No update available" was a red error.

Toasts now look like the info block on the extensions admin page. Each has an icon strip and border in its type colour on a tinted panel, and the same solid shadow as raised buttons. Light and dark themes both work.

Each toast now uses the type that matches what happened. The rule is above the helpers in notifications.ts:

  • success: the action you asked for is done (saved, copied)
  • info: nothing changed or there is nothing to do
  • warn: done, but with a problem you must know about
  • error: the action failed or was stopped

Changes to the type:

  • All copy-to-clipboard toasts are success (11 were info)
  • "No update available", "All resources are already imported" and "An MQTT re-sync is already running" are info
  • "Invalid zone tree CSV file" is an error, because the import stops
  • A zone tree import that skips zones is a warning, not a success
  • An empty CSV or TSV upload and an invalid email domain are errors, because they stop what you asked for

Also fixes the text "Command successful executed".

Reviewed with sol-loop: 2 rounds with gpt-6.1-sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

MrYuion and others added 3 commits November 17, 2026 15:41
Each toast has an icon strip and border in its type colour on a tinted
panel, the same as the extensions info block. The soft shadow is now the
solid darker base that raised buttons use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy toasts were a mix of info and success; they are all success now.
"No update available", "already imported" and "re-sync already running"
are info, not error or warn. An invalid zone tree file is an error, and a
zone import that skips zones is a warning. The rule for each type is
in notifications.ts. Also fixes "Command successful executed".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both stop what the user asked for, so they use the error type, not warn.
An empty CSV or TSV file stops the import, like the wrong file type. An
invalid email domain is not added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MrYuion
MrYuion merged commit 4d98c52 into develop Nov 17, 2026
5 checks passed
@MrYuion
MrYuion deleted the fix/toast-styles branch November 17, 2026 05:03
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.

1 participant