Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6540

Show toast while an import is in progress

    XMLWordPrintableJSON

Details

    • 5
    • Needed
    • Hide

      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.

      Show
      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.
    • 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.

       

      Attachments

        Activity

          People

            rhys.howell@mongodb.com Rhys Howell
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: