[COMPASS-5474] Show connection saving error as a toast instead of on connections page Created: 31/Jan/22  Updated: 15/Feb/22  Resolved: 10/Feb/22

Status: Closed
Project: Compass
Component/s: UI / UX
Affects Version/s: None
Fix Version/s: 1.31.0

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Maurizio Casimirri
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from COMPASS-5259 Add leafygreen global toast Closed
Epic Link: COMPASS-4948
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Utica

 Description   

Currently we show any errors that occur when saving a connection on the main view of the connections page. We should instead show a toast when errors like this occur. These errors can occur while a user has just successfully connected, so they should be at a higher level than the connections as that component unmounts after connecting.

It could use a bit more investigation, but this could probably be done with a react context in compass-components that parts of Compass can use for showing toasts. compass-home would then be the part that gives the provider for this context and renders the toast that uses it.
Currently the only leafygreen toast we show is when a user copies a connection string. Let's also move this toast to this new toast provider.


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