Skip to content

Commit 1999322

Browse files
committed
refactor(app-registry): rename hadron-app-registry to compass-app-registry, rename HadronPlugin to CompassPlugin
1 parent bd10dc4 commit 1999322

File tree

173 files changed

+456
-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

+456
-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+
> [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
@@ -67,7 +67,7 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
6767
- [**bson-transpilers**](packages/bson-transpilers): Source to source compilers using ANTLR
6868
- [**compass-e2e-tests**](packages/compass-e2e-tests): E2E test suite for Compass app that follows smoke tests / feature testing matrix
6969
- [**compass-preferences-model**](packages/compass-preferences-model): Compass preferences model
70-
- [**hadron-app-registry**](packages/hadron-app-registry): Hadron App Registry
70+
- [**compass-app-registry**](packages/compass-app-registry): Compass 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
@@ -15,7 +15,7 @@ ignores:
1515
- '@mongodb-js/compass-components'
1616
- '@mongodb-js/connection-storage'
1717
- 'compass-preferences-model'
18-
- 'hadron-app-registry'
18+
- 'compass-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 'compass-app-registry';
6467
import AppRegistry, {
6568
AppRegistryProvider,
6669
GlobalAppRegistryProvider,
67-
} from 'hadron-app-registry';
70+
} from '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)