Skip to content

Commit 66abc2c

Browse files
authored
refactor(app-registry): rename hadron-app-registry to @mongodb-js/compass-app-registry (#7040)
* refactor(app-registry): rename hadron-app-registry to compass-app-registry, rename HadronPlugin to CompassPlugin * fixup: @mongodb-js/compass-app-registry, not compass-app-registry
1 parent 7e534be commit 66abc2c

File tree

173 files changed

+479
-420
lines changed

Some content is hidden

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

173 files changed

+479
-420
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To enable the Chrome DevTools for the Electron renderer processes, click "Settin
4242

4343
> [!NOTE]
4444
> For documentation regarding how to write plugin packages, check out the
45-
> [hadron-app-registry](./packages/hadron-app-registry/README.md) documentation.
45+
> [@mongodb-js/compass-app-registry](./packages/compass-app-registry/README.md) documentation.
4646
4747
To run npm scripts inside specific workspaces in the monorepo you can use either `lerna --scope` or `npm --workspace` command line arguments. As an example, to run all tests in one plugin that you are working on such as the `compass-aggregations` plugin, you can run `npm run test --workspace packages/compass-aggregation` or `lerna run test --scope @mongodb-js/compass-aggregations` commands
4848

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
4040
### Shared Libraries and Build Tools
4141

4242
- [**@mongodb-js/atlas-service**](packages/atlas-service): Service to handle Atlas sign in and API requests
43+
- [**@mongodb-js/compass-app-registry**](packages/compass-app-registry): Compass App Registry
4344
- [**@mongodb-js/compass-components**](packages/compass-components): React Components used in Compass
4445
- [**@mongodb-js/compass-connection-import-export**](packages/compass-connection-import-export): UI for Compass connection import/export
4546
- [**@mongodb-js/compass-connections**](packages/compass-connections): Manage your MongoDB connections and connect in Compass
@@ -67,7 +68,6 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
6768
- [**bson-transpilers**](packages/bson-transpilers): Source to source compilers using ANTLR
6869
- [**compass-e2e-tests**](packages/compass-e2e-tests): E2E test suite for Compass app that follows smoke tests / feature testing matrix
6970
- [**compass-preferences-model**](packages/compass-preferences-model): Compass preferences model
70-
- [**hadron-app-registry**](packages/hadron-app-registry): Hadron App Registry
7171
- [**hadron-build**](packages/hadron-build): Tooling for Hadron apps like Compass
7272
- [**hadron-document**](packages/hadron-document): Hadron Document
7373
- [**hadron-ipc**](packages/hadron-ipc): Simplified IPC for electron apps.

configs/testing-library-compass/.depcheckrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ ignores:
88
# dependency will introduce a circular one in our dependency tree, as it's only
99
# used for testing and doesn't require compilation, we're escaping the
1010
# recursiveness issue by just not including those in the package.json
11+
- '@mongodb-js/compass-app-registry'
1112
- '@mongodb-js/compass-logging'
1213
- '@mongodb-js/compass-telemetry'
1314
- '@mongodb-js/connection-info'
1415
- '@mongodb-js/compass-connections'
1516
- '@mongodb-js/compass-components'
1617
- '@mongodb-js/connection-storage'
1718
- 'compass-preferences-model'
18-
- 'hadron-app-registry'
1919
- 'mongodb-data-service'
2020
ignore-patterns:
2121
- 'dist'

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ import {
6060
import CompassConnections, {
6161
ConnectFnProvider,
6262
} from '@mongodb-js/compass-connections/src/index';
63-
import type { HadronPluginComponent, HadronPlugin } from 'hadron-app-registry';
63+
import type {
64+
CompassPluginComponent,
65+
CompassPlugin,
66+
} from '@mongodb-js/compass-app-registry';
6467
import AppRegistry, {
6568
AppRegistryProvider,
6669
GlobalAppRegistryProvider,
67-
} from 'hadron-app-registry';
70+
} from '@mongodb-js/compass-app-registry';
6871
import { expect } from 'chai';
6972
import { Provider } from 'react-redux';
7073
import ConnectionString from 'mongodb-connection-string-url';
@@ -560,9 +563,9 @@ async function renderHookWithActiveConnection<HookProps, HookResult>(
560563
function createPluginWrapper<
561564
Props,
562565
ServiceLocators extends Record<string, () => unknown>,
563-
PluginContext extends HadronPlugin
566+
PluginContext extends CompassPlugin
564567
>(
565-
Plugin: HadronPluginComponent<Props, ServiceLocators, PluginContext>,
568+
Plugin: CompassPluginComponent<Props, ServiceLocators, PluginContext>,
566569
initialPluginProps?: Props,
567570
ReactTestingLibraryWrapper: ComponentWithChildren = EmptyWrapper
568571
) {
@@ -585,9 +588,9 @@ function createPluginWrapper<
585588
function createPluginTestHelpers<
586589
Props,
587590
ServiceLocators extends Record<string, () => unknown>,
588-
PluginContext extends HadronPlugin
591+
PluginContext extends CompassPlugin
589592
>(
590-
Plugin: HadronPluginComponent<Props, ServiceLocators, PluginContext>,
593+
Plugin: CompassPluginComponent<Props, ServiceLocators, PluginContext>,
591594
defaultInitialPluginProps?: Props
592595
) {
593596
return {

0 commit comments

Comments
 (0)