Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lisbet-alvarez
Copy link
Collaborator

@lisbet-alvarez lisbet-alvarez commented Nov 12, 2024

✅ 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

  1. Test all cases outlined in provided screen recordings.

Checklist

  • I have added before and after screenshots for UI changes
  • I have added JSON response output for API changes
  • I have added steps to reproduce and test for bug fixes in the description
  • I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boundary-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:56pm
boundary-ui-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 11:56pm

@@ -0,0 +1,21 @@
/**
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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'>
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant