Skip to content

Fix: align and fix toasts - #937

Merged
timbastin merged 4 commits into
mainfrom
fix/align-toasts
Sep 16, 2026
Merged

timbastin merged 4 commits into
mainfrom
fix/align-toasts

Conversation

@Ph4t3

@Ph4t3 Ph4t3 commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

Closes l3montree-dev/devguard#3026

Toasts on multiple pages did not work due to direct import from sonner instead of lib/toast.
All these were fixed and tested to work properly now.
ExternalOrgAdminCard-toast-fixed
For example some components on the org dashboard now actually display their toasts correctly like this.
default-ory-light-theme-toast
In user settings, this also led to Ory overwriting the toast in it's own default style, making it display always in light mode and on the bottom right of the screen.

To make the toast messages more consistent, and also specific to the individual action that made them display, a new helper justificationValidator.ts was introduced instead of copying the same logic into every single component.

Toasts now specify if a comment or justification is missing for a comment, mitigation decision or ticket creation.

To-do:
Fixes for new lint rules

@Ph4t3
Ph4t3 marked this pull request as draft September 8, 2026 16:22
@Ph4t3
Ph4t3 marked this pull request as ready for review September 8, 2026 19:59
@timbastin
timbastin merged commit f0f8cf6 into main Sep 16, 2026
33 checks passed
@timbastin
timbastin deleted the fix/align-toasts branch September 16, 2026 07:26
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.

Missing and inconsistent toasts

2 participants