Skip to content

Commit 2a67c88

Browse files
authored
Merge branch 'main' into COMPASS-8395-e2e-compass-web-gen-ai
2 parents 8cba711 + 3a72383 commit 2a67c88

File tree

144 files changed

+4856
-8085
lines changed

Some content is hidden

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

144 files changed

+4856
-8085
lines changed

.github/workflows/authors-and-third-party-notices.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ jobs:
6868
6969
- name: Commit and push
7070
run: |
71-
git commit --no-allow-empty -m "chore: update AUTHORS, THIRD-PARTY-NOTICES, Security Test Summary [skip actions]" || true
71+
git commit --no-allow-empty -m "chore: update AUTHORS, THIRD-PARTY-NOTICES, Security Test Summary" || true
7272
git push

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,4 @@ Ruchitha Rajaghatta <[email protected]>
9595
9696
Nikola Irinchev <[email protected]>
9797
djechlin-mongodb <[email protected]>
98+
Dylan Richardson <[email protected]>

THIRD-PARTY-NOTICES.md

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

docs/tracking-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Compass Tracking Plan
33

4-
Generated on Mon, Dec 9, 2024 at 03:11 PM
4+
Generated on Fri, Dec 13, 2024 at 07:24 PM
55

66
## Table of Contents
77

package-lock.json

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

packages/atlas-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
"@mongodb-js/compass-user-data": "^0.3.12",
8080
"@mongodb-js/compass-utils": "^0.6.16",
8181
"@mongodb-js/connection-info": "^0.9.5",
82-
"@mongodb-js/devtools-connect": "^3.3.3",
83-
"@mongodb-js/devtools-proxy-support": "^0.4.1",
82+
"@mongodb-js/devtools-connect": "^3.3.4",
83+
"@mongodb-js/devtools-proxy-support": "^0.4.2",
8484
"@mongodb-js/oidc-plugin": "^1.1.5",
8585
"hadron-app-registry": "^9.2.8",
8686
"compass-preferences-model": "^2.31.1",

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.6.6",
8585
"hadron-type-checker": "^7.2.4",
8686
"lodash": "^4.17.21",
87-
"mongodb": "^6.11.0",
87+
"mongodb": "^6.12.0",
8888
"mongodb-collection-model": "^5.23.9",
8989
"mongodb-data-service": "^22.23.9",
9090
"mongodb-database-model": "^2.23.9",

