[COMPASS-6540] Show toast while an import is in progress Created: 21/Feb/23  Updated: 24/Apr/23  Resolved: 04/Apr/23

Status: Closed
Project: Compass
Component/s: Import/Export
Affects Version/s: None
Fix Version/s: 1.36.4

Type: Task Priority: Major - P3
Reporter: Rhys Howell Assignee: Rhys Howell
Resolution: Done Votes: 0
Labels: import, milestone-2a
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on COMPASS-6539 Prevent import menu item usage while ... Closed
depends on COMPASS-6544 Before showing import progress, surfa... Closed
is depended on by COMPASS-6555 Add import error `Log` file with all ... Closed
is depended on by COMPASS-6580 Add export file output, use new backe... Closed
Documented
Epic Link: COMPASS-5576
Story Points: 5
Documentation Changes: Needed
Documentation Changes Summary:

We've done a number of updates around how import works. This changes import to run in the background with a toast that shows progress.

Sprint: Iteration Whale, Iteration Xantic Sargo, Iteration Yellowtail Amberjack

 Description   

When the final import button in the modal is clicked, show a progress toast. This toast has a cancel button which cancels the import after a confirmation. We can use LeafyGreen toasts with the `useToast` hook in Compass.

  • When errors are encountered change the toast variant to danger and show an error summary for now (log error file later ticket).  
  • On success the toast is updated to a dismissible success variant. https://www.figma.com/file/4sXj42XyicBsdQkYIugHaV?node-id=1136:47939#369373954 
  • Remove the old progress indicator and errors inside of the modal (errors and the progress bar should still used by export so they can't be fully removed from the codebase yet). Now folks see progress in the toast and can view the errors via the log file.

 



 Comments   
Comment by Githook User [ 24/Apr/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: feat(compass-import-export): show import progress in toast, make import background COMPASS-6540 COMPASS-6555 (#4169)
Branch: COMPASS-6530-auto-add-curly-braces
https://github.com/mongodb-js/compass/commit/efde5421cf0d9e4cdcfa637d6f8456c35049eefa

Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: feat(compass-import-export): show import progress in toast, make import background COMPASS-6540 COMPASS-6555 (#4169)
Branch: 1.36-releases
https://github.com/mongodb-js/compass/commit/efde5421cf0d9e4cdcfa637d6f8456c35049eefa

Comment by Githook User [ 06/Apr/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: feat(compass-import-export): show import progress in toast, make import background COMPASS-6540 COMPASS-6555 (#4169)
Branch: export-csv
https://github.com/mongodb-js/compass/commit/efde5421cf0d9e4cdcfa637d6f8456c35049eefa

Comment by Githook User [ 04/Apr/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: feat(compass-import-export): show import progress in toast, make import background COMPASS-6540 COMPASS-6555 (#4169)
Branch: main
https://github.com/mongodb-js/compass/commit/efde5421cf0d9e4cdcfa637d6f8456c35049eefa

Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: Merge branch 'main' into COMPASS-6540-import-toast
Branch: COMPASS-6540-import-toast
https://github.com/mongodb-js/compass/commit/351321583c2dc989a8374c887b32b41c49de2311

Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Rhys Howell', 'email': 'rhysh@live.com', 'username': 'Anemy'}

Message: Merge branch 'main' into COMPASS-6540-import-toast
Branch: COMPASS-6540-import-toast
https://github.com/mongodb-js/compass/commit/f05b3c6fa8531885a181a8e11defb983eaa7bf6e

Comment by Githook User [ 17/Mar/23 ]

Author:

{'name': 'Rhys Howell', 'email': 'rhysh@live.com', 'username': 'Anemy'}

Message: Merge branch 'main' into COMPASS-6540-import-toast
Branch: COMPASS-6540-import-toast
https://github.com/mongodb-js/compass/commit/ca911fbc14a5bec3c3061c4b01ee4aa73f3e77c5

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