Skip to content

Commit e9a982d

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 5a5f861 + d73838c commit e9a982d

File tree

40 files changed

+64
-58
lines changed

40 files changed

+64
-58
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-collection/src/components/collection-header-actions/collection-header-actions.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ const CollectionHeaderActions: React.FunctionComponent<
5858
const {
5959
readOnly: preferencesReadOnly,
6060
enableShell,
61-
enableNewMultipleConnectionSystem,
61+
enableMultipleConnectionSystem,
6262
} = usePreferences([
6363
'readOnly',
6464
'enableShell',
65-
'enableNewMultipleConnectionSystem',
65+
'enableMultipleConnectionSystem',
6666
]);
6767
const track = useTelemetry();
6868

6969
const { database, collection } = toNS(namespace);
7070

71-
const showOpenShellButton = enableShell && enableNewMultipleConnectionSystem;
71+
const showOpenShellButton = enableShell && enableMultipleConnectionSystem;
7272

7373
return (
7474
<div

packages/compass-connection-import-export/src/components/import-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function ImportConnectionsModal({
3939
trackingProps?: Record<string, unknown>;
4040
}): React.ReactElement {
4141
const multipleConnectionsEnabled = usePreference(
42-
'enableNewMultipleConnectionSystem'
42+
'enableMultipleConnectionSystem'
4343
);
4444
const { openToast } = useToast('compass-connection-import-export');
4545
const finish = useCallback(

packages/compass-connection-import-export/src/hooks/use-export-connections.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe('useExportConnections', function () {
276276
beforeEach(async function () {
277277
const preferences = await createSandboxFromDefaultPreferences();
278278
await preferences.savePreferences({
279-
enableNewMultipleConnectionSystem: true,
279+
enableMultipleConnectionSystem: true,
280280
});
281281
const wrapper: React.FC = ({ children }) =>
282282
createElement(PreferencesProvider, {

packages/compass-connection-import-export/src/hooks/use-export-connections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function useExportConnections({
5656
state: ExportConnectionsState;
5757
} {
5858
const multipleConnectionsEnabled = usePreference(
59-
'enableNewMultipleConnectionSystem'
59+
'enableMultipleConnectionSystem'
6060
);
6161
const { favoriteConnections, nonFavoriteConnections } =
6262
useConnectionRepository();

packages/compass-connection-import-export/src/hooks/use-import-connections.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ describe('useImportConnections', function () {
345345
beforeEach(async function () {
346346
const preferences = await createSandboxFromDefaultPreferences();
347347
await preferences.savePreferences({
348-
enableNewMultipleConnectionSystem: true,
348+
enableMultipleConnectionSystem: true,
349349
});
350350
const wrapper: React.FC = ({ children }) =>
351351
React.createElement(PreferencesProvider, {

packages/compass-connection-import-export/src/hooks/use-import-connections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function useImportConnections({
101101
state: ImportConnectionsState;
102102
} {
103103
const multipleConnectionsEnabled = usePreference(
104-
'enableNewMultipleConnectionSystem'
104+
'enableMultipleConnectionSystem'
105105
);
106106
const { favoriteConnections, nonFavoriteConnections } =
107107
useConnectionRepository();

packages/compass-connections-navigation/src/connections-navigation-tree.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('ConnectionsNavigationTree', function () {
140140
preferences = await createSandboxFromDefaultPreferences();
141141
await preferences.savePreferences({
142142
enableRenameCollectionModal: true,
143-
enableNewMultipleConnectionSystem: true,
143+
enableMultipleConnectionSystem: true,
144144
...preferencesOverrides,
145145
});
146146
return render(
@@ -659,7 +659,7 @@ describe('ConnectionsNavigationTree', function () {
659659
preferences = await createSandboxFromDefaultPreferences();
660660
await preferences.savePreferences({
661661
enableRenameCollectionModal: true,
662-
enableNewMultipleConnectionSystem: true,
662+
enableMultipleConnectionSystem: true,
663663
});
664664
});
665665

packages/compass-connections-navigation/src/connections-navigation-tree.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ const ConnectionsNavigationTree: React.FunctionComponent<
6060
}) => {
6161
const preferencesShellEnabled = usePreference('enableShell');
6262
const preferencesReadOnly = usePreference('readOnly');
63-
const isSingleConnection = !usePreference(
64-
'enableNewMultipleConnectionSystem'
65-
);
63+
const isSingleConnection = !usePreference('enableMultipleConnectionSystem');
6664
const isRenameCollectionEnabled = usePreference(
6765
'enableRenameCollectionModal'
6866
);

packages/compass-connections-navigation/src/placeholder.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export const PlaceholderItem: React.FunctionComponent<{
2323
level: number;
2424
style?: CSSProperties;
2525
}> = ({ level, style }) => {
26-
const isSingleConnection = !usePreference(
27-
'enableNewMultipleConnectionSystem'
28-
);
26+
const isSingleConnection = !usePreference('enableMultipleConnectionSystem');
2927
const itemPaddingStyles = useMemo(
3028
() => getTreeItemStyles({ level, isExpandable: false }),
3129
[level]

0 commit comments

Comments
 (0)