Add document list and actions to the data browser

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Developer Tools

      When the data browsing webview is opened, run a find to fetch documents from the collection. This should have a cancel button and use abort controllers to cancel the operation. Add pagination actions, the refresh button, and show the pagination document count. When the webview is closed, cancel any ongoing operations. Ensure we surface errors to the users. 

      We'll also want a zero state (no documents).

      Let's use redux for state management. The data-modeling store in Compass is a good place to follow for patterns (without Compass specific parts): https://github.com/mongodb-js/compass/blob/main/packages/compass-data-modeling/src/store/index.ts 

      Designs:

      https://www.figma.com/design/QE0mDJK9hlbPK9shnQCIbG/VS-CODE--DATA-BROWSING?node-id=1749-175007&t=FgOGFa4NEDo4prqy-4 

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

              Created:
              Updated: