[COMPASS-6808] Update @leafygreen-ui/toast to a version >= 6.0 with the toast stack Created: 10/May/23  Updated: 10/Jan/24  Resolved: 16/May/23

Status: Closed
Project: Compass
Component/s: Tech debt, UI / UX
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: leafygreen
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates COMPASS-6829 [Insights] Update @leafygreen-ui/toas... Closed
Related
Epic Link: COMPASS-6441
Story Points: 3
Documentation Changes: Not Needed

 Description   

In the newly released (6.1.2 at the time of writing) leafygreen toast version, the interface has been updated and the styles are better. Support for a toast stack was also added. Updating will improve the toast experience in Compass. Down the line we could also enable multiple import/export operations to run in parallel, but that's separate from this ticket. There's also a hook interface we can use, as well as push/pop/update although we might not need those as we do that already in use-toast (to be investigated in this ticket, might be better to use them as they are how they're planning to be supported in future).

This ticket involves updating our `@leafygreen-ui/toast` dependency in compass-components to a version > 6.
Note: There are some styling overrides marked with TODO(COMPASS-6808) we can remove after updating.

https://github.com/mongodb/leafygreen-ui/blob/main/packages/toast/CHANGELOG.md 

https://www.mongodb.design/component/toast/example/ 


Generated at Wed Feb 07 22:44:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.