packages/compass-aggregations/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/sortable-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const SortableItem = ({ id, index, type }: SortableItemProps) => {
5858
const style = {
5959
transform: cssDndKit.Transform.toString(transform),
6060
transition,
61-
zIndex: isDragging ? 1 : 0,
61+
...(isDragging ? { zIndex: 1 } : {}),
6262
};
6363

6464
const sortableProps: SortableProps = {

packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,34 @@ import { filterStageOperators } from '../../utils/stage';
1717
import { isAtlasOnly } from '../../utils/stage';
1818
import type { ServerEnvironment } from '../../modules/env';
1919

20-
const inputWidth = spacing[7] * 2;
20+
const inputWidth = spacing[1400] * 3;
21+
const inputHeight = spacing[600] - 2; // match other xs controls
22+
// width of options popover
23+
const comboxboxOptionsWidth = spacing[1200] * 10;
24+
// left position of options popover wrt input. this aligns it with the start of input
25+
const comboboxOptionsLeft = (comboxboxOptionsWidth - inputWidth) / 2;
2126

22-
const inputHeight = spacing[4] - 2; // match other xs controls
2327
const comboboxStyles = css({
2428
width: inputWidth,
2529
'& [role="combobox"]': {
2630
padding: 0,
27-
paddingLeft: spacing[1],
31+
paddingLeft: spacing[100],
2832
height: inputHeight,
2933
'& > div': {
3034
minHeight: inputHeight,
3135
},
32-
'& input': {
33-
height: inputHeight - 2,
34-
},
36+
},
37+
});
38+
39+
const comboboxPortalStyles = css({
40+
position: 'fixed',
41+
top: 0,
42+
// -4px to count for the input focus outline.
43+
left: `${comboboxOptionsLeft - 4}px`,
44+
zIndex: 1,
45+
'> div': {
46+
width: comboxboxOptionsWidth,
47+
whiteSpace: 'normal',
3548
},
3649
});
3750

@@ -61,32 +74,35 @@ export const StageOperatorSelect = ({
6174
},
6275
[onChange, index]
6376
);
77+
const portalRef = React.useRef<HTMLDivElement | null>(null);
6478

6579
return (
66-
<Combobox
67-
value={selectedStage}
68-
disabled={isDisabled}
69-
aria-label="Select a stage operator"
70-
onChange={onStageOperatorSelected}
71-
size="default"
72-
clearable={false}
73-
data-testid="stage-operator-combobox"
74-
className={comboboxStyles}
75-
// Used for testing to access the popover for a stage
76-
popoverClassName={`mongodb-compass-stage-operator-combobox-${index}`}
77-
>
78-
{stages.map((stage, index) => (
79-
<ComboboxOption
80-
data-testid={`combobox-option-stage-${stage.name}`}
81-
key={`combobox-option-stage-${index}`}
82-
value={stage.name}
83-
displayName={stage.name}
84-
description={
85-
(isAtlasOnly(stage.env) ? 'Atlas only. ' : '') + stage.description
86-
}
87-
/>
88-
))}
89-
</Combobox>
80+
<React.Fragment>
81+
<div className={comboboxPortalStyles} ref={portalRef} />
82+
<Combobox
83+
value={selectedStage}
84+
disabled={isDisabled}
85+
aria-label="Select a stage operator"
86+
onChange={onStageOperatorSelected}
87+
size="default"
88+
clearable={false}
89+
data-testid="stage-operator-combobox"
90+
className={comboboxStyles}
91+
portalContainer={portalRef.current}
92+
usePortal
93+
>
94+
{stages.map((stage, index) => (
95+
<ComboboxOption
96+
data-testid={`combobox-option-stage-${stage.name}`}
97+
key={`combobox-option-stage-${index}`}
98+
value={stage.name}
99+
description={
100+
(isAtlasOnly(stage.env) ? 'Atlas only. ' : '') + stage.description
101+
}
102+
/>
103+
))}
104+
</Combobox>
105+
</React.Fragment>
90106
);
91107
};
92108

packages/compass-components/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,15 @@
4040
"@leafygreen-ui/card": "^10.0.6",
4141
"@leafygreen-ui/checkbox": "^12.1.1",
4242
"@leafygreen-ui/code": "^14.3.1",
43+
"@leafygreen-ui/combobox": "^9.1.6",
4344
"@leafygreen-ui/confirmation-modal": "^5.2.0",
4445
"@leafygreen-ui/emotion": "^4.0.7",
4546
"@leafygreen-ui/guide-cue": "^5.0.6",
4647
"@leafygreen-ui/hooks": "^8.1.2",
4748
"@leafygreen-ui/icon": "^12.0.0",
4849
"@leafygreen-ui/icon-button": "^15.0.20",
4950
"@leafygreen-ui/info-sprinkle": "^1.0.3",
50-
"@leafygreen-ui/inline-definition": "^6.0.14",
5151
"@leafygreen-ui/leafygreen-provider": "^3.1.12",
52-
"@leafygreen-ui/lib": "^13.2.1",
5352
"@leafygreen-ui/logo": "^9.1.1",
5453
"@leafygreen-ui/marketing-modal": "^4.2.1",
5554
"@leafygreen-ui/menu": "^23.0.2",
@@ -84,7 +83,6 @@
8483
"is-electron-renderer": "^2.0.1",
8584
"lodash": "^4.17.21",
8685
"polished": "^4.2.2",
87-
"prop-types": "^15.7.2",
8886
"react": "^17.0.2",
8987
"react-hotkeys-hook": "^4.3.7",
9088
"react-intersection-observer": "^8.34.0",

0 commit comments

Comments
 (0)