Update analysis to show the work happening and reroute aborted analysis to the diagram list

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Data Modeling
    • None
    • 3
    • Iteration B (May 5 - May 16)
    • None
    • Developer Tools

      We update the action handling for the `ANALYSIS_CANCELED` action that happens when a user cancels the analysis[ |https://github.com/mongodb-js/compass/blob/d661a15f39a4bbcf037cb9841cbb1fb6a9d0a972/packages/compass-data-modeling/src/store/analysis-process.ts#L210]to move the state to the `NO_DIAGRAM_SELECTED` state. This means when they cancel an inflight analysis they go back to the diagram list. 

      We surface the progress of the analysis to the user. We have progress events when each collection has completed sampling and then when the schema analysis completes. Using that progress we render a progress bar. This has a bar with the % of completion. There isn’t a leafygreen component for this so we build our own. We already have `samplesFetched` and `schemasAnalyzed` in the analysis state, we use those for computing the percentage of completion.

      Designs are here, it's probably good to sync with ben.radcliffe@mongodb.com on them though:
      https://www.figma.com/design/nz84lFaVMLqq9ih4ZJtuP6/Data-modeling-viz-tool?node-id=1782-24044&t=NBq9enXiCVW5HjEA-1 
      They link to the new leafygreen one (no leafygreen component is available).

      For some additional context, see DS Project Scope Doc: Progress Bar on LeafyGreen’s progress bar (it will not be available by the time this project is complete).

            Assignee:
            Rhys Howell
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: