-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 💡 remove rose::notification in favor of hds #2557
base: main
Are you sure you want to change the base?
refactor: 💡 remove rose::notification in favor of hds #2557
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…omponent' of https://github.com/hashicorp/boundary-ui into ICU-15634-use-hds-alert-in-place-of-rose-notification-component
@@ -0,0 +1,21 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a simple helper made to map the flash message type to hds toast color. Let me know if y'all have a better suggestion.
cursor: pointer; | ||
float: right; | ||
} | ||
width: 360px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hds toast size is 360px.
Also this file was using only pixels. Should this be refactored to use rem instead ?
@@ -128,21 +128,18 @@ | |||
</Rose::Layout::Global> | |||
|
|||
{{#if this.flashMessages.queue}} | |||
<div class='ember-notify-cn ember-notify-default'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some of the class names in these divs were not being used so i removed them. Let me know if they had a purpose.
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15634
Description
Replace the rose notification component used by flashMessages service with Hds::Toast.
Hds::Toast guidelines specify placement of toast to be bottom right.
Admin UI:
success toast
Screen.Recording.2024-11-12.at.3.36.53.PM.mov
error toast
Screen.Recording.2024-11-12.at.3.37.24.PM.mov
authentication-complete & authentication-error hds alerts
Screen.Recording.2024-11-12.at.3.38.04.PM.mov
Desktop UI:
toast
Screen.Recording.2024-11-12.at.3.43.14.PM.mov
Screenshots (if appropriate)
How to Test
Checklist