diff --git a/package-lock.json b/package-lock.json index 63a4b545584..0949675fac6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45275,10 +45275,13 @@ "@mongodb-js/compass-collection": "^4.41.0", "@mongodb-js/compass-components": "^1.29.4", "@mongodb-js/compass-connections": "^1.42.0", + "@mongodb-js/compass-field-store": "^9.17.0", "@mongodb-js/compass-logging": "^1.4.7", "@mongodb-js/compass-telemetry": "^1.1.7", "hadron-app-registry": "^9.2.6", + "mongodb-ns": "^2.4.2", "react": "^17.0.2", + "react-redux": "^8.1.3", "redux": "^4.2.1", "redux-thunk": "^2.4.2" }, @@ -45368,6 +45371,28 @@ "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", "dev": true }, + "packages/compass-global-writes/node_modules/react-redux": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.1.2.tgz", + "integrity": "sha512-0OA4dhM1W48l3uzmv6B7TXPCGmokUU4p1M44DGN2/D9a1FjVPukVjER1PcPX97jIg6aUeLq1XJo1IpfbgULn0w==", + "dependencies": { + "@types/use-sync-external-store": "^0.0.3", + "use-sync-external-store": "^1.0.0" + }, + "peerDependencies": { + "@types/react": "^18.2.25", + "react": "^18.0", + "redux": "^5.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, "packages/compass-global-writes/node_modules/sinon": { "version": "17.0.1", "resolved": "https://registry.npmjs.org/sinon/-/sinon-17.0.1.tgz", @@ -57005,6 +57030,7 @@ "@mongodb-js/compass-collection": "^4.41.0", "@mongodb-js/compass-components": "^1.29.4", "@mongodb-js/compass-connections": "^1.42.0", + "@mongodb-js/compass-field-store": "^9.17.0", "@mongodb-js/compass-logging": "^1.4.7", "@mongodb-js/compass-telemetry": "^1.1.7", "@mongodb-js/eslint-config-compass": "^1.1.7", @@ -57023,9 +57049,11 @@ "eslint": "^7.25.0", "hadron-app-registry": "^9.2.6", "mocha": "^10.2.0", + "mongodb-ns": "^2.4.2", "nyc": "^15.1.0", "prettier": "^2.7.1", "react": "^17.0.2", + "react-redux": "^8.1.3", "redux": "^4.2.1", "redux-thunk": "^2.4.2", "sinon": "^17.0.1", @@ -57095,6 +57123,14 @@ "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", "dev": true }, + "react-redux": { + "version": "https://registry.npmjs.org/react-redux/-/react-redux-9.1.2.tgz", + "integrity": "sha512-0OA4dhM1W48l3uzmv6B7TXPCGmokUU4p1M44DGN2/D9a1FjVPukVjER1PcPX97jIg6aUeLq1XJo1IpfbgULn0w==", + "requires": { + "@types/use-sync-external-store": "^0.0.3", + "use-sync-external-store": "^1.0.0" + } + }, "sinon": { "version": "17.0.1", "resolved": "https://registry.npmjs.org/sinon/-/sinon-17.0.1.tgz", diff --git a/packages/compass-global-writes/package.json b/packages/compass-global-writes/package.json index 917f8d4791a..91e620bf505 100644 --- a/packages/compass-global-writes/package.json +++ b/packages/compass-global-writes/package.json @@ -53,10 +53,13 @@ "@mongodb-js/compass-collection": "^4.41.0", "@mongodb-js/compass-components": "^1.29.4", "@mongodb-js/compass-connections": "^1.42.0", + "@mongodb-js/compass-field-store": "^9.17.0", "@mongodb-js/compass-logging": "^1.4.7", "@mongodb-js/compass-telemetry": "^1.1.7", "hadron-app-registry": "^9.2.6", + "mongodb-ns": "^2.4.2", "react": "^17.0.2", + "react-redux": "^8.1.3", "redux": "^4.2.1", "redux-thunk": "^2.4.2" }, diff --git a/packages/compass-global-writes/src/components/index.spec.tsx b/packages/compass-global-writes/src/components/index.spec.tsx index c6a0b18ef43..f034c0df5a2 100644 --- a/packages/compass-global-writes/src/components/index.spec.tsx +++ b/packages/compass-global-writes/src/components/index.spec.tsx @@ -7,7 +7,7 @@ import { renderWithStore } from './../../tests/create-store'; describe('Compass GlobalWrites Plugin', function () { it('renders plugin in NOT_READY state', function () { renderWithStore(); - expect(screen.getByText('Loading ...')).to.exist; + expect(screen.getByText(/loading/i)).to.exist; }); it('renders plugin in UNSHARDED state', function () { diff --git a/packages/compass-global-writes/src/components/index.tsx b/packages/compass-global-writes/src/components/index.tsx index 0171cb1c07f..a21bfdc6d4b 100644 --- a/packages/compass-global-writes/src/components/index.tsx +++ b/packages/compass-global-writes/src/components/index.tsx @@ -4,7 +4,6 @@ import { css, spacing, WorkspaceContainer, - Body, SpinLoaderWithLabel, } from '@mongodb-js/compass-components'; import type { RootState, ShardingStatus } from '../store/reducer';