Skip to content

Commit 35335b0

Browse files
committed
Merge remote-tracking branch 'origin/main' into electron-32
2 parents b3a8cef + 39f7ce5 commit 35335b0

38 files changed

+880
-1159
lines changed

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 Wed, Oct 23, 2024 at 11:59 AM
4+
Generated on Wed, Oct 23, 2024 at 04:31 PM
55

66
## Table of Contents
77

package-lock.json

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

packages/compass-components/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@leafygreen-ui/search-input": "^2.1.5",
6565
"@leafygreen-ui/segmented-control": "^8.2.10",
6666
"@leafygreen-ui/select": "^11.2.2",
67-
"@leafygreen-ui/table": "^12.6.1",
67+
"@leafygreen-ui/table": "^12.7.0",
6868
"@leafygreen-ui/tabs": "^11.1.13",
6969
"@leafygreen-ui/text-area": "^8.1.2",
7070
"@leafygreen-ui/text-input": "^12.1.26",
@@ -76,6 +76,7 @@
7676
"@react-aria/interactions": "^3.9.1",
7777
"@react-aria/utils": "^3.13.1",
7878
"@react-aria/visually-hidden": "^3.3.1",
79+
"@tanstack/table-core": "^8.14.0",
7980
"bson": "^6.8.0",
8081
"focus-trap-react": "^9.0.2",
8182
"hadron-document": "^8.6.4",

packages/compass-components/src/components/leafygreen.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ import {
5353
TableBody,
5454
flexRender,
5555
useLeafyGreenTable,
56+
getFilteredRowModel,
5657
} from '@leafygreen-ui/table';
58+
import type { Row as LgTableRowType } from '@tanstack/table-core'; // TODO(COMPASS-8437): import from LG
59+
5760
export type {
5861
LGColumnDef,
5962
HeaderGroup,
@@ -172,4 +175,6 @@ export {
172175
InfoSprinkle,
173176
flexRender,
174177
useLeafyGreenTable,
178+
getFilteredRowModel,
179+
type LgTableRowType,
175180
};
Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
1-
import { TEST_MULTIPLE_CONNECTIONS } from '../compass';
21
import type { CompassBrowser } from '../compass-browser';
3-
import retryWithBackoff from '../retry-with-backoff';
4-
import * as Selectors from '../selectors';
52

63
export async function closeShell(
74
browser: CompassBrowser,
85
connectionName: string
96
): Promise<void> {
10-
if (TEST_MULTIPLE_CONNECTIONS) {
11-
await browser.closeWorkspaceTab({
12-
connectionName,
13-
type: 'Shell',
14-
});
15-
} else {
16-
await retryWithBackoff(async function () {
17-
const shellContentElement = await browser.$(Selectors.ShellContent);
18-
if (await shellContentElement.isDisplayed()) {
19-
await browser.clickVisible(Selectors.ShellExpandButton);
20-
}
21-
});
22-
}
7+
await browser.closeWorkspaceTab({
8+
connectionName,
9+
type: 'Shell',
10+
});
2311
}

packages/compass-e2e-tests/helpers/commands/collection-workspaces.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { TEST_MULTIPLE_CONNECTIONS } from '../compass';
21
import type { CompassBrowser } from '../compass-browser';
32
import * as Selectors from '../selectors';
43
import type { WorkspaceTabSelectorOptions } from '../selectors';
@@ -119,16 +118,13 @@ async function waitUntilActiveCollectionTab(
119118
) {
120119
const options: WorkspaceTabSelectorOptions = {
121120
type: 'Collection',
121+
connectionName,
122122
namespace: `${dbName}.${collectionName}`,
123123
active: true,
124124
};
125-
// Only add the connectionName for multiple connections because for some
126-
// reason this sometimes flakes in single connections even though the tab is
127-
// definitely there in the screenshot.
128-
if (TEST_MULTIPLE_CONNECTIONS) {
129-
options.connectionName = connectionName;
130-
}
125+
131126
await browser.$(Selectors.workspaceTab(options)).waitForDisplayed();
127+
132128
if (tabName) {
133129
await waitUntilActiveCollectionSubTab(browser, tabName);
134130
}

0 commit comments

Comments
 (0)