Skip to content

Commit 6278c3e

Browse files
committed
COMPASS-9674: merge
2 parents e190a5b + 7f8d06c commit 6278c3e

File tree

193 files changed

+7139
-4711
lines changed

Some content is hidden

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

193 files changed

+7139
-4711
lines changed

.evergreen/start-docker-envs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ "$HAS_DOCKER" = true ]; then
3939
LOGS_DIR="$SCRIPT_DIR/logs"
4040
mkdir -p "$LOGS_DIR"
4141

42-
git clone -b v1.3.2 --single-branch https://github.com/mongodb-js/devtools-docker-test-envs.git test-envs
42+
git clone -b v1.3.4 --single-branch https://github.com/mongodb-js/devtools-docker-test-envs.git test-envs
4343
$DOCKER_COMPOSE -f test-envs/docker/enterprise/docker-compose.yaml up -d
4444
$DOCKER_COMPOSE -f test-envs/docker/ldap/docker-compose.yaml up -d
4545
$DOCKER_COMPOSE -f test-envs/docker/scram/docker-compose.yaml up -d

.snyk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ ignore:
77
reason: >-
88
Not applicable as we do not use a valueFormatter or cellRenderer
99
function
10-
expires: 2025-09-17T13:05:57.065Z
1110
created: 2024-01-18T18:27:24.353Z
1211
SNYK-JS-AGGRIDCOMMUNITY-7414157:
1312
- '*':
1413
reason: >-
1514
Not applicable as we don't use ag-grid utils and the library never
1615
passes user input directly to the merge function
17-
expires: 2025-09-17T13:05:57.065Z
1816
created: 2024-09-17T13:05:57.071Z
1917
SNYK-JS-ELECTRON-8642944:
2018
- '*':

THIRD-PARTY-NOTICES.md

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

configs/testing-library-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"email": "[email protected]"
1212
},
1313
"homepage": "https://github.com/mongodb-js/compass",
14-
"version": "1.3.13",
14+
"version": "1.3.14",
1515
"repository": {
1616
"type": "git",
1717
"url": "https://github.com/mongodb-js/compass.git"

configs/testing-library-compass/src/index.tsx

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,29 @@ function createWrapper(
400400
return { wrapperState, wrapper };
401401
}
402402

403-
export type RenderConnectionsOptions = RenderOptions & TestConnectionsOptions;
403+
/**
404+
* Returns a new {@link RenderResult} with the {@link RenderResult.container} replaced by the container inserted by the context menu provider.
405+
*/
406+
function unwrapContextMenuContainer(result: RenderResult) {
407+
const { container, ...rest } = result;
408+
const { firstChild } = container;
409+
if (
410+
firstChild instanceof HTMLElement &&
411+
firstChild.getAttribute('data-testid') === 'context-menu-children-container'
412+
) {
413+
return { container: firstChild, ...rest };
414+
} else {
415+
return { container, ...rest };
416+
}
417+
}
418+
419+
export type RenderConnectionsOptions = RenderOptions &
420+
TestConnectionsOptions & {
421+
/**
422+
* Whether to include the context menu container and menu in the container of the returned result.
423+
*/
424+
includeContextMenu?: boolean;
425+
};
404426

405427
export type RenderWithConnectionsResult = ReturnType<
406428
typeof createWrapper
@@ -415,6 +437,7 @@ function renderWithConnections(
415437
baseElement,
416438
queries,
417439
hydrate,
440+
includeContextMenu = false,
418441
...connectionsOptions
419442
}: RenderConnectionsOptions = {}
420443
): RenderWithConnectionsResult {
@@ -443,7 +466,10 @@ function renderWithConnections(
443466
true,
444467
'Expected initial connections to load before rendering rest of the tested UI, but it did not happen'
445468
);
446-
return { ...wrapperState, ...result };
469+
return {
470+
...wrapperState,
471+
...(includeContextMenu ? result : unwrapContextMenuContainer(result)),
472+
};
447473
}
448474

449475
export type RenderHookConnectionsOptions<HookProps> = Omit<

