Skip to content

Commit ba4b6f0

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 7a6eb4d + 0ff925d commit ba4b6f0

File tree

82 files changed

+4892
-1716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+4892
-1716
lines changed

THIRD-PARTY-NOTICES.md

Lines changed: 1736 additions & 192 deletions
Large diffs are not rendered by default.

configs/webpack-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
7070
"babel-loader": "^8.2.5",
7171
"babel-plugin-istanbul": "^5.2.0",
72-
"browserslist": "^4.23.2",
72+
"browserslist": "^4.23.3",
7373
"chalk": "^4.1.2",
7474
"cli-progress": "^3.9.1",
7575
"core-js": "^3.17.3",

package-lock.json

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

packages/compass-aggregations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"hadron-document": "^8.5.6",
8585
"hadron-type-checker": "^7.2.2",
8686
"lodash": "^4.17.21",
87-
"mongodb": "^6.7.0",
87+
"mongodb": "^6.8.0",
8888
"mongodb-collection-model": "^5.22.2",
8989
"mongodb-data-service": "^22.22.2",
9090
"mongodb-database-model": "^2.22.2",

packages/compass-collection/src/stores/collection-tab.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ export function activatePlugin(
8989
}
9090
});
9191

92+
on(localAppRegistry, 'refresh-collection-stats', () => {
93+
void collectionModel.fetch({ dataService, force: true });
94+
});
95+
9296
void collectionModel.fetchMetadata({ dataService }).then((metadata) => {
9397
store.dispatch(collectionMetadataFetched(metadata));
9498
});

packages/compass-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@leafygreen-ui/card": "^10.0.6",
4141
"@leafygreen-ui/checkbox": "^12.1.1",
4242
"@leafygreen-ui/code": "^14.3.1",
43-
"@leafygreen-ui/confirmation-modal": "^5.0.11",
43+
"@leafygreen-ui/confirmation-modal": "^5.2.0",
4444
"@leafygreen-ui/emotion": "^4.0.7",
4545
"@leafygreen-ui/guide-cue": "^5.0.6",
4646
"@leafygreen-ui/hooks": "^8.1.2",

packages/compass-components/src/components/resizeable-sidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useCallback, useState } from 'react';
22

33
import { palette } from '@leafygreen-ui/palette';
4-
import { spacing } from '@leafygreen-ui/tokens';
54
import { css, cx } from '@leafygreen-ui/emotion';
65
import { useDarkMode } from '../hooks/use-theme';
76
import { ResizeDirection, ResizeHandle } from './resize-handle';
@@ -55,7 +54,7 @@ const containerStylesLight = css({
5554
backgroundColor: 'var(--bg-color)',
5655
});
5756

58-
export const defaultSidebarWidth = spacing[6] * 4;
57+
export const defaultSidebarWidth = 300;
5958

6059
const ResizableSidebar = ({
6160
initialWidth = defaultSidebarWidth,

packages/compass-components/src/hooks/use-confirmation.tsx

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import React, { useContext, useEffect, useRef, useState } from 'react';
22
import { Variant as ConfirmationModalVariant } from '@leafygreen-ui/confirmation-modal';
33
import ConfirmationModal from '../components/modals/confirmation-modal';
4+
import { css } from '@leafygreen-ui/emotion';
45

56
export { ConfirmationModalVariant };
67

78
type ConfirmationModalProps = React.ComponentProps<typeof ConfirmationModal>;
89

910
type ConfirmationProperties = Partial<
10-
Pick<
11-
ConfirmationModalProps,
12-
'title' | 'buttonText' | 'variant' | 'requiredInputText'
13-
>
11+
Pick<ConfirmationModalProps, 'title' | 'variant' | 'requiredInputText'>
1412
> & {
13+
buttonText?: React.ReactNode;
14+
cancelButtonText?: React.ReactNode;
15+
hideConfirmButton?: boolean;
16+
hideCancelButton?: boolean;
1517
description?: React.ReactNode;
1618
signal?: AbortSignal;
1719
'data-testid'?: string;
@@ -85,6 +87,10 @@ type ConfirmationModalAreaProps = Partial<
8587
ShowConfirmationEventDetail['props']
8688
> & { open: boolean };
8789

90+
const hideButtonStyles = css({
91+
display: 'none !important',
92+
});
93+
8894
export const ConfirmationModalArea: React.FC = ({ children }) => {
8995
const hasParentContext = useContext(ConfirmationModalContext).isMounted;
9096

@@ -159,10 +165,21 @@ export const ConfirmationModalArea: React.FC = ({ children }) => {
159165
open={confirmationProps.open}
160166
title={confirmationProps.title ?? 'Are you sure?'}
161167
variant={confirmationProps.variant ?? ConfirmationModalVariant.Default}
162-
buttonText={confirmationProps.buttonText ?? 'Confirm'}
168+
confirmButtonProps={{
169+
className: confirmationProps.hideConfirmButton
170+
? hideButtonStyles
171+
: undefined,
172+
children: confirmationProps.buttonText ?? 'Confirm',
173+
onClick: handleConfirm,
174+
}}
175+
cancelButtonProps={{
176+
className: confirmationProps.hideCancelButton
177+
? hideButtonStyles
178+
: undefined,
179+
children: confirmationProps.cancelButtonText ?? 'Cancel',
180+
onClick: handleCancel,
181+
}}
163182
requiredInputText={confirmationProps.requiredInputText ?? undefined}
164-
onConfirm={handleConfirm}
165-
onCancel={handleCancel}
166183
>
167184
{confirmationProps.description}
168185
</ConfirmationModal>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Passphrase } from './passphrase';
1212
import { SelectTable } from './select-table';
1313
import type { ImportExportResult } from '../hooks/common';
1414
import { useOpenModalThroughIpc } from '../hooks/common';
15-
import { useExportConnections } from '../hooks/use-export';
15+
import { useExportConnections } from '../hooks/use-export-connections';
1616
import { usePreference } from 'compass-preferences-model/provider';
1717

1818
const TOAST_TIMEOUT_MS = 5000;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Passphrase } from './passphrase';
1313
import { SelectTable } from './select-table';
1414
import type { ImportExportResult } from '../hooks/common';
1515
import { useOpenModalThroughIpc } from '../hooks/common';
16-
import { useImportConnections } from '../hooks/use-import';
16+
import { useImportConnections } from '../hooks/use-import-connections';
1717
import { usePreference } from 'compass-preferences-model/provider';
1818

1919
const TOAST_TIMEOUT_MS = 5000;

0 commit comments

Comments
 (0)