[COMPASS-5268] Show connectivity errors in the connect form Created: 08/Nov/21  Updated: 29/Oct/23  Resolved: 17/Jan/22

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Leonardo Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-5067 Use ConnectionStorage to load connect... Closed
Related
is related to COMPASS-5313 Show connection form error in the UI Closed
Epic Link: COMPASS-4948
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Phnom Penh, Iteration Q, Iteration Reno, Iteration Seoul

 Description   

This ticket involves showing any error received when connecting in the connection form. It can be a dismissible leafygreen-ui banner (wrapped in `compass-components`: https://www.mongodb.design/component/banner/example/ ).
When the underlying connection changes, like a user clicking another connection in the connection sidebar, we should hide the error message.
We should also disable the `Connect` button while a connection attempt is in progress and after a successful connection occurs and we have not yet changed screens to the main compass ui.

Errors not coming from the server should be validated according to:
https://docs.google.com/spreadsheets/d/14jRnz50BzqxS7MSPXyCWjU_CqMm3U6M2AhJlpvgPFDk/edit#gid=0



 Comments   
Comment by Githook User [ 18/Jan/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: feat(connections): adds form validation errors utility COMPASS-5268 (#2639)

Adds form validation errors utility functions

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: COMPASS-5232-tls-tab-options
https://github.com/mongodb-js/compass/commit/041086f3df099637d84947a58a73266e896521f8

Comment by Githook User [ 18/Jan/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: feat(connections): adds form validation errors utility COMPASS-5268 (#2639)

Adds form validation errors utility functions

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: port-to-wdio
https://github.com/mongodb-js/compass/commit/041086f3df099637d84947a58a73266e896521f8

Comment by Githook User [ 17/Jan/22 ]

Author:

{'name': 'Leonardo Rossi', 'email': 'leonardo.rossi@gmail.com', 'username': 'leorossi'}

Message: feat(connections): adds form validation errors utility COMPASS-5268 (#2639)

Adds form validation errors utility functions

Co-authored-by: mcasimir <maurizio.cas@gmail.com>
Branch: main
https://github.com/mongodb-js/compass/commit/041086f3df099637d84947a58a73266e896521f8

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