configs/webpack-config-compass/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"email": "[email protected]"
1414
},
1515
"homepage": "https://github.com/mongodb-js/compass",
16-
"version": "1.10.3",
16+
"version": "1.10.4",
1717
"repository": {
1818
"type": "git",
1919
"url": "https://github.com/mongodb-js/compass.git"
@@ -66,12 +66,12 @@
6666
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
6767
"babel-loader": "^8.2.5",
6868
"babel-plugin-istanbul": "^5.2.0",
69-
"browserslist": "^4.25.3",
69+
"browserslist": "^4.26.2",
7070
"chalk": "^4.1.2",
7171
"cli-progress": "^3.9.1",
7272
"core-js": "^3.17.3",
7373
"css-loader": "^4.3.0",
74-
"electron": "^37.4.0",
74+
"electron": "^37.5.1",
7575
"html-webpack-plugin": "^5.6.0",
7676
"less": "^3.13.1",
7777
"less-loader": "^10.0.1",

docs/tracking-plan.md

Lines changed: 95 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> the tracking plan for the specific Compass version you can use the following
77
> URL: `https://github.com/mongodb-js/compass/blob/<compass version>/docs/tracking-plan.md`
88
9-
Generated on Tue, Sep 16, 2025
9+
Generated on Fri, Sep 19, 2025
1010

1111
## Table of Contents
1212

@@ -84,8 +84,14 @@ Generated on Tue, Sep 16, 2025
8484

8585
### Data Modeling
8686

87+
- [Data Modeling Collection Added](#event--DataModelingDiagramCollectionAdded)
88+
- [Data Modeling Collection Removed](#event--DataModelingDiagramCollectionRemoved)
89+
- [Data Modeling Collection Renamed](#event--DataModelingDiagramCollectionRenamed)
8790
- [Data Modeling Diagram Created](#event--DataModelingDiagramCreated)
8891
- [Data Modeling Diagram Exported](#event--DataModelingDiagramExported)
92+
- [Data Modeling Field Removed](#event--DataModelingDiagramFieldRemoved)
93+
- [Data Modeling Field Renamed](#event--DataModelingDiagramFieldRenamed)
94+
- [Data Modeling Field Type Changed](#event--DataModelingDiagramFieldTypeChanged)
8995
- [Data Modeling Diagram Imported](#event--DataModelingDiagramImported)
9096
- [Data Modeling Relationship Added](#event--DataModelingDiagramRelationshipAdded)
9197
- [Data Modeling Relationship Form Opened](#event--DataModelingDiagramRelationshipEdited)
@@ -131,6 +137,7 @@ Generated on Tue, Sep 16, 2025
131137
- [Assistant Prompt Submitted](#event--AssistantPromptSubmittedEvent)
132138
- [Assistant Response Failed](#event--AssistantResponseFailedEvent)
133139
- [Assistant Entry Point Used](#event--AssistantEntryPointUsedEvent)
140+
- [Assistant Confirmation Submitted](#event--AssistantConfirmationSubmittedEvent)
134141
- [AI Opt In Modal Shown](#event--AiOptInModalShownEvent)
135142
- [AI Opt In Modal Dismissed](#event--AiOptInModalDismissedEvent)
136143
- [AI Generate Query Clicked](#event--AiGenerateQueryClickedEvent)
@@ -631,6 +638,7 @@ This event is fired when a user submits feedback for the assistant.
631638
- **feedback** (required): `"positive" | "negative"`
632639
- **text** (optional): `string | undefined`
633640
- **request_id** (required): `string | null`
641+
- **source** (required): `"explain plan" | "performance insights" | "connection error" | "chat response"`
634642
- **is_compass_web** (optional): `true | undefined`
635643

636644
## Atlas
@@ -1041,6 +1049,39 @@ This event is fired when a context menu item is clicked.
10411049

10421050
## Data Modeling
10431051

1052+
<a name="event--DataModelingDiagramCollectionAdded"></a>
1053+
1054+
### Data Modeling Collection Added
1055+
1056+
This event is fired when user adds a collection in a data modeling diagram.
1057+
1058+
**Properties**:
1059+
1060+
- **source** (required): `"toolbar"`
1061+
- **is_compass_web** (optional): `true | undefined`
1062+
1063+
<a name="event--DataModelingDiagramCollectionRemoved"></a>
1064+
1065+
### Data Modeling Collection Removed
1066+
1067+
This event is fired when user removes a collection in a data modeling diagram.
1068+
1069+
**Properties**:
1070+
1071+
- **source** (required): `"side_panel"`
1072+
- **is_compass_web** (optional): `true | undefined`
1073+
1074+
<a name="event--DataModelingDiagramCollectionRenamed"></a>
1075+
1076+
### Data Modeling Collection Renamed
1077+
1078+
This event is fired when user renames a collection in a data modeling diagram.
1079+
1080+
**Properties**:
1081+
1082+
- **source** (required): `"side_panel"`
1083+
- **is_compass_web** (optional): `true | undefined`
1084+
10441085
<a name="event--DataModelingDiagramCreated"></a>
10451086

10461087
### Data Modeling Diagram Created
@@ -1060,7 +1101,42 @@ This event is fired when user exports data modeling diagram.
10601101

10611102
**Properties**:
10621103

1063-
- **format** (required): `"json" | "png" | "diagram"`
1104+
- **format** (required): `"png" | "json" | "diagram"`
1105+
- **is_compass_web** (optional): `true | undefined`
1106+
1107+
<a name="event--DataModelingDiagramFieldRemoved"></a>
1108+
1109+
### Data Modeling Field Removed
1110+
1111+
This event is fired when user removes a field in a data modeling diagram.
1112+
1113+
**Properties**:
1114+
1115+
- **source** (required): `"side_panel"`
1116+
- **is_compass_web** (optional): `true | undefined`
1117+
1118+
<a name="event--DataModelingDiagramFieldRenamed"></a>
1119+
1120+
### Data Modeling Field Renamed
1121+
1122+
This event is fired when user renames a field in a data modeling diagram.
1123+
1124+
**Properties**:
1125+
1126+
- **source** (required): `"side_panel"`
1127+
- **is_compass_web** (optional): `true | undefined`
1128+
1129+
<a name="event--DataModelingDiagramFieldTypeChanged"></a>
1130+
1131+
### Data Modeling Field Type Changed
1132+
1133+
This event is fired when user changes a field type in a data modeling diagram.
1134+
1135+
**Properties**:
1136+
1137+
- **source** (required): `"side_panel"`
1138+
- **from** (optional): `string | undefined`
1139+
- **to** (optional): `string | undefined`
10641140
- **is_compass_web** (optional): `true | undefined`
10651141

10661142
<a name="event--DataModelingDiagramImported"></a>
@@ -1169,7 +1245,7 @@ This event is fired when user clones a document.
11691245

11701246
**Properties**:
11711247

1172-
- **mode** (required): `"list" | "json" | "table"`
1248+
- **mode** (required): `"json" | "list" | "table"`
11731249
- The view used to clone the document.
11741250
- **is_compass_web** (optional): `true | undefined`
11751251
- **connection_id** (optional): `string | undefined`
@@ -1183,7 +1259,7 @@ This event is fired when user copies a document to the clipboard.
11831259

11841260
**Properties**:
11851261

1186-
- **mode** (required): `"list" | "json" | "table"`
1262+
- **mode** (required): `"json" | "list" | "table"`
11871263
- The view used to copy the document.
11881264
- **is_compass_web** (optional): `true | undefined`
11891265
- **connection_id** (optional): `string | undefined`
@@ -1197,7 +1273,7 @@ This event is fired when user deletes a document.
11971273

11981274
**Properties**:
11991275

1200-
- **mode** (required): `"list" | "json" | "table"`
1276+
- **mode** (required): `"json" | "list" | "table"`
12011277
- The view used to delete the document.
12021278
- **is_compass_web** (optional): `true | undefined`
12031279
- **connection_id** (optional): `string | undefined`
@@ -1227,7 +1303,7 @@ This event is fired when user updates a document
12271303

12281304
**Properties**:
12291305

1230-
- **mode** (required): `"list" | "json" | "table"`
1306+
- **mode** (required): `"json" | "list" | "table"`
12311307
- The view used to delete the document.
12321308
- **is_compass_web** (optional): `true | undefined`
12331309
- **connection_id** (optional): `string | undefined`
@@ -1293,7 +1369,7 @@ This event is fired when user executes a query
12931369
- The type of the collection on which the query was executed.
12941370
- **used_regex** (required): `boolean`
12951371
- Indicates whether the query used a regular expression.
1296-
- **mode** (required): `"list" | "json" | "table"`
1372+
- **mode** (required): `"json" | "list" | "table"`
12971373
- The view used to run the query.
12981374
- **is_compass_web** (optional): `true | undefined`
12991375
- **connection_id** (optional): `string | undefined`
@@ -1469,6 +1545,18 @@ This event is fired when a user uses an assistant entry point.
14691545
- **source** (required): `"explain plan" | "performance insights" | "connection error"`
14701546
- **is_compass_web** (optional): `true | undefined`
14711547

1548+
<a name="event--AssistantConfirmationSubmittedEvent"></a>
1549+
1550+
### Assistant Confirmation Submitted
1551+
1552+
This event is fired when a user confirms a confirmation message in the assistant chat.
1553+
1554+
**Properties**:
1555+
1556+
- **status** (required): `"confirmed" | "rejected"`
1557+
- **source** (required): `"explain plan" | "performance insights" | "connection error" | "chat response"`
1558+
- **is_compass_web** (optional): `true | undefined`
1559+
14721560
<a name="event--AiOptInModalShownEvent"></a>
14731561

14741562
### AI Opt In Modal Shown

0 commit comments

Comments
 (0)