File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed
compass-data-modeling/src
compass/src/app/components Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import type {
3939 MongoDBDataModelDescription ,
4040} from '../services/data-model-storage' ;
4141import { DiagramProvider } from '@mongodb-js/diagramming' ;
42- import { CompassDataModelingPlugin } from '..' ;
42+ import { DataModelingWorkspaceTab } from '..' ;
4343import { openDiagram } from '../store/diagram' ;
4444
4545const storageItems : MongoDBDataModelDescription [ ] = [
@@ -135,7 +135,7 @@ const renderDiagramEditor = ({
135135 } ;
136136
137137 const { renderWithConnections } = createPluginTestHelpers (
138- CompassDataModelingPlugin . provider . withMockServices ( {
138+ DataModelingWorkspaceTab . provider . withMockServices ( {
139139 services : {
140140 dataModelStorage : mockDataModelStorage ,
141141 } ,
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { expect } from 'chai' ;
33import { render } from '@mongodb-js/testing-library-compass' ;
4- import { CompassDataModelingPlugin } from './index' ;
4+ import { DataModelingWorkspaceTab } from './index' ;
55
66describe ( 'Compass Plugin' , function ( ) {
7- const Plugin = CompassDataModelingPlugin . provider . withMockServices ( { } ) ;
7+ const Plugin = DataModelingWorkspaceTab . provider . withMockServices ( { } ) ;
88
99 it ( 'renders a Plugin' , function ( ) {
1010 expect ( ( ) =>
1111 render (
1212 < Plugin >
13- < CompassDataModelingPlugin . content />
13+ < DataModelingWorkspaceTab . content />
1414 </ Plugin >
1515 )
1616 ) . to . not . throw ( ) ;
Original file line number Diff line number Diff line change @@ -29,10 +29,9 @@ const CompassDataModelingPluginProvider = registerCompassPlugin(
2929 }
3030) ;
3131
32- export const CompassDataModelingPlugin : WorkspacePlugin < typeof WorkspaceName > =
33- {
34- name : WorkspaceName ,
35- provider : CompassDataModelingPluginProvider ,
36- content : DataModelingComponent ,
37- header : PluginTabTitleComponent ,
38- } ;
32+ export const DataModelingWorkspaceTab : WorkspacePlugin < typeof WorkspaceName > = {
33+ name : WorkspaceName ,
34+ provider : CompassDataModelingPluginProvider ,
35+ content : DataModelingComponent ,
36+ header : PluginTabTitleComponent ,
37+ } ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import ExportToLanguageCollectionTabModal from '@mongodb-js/compass-export-to-la
3939import updateTitle from '../utils/update-title' ;
4040import { getConnectionTitle } from '@mongodb-js/connection-info' ;
4141import { useConnectionsListRef } from '@mongodb-js/compass-connections/provider' ;
42- import { WorkspaceTab as DataModelingWorkspace } from '@mongodb-js/compass-data-modeling' ;
42+ import { DataModelingWorkspaceTab } from '@mongodb-js/compass-data-modeling' ;
4343
4444export default function Workspace ( {
4545 appName,
@@ -81,7 +81,7 @@ export default function Workspace({
8181 DatabasesWorkspaceTab ,
8282 CollectionsWorkspaceTab ,
8383 CollectionWorkspace ,
84- DataModelingWorkspace ,
84+ DataModelingWorkspaceTab ,
8585 ] }
8686 >
8787 < CollectionTabsProvider
You can’t perform that action at this time.
0 commit comments