Skip to content

feat: folders in connection import/export COMPASS-11310 - #8718

Draft
paula-stacho wants to merge 8 commits into
mainfrom
COMPASS-11310
Draft

paula-stacho wants to merge 8 commits into
mainfrom
COMPASS-11310

Conversation

@paula-stacho

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • If this change could impact the load on the MongoDB cluster, please describe the expected and worst case impact
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@paula-stacho
paula-stacho requested review from KareBearIsBoss8 and a balanced review from Copilot November 20, 2026 18:07
@github-actions github-actions Bot added the feat label Nov 20, 2026
@paula-stacho paula-stacho added the feature flagged PRs labeled with this label will not be included in the release notes of the next release label Nov 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Folder imports use case-sensitive matching, allowing work and Work to coexist and split connections despite the UI’s case-insensitive uniqueness rules.

1 open issue
What changed in this PR

Adds folder support to Compass connection import/export, connecting folder storage with grouped selection in the import and export dialogs.

Changes:

  • Serializes folder assignments and merges imported folders into local storage.
  • Adds reusable grouped selection controls, gated by the connection-folders preference.
  • Adds storage, compatibility, and UI tests.
File Description
packages/​connection-storage/​src/​provider.ts Exposes folder import types and parsing.
packages/​connection-storage/​src/​import-export-folders.ts Adds folder filtering, validation, and merging.
packages/​connection-storage/​src/​import-export-folders.spec.ts Tests folder merging and invalid input.
packages/​connection-storage/​src/​import-export-connection.ts Includes folder metadata in exports.
packages/​connection-storage/​src/​import-export-connection.spec.ts Tests folder exports and format compatibility.
packages/​connection-storage/​src/​compass-main-connection-storage.ts Integrates folder persistence with import/export.
packages/​connection-storage/​src/​compass-main-connection-storage.spec.ts Tests folder round trips and failure handling.
packages/​connection-storage/​package.json Adds the validation dependency.
packages/​compass/​src/​main/​application.ts Wires preference-controlled folder storage.
packages/​compass-connections/​src/​stores/​connections-store-redux.ts Reloads folders after importing connections.
packages/​compass-connection-import-export/​src/​hooks/​use-import-connections.ts Loads folder metadata for import previews.
packages/​compass-connection-import-export/​src/​components/​import-modal.tsx Displays imported connections by folder.
packages/​compass-connection-import-export/​src/​components/​import-modal.spec.tsx Tests grouped and uncategorized imports.
packages/​compass-connection-import-export/​src/​components/​group-by-folder.tsx Shares folder grouping and sorting logic.
packages/​compass-connection-import-export/​src/​components/​export-modal.tsx Displays export selections by folder.
packages/​compass-connection-import-export/​src/​components/​export-modal.spec.tsx Tests grouping order and disabled-feature behavior.
packages/​compass-components/​src/​index.ts Exposes grouped selection components and types.
packages/​compass-components/​src/​components/​select-list.tsx Exposes shared selection styles and types.
packages/​compass-components/​src/​components/​select-list-with-groups.tsx Adds grouped selection controls and counts.
packages/​compass-components/​src/​components/​select-list-with-groups.spec.tsx Tests selection states and interactions.
package-lock.json Records the validation dependency.

Review effort: Balanced

if (!importedFolder) {
continue;
}
let folder = folders.find(({ name }) => name === importedFolder.name);

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat feature flagged PRs labeled with this label will not be included in the release notes of the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants