Skip to content

Commit 42a15e0

Browse files
committed
add workspaces state service
1 parent aa78f68 commit 42a15e0

File tree

5 files changed

+5
-59
lines changed

5 files changed

+5
-59
lines changed

packages/compass-workspaces/src/components/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Workspaces from './workspaces';
1111
import { connect } from '../stores/context';
1212
import { WorkspacesServiceProvider } from '../provider';
1313
import type { IUserData } from '@mongodb-js/compass-user-data';
14-
import type { WorkspacesStateSchema } from '../stores/workspaces-storage';
14+
import type { WorkspacesStateSchema } from '../services/workspaces-storage';
1515

1616
type WorkspacesWithSidebarProps = {
1717
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { WorkspaceTabContextProvider } from './workspace-tab-context-provider';
4242
import type { WorkspaceTab } from '../types';
4343
import { loadWorkspaceStateFromUserData } from '../stores/workspaces-middleware';
4444
import type { IUserData } from '@mongodb-js/compass-user-data';
45-
import type { WorkspacesStateSchema } from '../stores/workspaces-storage';
45+
import type { WorkspacesStateSchema } from '../services/workspaces-storage';
4646

4747
const emptyWorkspaceStyles = css({
4848
margin: '0 auto',

packages/compass-workspaces/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import {
4040
import type { PreferencesAccess } from 'compass-preferences-model/provider';
4141
import { preferencesLocator } from 'compass-preferences-model/provider';
4242
import type { IUserData } from '@mongodb-js/compass-user-data';
43-
import type { WorkspacesStateSchema } from './stores/workspaces-storage';
43+
import type { WorkspacesStateSchema } from './services/workspaces-storage';
4444

4545
export type WorkspacesServices = {
4646
globalAppRegistry: AppRegistry;
@@ -251,7 +251,7 @@ const WorkspacesPlugin = registerCompassPlugin(
251251
);
252252

253253
export { loadWorkspaceStateFromUserData } from './stores/workspaces-middleware';
254-
export { WorkspacesStateSchema } from './stores/workspaces-storage';
254+
export { WorkspacesStateSchema } from './services/workspaces-storage';
255255
export default WorkspacesPlugin;
256256
export { WorkspacesProvider } from './components/workspaces-provider';
257257
export type { OpenWorkspaceOptions, CollectionTabInfo };

packages/compass-workspaces/src/stores/workspaces-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { IUserData } from '@mongodb-js/compass-user-data';
44
import type {
55
WorkspacesStateSchema,
66
WorkspacesStateData,
7-
} from './workspaces-storage';
7+
} from '../services/workspaces-storage';
88

99
/**
1010
* Loads the workspace state from persistent storage

packages/compass-workspaces/src/stores/workspaces-storage.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)