@finos/legend-application-studio 16.0.2 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendStudioApplicationConfig.d.ts +4 -3
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +9 -3
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +2 -2
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.js +2 -6
- package/lib/components/EmbeddedQueryBuilder.js.map +1 -1
- package/lib/components/LegendStudioApplication.js +1 -1
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/LegendStudioBaseStoreProvider.d.ts +0 -2
- package/lib/components/LegendStudioBaseStoreProvider.d.ts.map +1 -1
- package/lib/components/LegendStudioBaseStoreProvider.js +2 -2
- package/lib/components/LegendStudioBaseStoreProvider.js.map +1 -1
- package/lib/components/editor/EditorStoreProvider.d.ts.map +1 -1
- package/lib/components/editor/EditorStoreProvider.js +2 -3
- package/lib/components/editor/EditorStoreProvider.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +4 -4
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +19 -4
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +6 -6
- package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js +2 -2
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/BindingElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +2 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +2 -5
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +1 -4
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js +8 -8
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +2 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +2 -2
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +5 -2
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +4 -4
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js +1 -1
- package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/shared/ElementIconUtils.js +1 -1
- package/lib/components/shared/ElementIconUtils.js.map +1 -1
- package/lib/components/{workspace-setup/ProjectSelector.d.ts → shared/ProjectSelectorUtils.d.ts} +9 -7
- package/lib/components/shared/ProjectSelectorUtils.d.ts.map +1 -0
- package/lib/components/shared/ProjectSelectorUtils.js +28 -0
- package/lib/components/shared/ProjectSelectorUtils.js.map +1 -0
- package/lib/components/shared/TypeTree.js +2 -2
- package/lib/components/shared/TypeTree.js.map +1 -1
- package/lib/components/{workspace-setup/WorkspaceSetupStoreProvider.d.ts → shared/WorkspaceSelectorUtils.d.ts} +8 -8
- package/lib/components/shared/WorkspaceSelectorUtils.d.ts.map +1 -0
- package/lib/components/shared/WorkspaceSelectorUtils.js +24 -0
- package/lib/components/shared/WorkspaceSelectorUtils.js.map +1 -0
- package/lib/components/workspace-setup/{ProjectCreateModal.d.ts → CreateProjectModal.d.ts} +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -0
- package/lib/components/workspace-setup/{ProjectCreateModal.js → CreateProjectModal.js} +4 -4
- package/lib/components/workspace-setup/{ProjectCreateModal.js.map → CreateProjectModal.js.map} +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +22 -0
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -0
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +67 -0
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -0
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts +2 -0
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +96 -115
- package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +9 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -7
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts} +5 -2
- package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.d.ts.map +1 -0
- package/lib/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js → DSLGeneration_LegendStudioApplicationPlugin_Extension.js} +1 -1
- package/lib/stores/DSLGeneration_LegendStudioApplicationPlugin_Extension.js.map +1 -0
- package/lib/stores/EditorGraphState.d.ts +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +3 -2
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +6 -8
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +39 -13
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EditorStoreTestUtils.d.ts.map +1 -1
- package/lib/stores/EditorStoreTestUtils.js +1 -1
- package/lib/stores/EditorStoreTestUtils.js.map +1 -1
- package/lib/stores/ExplorerTreeState.d.ts +2 -2
- package/lib/stores/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/ExplorerTreeState.js +2 -2
- package/lib/stores/ExplorerTreeState.js.map +1 -1
- package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
- package/lib/stores/LegendStudioAppEvent.js +2 -0
- package/lib/stores/LegendStudioAppEvent.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts +2 -3
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +7 -2
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioRouter.js +1 -1
- package/lib/stores/LegendStudioRouter.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +5 -2
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.d.ts +1 -1
- package/lib/stores/editor-state/FileGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +1 -1
- package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationViewerState.d.ts +1 -1
- package/lib/stores/editor-state/FileGenerationViewerState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +2 -2
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +2 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/RuntimeEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts +5 -8
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +15 -20
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js +1 -1
- package/lib/stores/graphModifier/DSLMapping_GraphModifierHelper.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +1 -2
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +2 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/{DnDUtil.d.ts → DnDUtils.d.ts} +2 -2
- package/lib/stores/shared/DnDUtils.d.ts.map +1 -0
- package/lib/stores/shared/{DnDUtil.js → DnDUtils.js} +1 -1
- package/lib/stores/shared/DnDUtils.js.map +1 -0
- package/lib/stores/shared/{FileGenerationTreeUtil.d.ts → FileGenerationTreeUtils.d.ts} +1 -1
- package/lib/stores/shared/FileGenerationTreeUtils.d.ts.map +1 -0
- package/lib/stores/shared/{FileGenerationTreeUtil.js → FileGenerationTreeUtils.js} +1 -1
- package/lib/stores/shared/FileGenerationTreeUtils.js.map +1 -0
- package/lib/stores/shared/{MockDataUtil.d.ts → MockDataUtils.d.ts} +1 -1
- package/lib/stores/shared/MockDataUtils.d.ts.map +1 -0
- package/lib/stores/shared/{MockDataUtil.js → MockDataUtils.js} +2 -2
- package/lib/stores/shared/MockDataUtils.js.map +1 -0
- package/lib/stores/shared/{ModelUtil.d.ts → ModelClassifierUtils.d.ts} +1 -1
- package/lib/stores/shared/ModelClassifierUtils.d.ts.map +1 -0
- package/lib/stores/shared/{ModelUtil.js → ModelClassifierUtils.js} +1 -1
- package/lib/stores/shared/ModelClassifierUtils.js.map +1 -0
- package/lib/stores/shared/{PackageTreeUtil.d.ts → PackageTreeUtils.d.ts} +2 -2
- package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -0
- package/lib/stores/shared/{PackageTreeUtil.js → PackageTreeUtils.js} +2 -2
- package/lib/stores/shared/PackageTreeUtils.js.map +1 -0
- package/lib/stores/shared/{TreeUtil.d.ts → TreeUtils.d.ts} +2 -2
- package/lib/stores/shared/TreeUtils.d.ts.map +1 -0
- package/lib/stores/shared/{TreeUtil.js → TreeUtils.js} +1 -1
- package/lib/stores/shared/TreeUtils.js.map +1 -0
- package/lib/stores/shared/testable/TestableUtils.js +1 -1
- package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts +18 -33
- package/lib/stores/workspace-setup/WorkspaceSetupStore.d.ts.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +137 -133
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendStudioApplicationConfig.ts +12 -5
- package/src/components/EditorComponentTestUtils.tsx +1 -6
- package/src/components/EmbeddedQueryBuilder.tsx +2 -8
- package/src/components/LegendStudioApplication.tsx +1 -1
- package/src/components/LegendStudioBaseStoreProvider.tsx +2 -5
- package/src/components/editor/EditorStoreProvider.tsx +1 -6
- package/src/components/editor/edit-panel/FunctionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +5 -5
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +4 -4
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +31 -3
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +16 -11
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +2 -3
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +4 -4
- package/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx +0 -1
- package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +2 -14
- package/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +1 -9
- package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +2 -6
- package/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +2 -2
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +1 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +4 -2
- package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +2 -3
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +1 -1
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +1 -8
- package/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +15 -10
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +2 -2
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +1 -1
- package/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +1 -1
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +5 -2
- package/src/components/editor/side-bar/Explorer.tsx +5 -5
- package/src/components/editor/side-bar/LocalChanges.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceReview.tsx +1 -1
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +2 -8
- package/src/components/shared/ElementIconUtils.tsx +1 -1
- package/src/components/shared/ProjectSelectorUtils.tsx +63 -0
- package/src/components/shared/TypeTree.tsx +3 -3
- package/src/components/shared/WorkspaceSelectorUtils.tsx +45 -0
- package/src/components/workspace-setup/{ProjectCreateModal.tsx → CreateProjectModal.tsx} +7 -3
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +178 -0
- package/src/components/workspace-setup/WorkspaceSetup.tsx +300 -346
- package/src/index.ts +9 -9
- package/src/stores/{DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.ts → DSLGeneration_LegendStudioApplicationPlugin_Extension.ts} +4 -1
- package/src/stores/EditorGraphState.ts +2 -3
- package/src/stores/EditorStore.ts +52 -19
- package/src/stores/EditorStoreTestUtils.ts +0 -1
- package/src/stores/ExplorerTreeState.ts +3 -3
- package/src/stores/LegendStudioAppEvent.ts +3 -0
- package/src/stores/LegendStudioBaseStore.ts +7 -4
- package/src/stores/LegendStudioRouter.ts +1 -1
- package/src/stores/editor/NewElementState.ts +5 -1
- package/src/stores/editor-state/FileGenerationState.ts +1 -1
- package/src/stores/editor-state/FileGenerationViewerState.ts +1 -1
- package/src/stores/editor-state/GraphGenerationState.ts +6 -6
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +1 -1
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -2
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +33 -32
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +1 -1
- package/src/stores/graphModifier/DSLMapping_GraphModifierHelper.ts +1 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +6 -6
- package/src/stores/shared/{DnDUtil.ts → DnDUtils.ts} +1 -1
- package/src/stores/shared/{FileGenerationTreeUtil.ts → FileGenerationTreeUtils.ts} +0 -0
- package/src/stores/shared/{MockDataUtil.ts → MockDataUtils.ts} +4 -1
- package/src/stores/shared/{ModelUtil.ts → ModelClassifierUtils.ts} +0 -0
- package/src/stores/shared/{PackageTreeUtil.ts → PackageTreeUtils.ts} +2 -2
- package/src/stores/shared/{TreeUtil.ts → TreeUtils.ts} +1 -1
- package/src/stores/shared/testable/TestableUtils.ts +1 -1
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +208 -190
- package/tsconfig.json +12 -12
- package/lib/components/workspace-setup/ProjectCreateModal.d.ts.map +0 -1
- package/lib/components/workspace-setup/ProjectSelector.d.ts.map +0 -1
- package/lib/components/workspace-setup/ProjectSelector.js +0 -65
- package/lib/components/workspace-setup/ProjectSelector.js.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSelector.d.ts +0 -22
- package/lib/components/workspace-setup/WorkspaceSelector.d.ts.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSelector.js +0 -57
- package/lib/components/workspace-setup/WorkspaceSelector.js.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.d.ts.map +0 -1
- package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js +0 -34
- package/lib/components/workspace-setup/WorkspaceSetupStoreProvider.js.map +0 -1
- package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.d.ts.map +0 -1
- package/lib/stores/DSLGenerationSpecification_LegendStudioApplicationPlugin_Extension.js.map +0 -1
- package/lib/stores/shared/DnDUtil.d.ts.map +0 -1
- package/lib/stores/shared/DnDUtil.js.map +0 -1
- package/lib/stores/shared/FileGenerationTreeUtil.d.ts.map +0 -1
- package/lib/stores/shared/FileGenerationTreeUtil.js.map +0 -1
- package/lib/stores/shared/MockDataUtil.d.ts.map +0 -1
- package/lib/stores/shared/MockDataUtil.js.map +0 -1
- package/lib/stores/shared/ModelUtil.d.ts.map +0 -1
- package/lib/stores/shared/ModelUtil.js.map +0 -1
- package/lib/stores/shared/PackageTreeUtil.d.ts.map +0 -1
- package/lib/stores/shared/PackageTreeUtil.js.map +0 -1
- package/lib/stores/shared/TreeUtil.d.ts.map +0 -1
- package/lib/stores/shared/TreeUtil.js.map +0 -1
- package/src/components/workspace-setup/ProjectSelector.tsx +0 -148
- package/src/components/workspace-setup/WorkspaceSelector.tsx +0 -135
- package/src/components/workspace-setup/WorkspaceSetupStoreProvider.tsx +0 -56
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { ExternalFormatData, RelationalCSVData, ConnectionTestData, EngineRuntime, RuntimePointer, EqualToJson, DEFAULT_TEST_ASSERTION_PREFIX, RelationalCSVDataTable, } from '@finos/legend-graph';
|
|
17
17
|
import { assertTrue, ContentType, generateEnumerableNameFromToken, guaranteeNonEmptyString, isNonNullable, returnUndefOnError, } from '@finos/legend-shared';
|
|
18
18
|
import { EmbeddedDataType } from '../../editor-state/ExternalFormatState.js';
|
|
19
|
-
import { createMockDataForMappingElementSource } from '../
|
|
19
|
+
import { createMockDataForMappingElementSource } from '../MockDataUtils.js';
|
|
20
20
|
export const createBareExternalFormat = (contentType) => {
|
|
21
21
|
const data = new ExternalFormatData();
|
|
22
22
|
data.contentType = contentType ?? ContentType.APPLICATION_JSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestableUtils.js","sourceRoot":"","sources":["../../../../src/stores/shared/testable/TestableUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAcL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,WAAW,EACX,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,WAAW,EACX,+BAA+B,EAC/B,uBAAuB,EACvB,aAAa,EACb,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,EAAE,qCAAqC,EAAE,MAAM,
|
|
1
|
+
{"version":3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AAK,EAAE,CAAC,CAAC;QAC1D,KAAK,CAAC,KAAK,GAAG,uBAAuB,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;QACzD,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -21,51 +21,36 @@ interface ImportProjectSuccessReport {
|
|
|
21
21
|
projectName: string;
|
|
22
22
|
reviewUrl: string;
|
|
23
23
|
}
|
|
24
|
-
export interface ProjectOption {
|
|
25
|
-
label: string;
|
|
26
|
-
value: string;
|
|
27
|
-
}
|
|
28
|
-
export interface WorkspaceOption {
|
|
29
|
-
label: string;
|
|
30
|
-
value: Workspace;
|
|
31
|
-
__isNew__?: boolean | undefined;
|
|
32
|
-
}
|
|
33
|
-
export interface WorkspaceIdentifier {
|
|
34
|
-
workspaceId: string;
|
|
35
|
-
workspaceType: WorkspaceType;
|
|
36
|
-
}
|
|
37
24
|
export declare class WorkspaceSetupStore {
|
|
38
25
|
applicationStore: LegendStudioApplicationStore;
|
|
39
26
|
sdlcServerClient: SDLCServerClient;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
workspacesByProject: Map<string, Map<string, Workspace>>;
|
|
44
|
-
loadWorkspacesState: ActionState;
|
|
45
|
-
createWorkspaceState: ActionState;
|
|
46
|
-
createOrImportProjectState: ActionState;
|
|
27
|
+
initState: ActionState;
|
|
28
|
+
projects: Project[];
|
|
29
|
+
currentProject?: Project | undefined;
|
|
47
30
|
loadProjectsState: ActionState;
|
|
31
|
+
createOrImportProjectState: ActionState;
|
|
32
|
+
importProjectSuccessReport?: ImportProjectSuccessReport | undefined;
|
|
48
33
|
showCreateProjectModal: boolean;
|
|
34
|
+
workspaces: Workspace[];
|
|
35
|
+
currentWorkspace?: Workspace | undefined;
|
|
36
|
+
loadWorkspacesState: ActionState;
|
|
37
|
+
createWorkspaceState: ActionState;
|
|
49
38
|
showCreateWorkspaceModal: boolean;
|
|
50
|
-
importProjectSuccessReport?: ImportProjectSuccessReport | undefined;
|
|
51
39
|
constructor(applicationStore: LegendStudioApplicationStore, sdlcServerClient: SDLCServerClient);
|
|
52
|
-
get currentProject(): Project | undefined;
|
|
53
|
-
get currentProjectWorkspaces(): Map<string, Workspace> | undefined;
|
|
54
|
-
get currentWorkspace(): Workspace | undefined;
|
|
55
|
-
get currentWorkspaceCompositeId(): string | undefined;
|
|
56
|
-
init(workspaceId: string | undefined, groupWorkspaceId: string | undefined): void;
|
|
57
40
|
setShowCreateProjectModal(val: boolean): void;
|
|
58
41
|
setShowCreateWorkspaceModal(val: boolean): void;
|
|
59
|
-
setCurrentProjectId(id: string | undefined): void;
|
|
60
|
-
setCurrentWorkspaceIdentifier(val: WorkspaceIdentifier | undefined): void;
|
|
61
42
|
setImportProjectSuccessReport(importProjectSuccessReport: ImportProjectSuccessReport | undefined): void;
|
|
62
|
-
|
|
43
|
+
resetProject(): void;
|
|
44
|
+
resetWorkspace(): void;
|
|
45
|
+
initialize(projectId: string | undefined, workspaceId: string | undefined, groupWorkspaceId: string | undefined): GeneratorFn<void>;
|
|
46
|
+
loadProjects(searchText: string): GeneratorFn<void>;
|
|
47
|
+
changeProject(project: Project, workspaceInfo?: {
|
|
48
|
+
workspaceId: string;
|
|
49
|
+
workspaceType: WorkspaceType;
|
|
50
|
+
} | undefined): GeneratorFn<void>;
|
|
51
|
+
changeWorkspace(workspace: Workspace): void;
|
|
63
52
|
createProject(name: string, description: string, groupId: string, artifactId: string, tags?: string[]): GeneratorFn<void>;
|
|
64
53
|
importProject(id: string, groupId: string, artifactId: string): GeneratorFn<void>;
|
|
65
|
-
get projectOptions(): ProjectOption[];
|
|
66
|
-
get currentProjectWorkspaceOptions(): WorkspaceOption[];
|
|
67
|
-
fetchWorkspaces(projectId: string): GeneratorFn<void>;
|
|
68
|
-
buildWorkspaceCompositeId(workspace: WorkspaceIdentifier): string;
|
|
69
54
|
createWorkspace(projectId: string, workspaceId: string, workspaceType: WorkspaceType): GeneratorFn<void>;
|
|
70
55
|
}
|
|
71
56
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/workspace-setup/WorkspaceSetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,WAAW,EAIhB,WAAW,
|
|
1
|
+
{"version":3,"file":"WorkspaceSetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/workspace-setup/WorkspaceSetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,WAAW,EAIhB,WAAW,EAEZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,KAAK,gBAAgB,EACrB,aAAa,EAEb,OAAO,EAEP,SAAS,EACV,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAEhF,UAAU,0BAA0B;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAKD,qBAAa,mBAAmB;IAC9B,gBAAgB,EAAE,4BAA4B,CAAC;IAC/C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,cAAwB;IAEjC,QAAQ,EAAE,OAAO,EAAE,CAAM;IACzB,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,iBAAiB,cAAwB;IACzC,0BAA0B,cAAwB;IAClD,0BAA0B,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IACpE,sBAAsB,UAAS;IAE/B,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7B,gBAAgB,CAAC,EAAE,SAAS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13,114 +13,162 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { observable, action,
|
|
16
|
+
import { observable, action, flowResult, makeObservable, flow } from 'mobx';
|
|
17
17
|
import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
|
|
18
|
-
import { assertErrorThrown, LogEvent, ActionState, } from '@finos/legend-shared';
|
|
18
|
+
import { assertErrorThrown, LogEvent, ActionState, IllegalStateError, } from '@finos/legend-shared';
|
|
19
19
|
import { generateSetupRoute } from '../LegendStudioRouter.js';
|
|
20
|
-
import { WorkspaceType, ImportReport, Project, Review, Workspace,
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
value: project.projectId,
|
|
24
|
-
});
|
|
25
|
-
const buildWorkspaceOption = (workspace) => ({
|
|
26
|
-
label: workspace.workspaceId,
|
|
27
|
-
value: workspace,
|
|
28
|
-
});
|
|
20
|
+
import { WorkspaceType, ImportReport, Project, Review, Workspace, } from '@finos/legend-server-sdlc';
|
|
21
|
+
const MINIMUM_PROJECT_LOADER_SEARCH_LENGTH = 3;
|
|
22
|
+
const DEFAULT_PROJECT_LOADER_LIMIT = 10;
|
|
29
23
|
export class WorkspaceSetupStore {
|
|
30
24
|
applicationStore;
|
|
31
25
|
sdlcServerClient;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
workspacesByProject = new Map();
|
|
36
|
-
loadWorkspacesState = ActionState.create();
|
|
37
|
-
createWorkspaceState = ActionState.create();
|
|
38
|
-
createOrImportProjectState = ActionState.create();
|
|
26
|
+
initState = ActionState.create();
|
|
27
|
+
projects = [];
|
|
28
|
+
currentProject;
|
|
39
29
|
loadProjectsState = ActionState.create();
|
|
30
|
+
createOrImportProjectState = ActionState.create();
|
|
31
|
+
importProjectSuccessReport;
|
|
40
32
|
showCreateProjectModal = false;
|
|
33
|
+
workspaces = [];
|
|
34
|
+
currentWorkspace;
|
|
35
|
+
loadWorkspacesState = ActionState.create();
|
|
36
|
+
createWorkspaceState = ActionState.create();
|
|
41
37
|
showCreateWorkspaceModal = false;
|
|
42
|
-
importProjectSuccessReport;
|
|
43
38
|
constructor(applicationStore, sdlcServerClient) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
makeObservable(this, {
|
|
40
|
+
projects: observable,
|
|
41
|
+
currentProject: observable,
|
|
42
|
+
importProjectSuccessReport: observable,
|
|
43
|
+
showCreateProjectModal: observable,
|
|
44
|
+
workspaces: observable,
|
|
45
|
+
currentWorkspace: observable,
|
|
46
|
+
showCreateWorkspaceModal: observable,
|
|
47
47
|
setShowCreateProjectModal: action,
|
|
48
48
|
setShowCreateWorkspaceModal: action,
|
|
49
|
-
setCurrentProjectId: action,
|
|
50
|
-
setCurrentWorkspaceIdentifier: action,
|
|
51
49
|
setImportProjectSuccessReport: action,
|
|
50
|
+
changeWorkspace: action,
|
|
51
|
+
resetProject: action,
|
|
52
|
+
resetWorkspace: action,
|
|
53
|
+
initialize: flow,
|
|
54
|
+
loadProjects: flow,
|
|
55
|
+
changeProject: flow,
|
|
56
|
+
createProject: flow,
|
|
57
|
+
importProject: flow,
|
|
58
|
+
createWorkspace: flow,
|
|
52
59
|
});
|
|
53
60
|
this.applicationStore = applicationStore;
|
|
54
61
|
this.sdlcServerClient = sdlcServerClient;
|
|
55
62
|
}
|
|
56
|
-
get currentProject() {
|
|
57
|
-
return this.projects && this.currentProjectId
|
|
58
|
-
? this.projects.get(this.currentProjectId)
|
|
59
|
-
: undefined;
|
|
60
|
-
}
|
|
61
|
-
get currentProjectWorkspaces() {
|
|
62
|
-
return this.currentProjectId
|
|
63
|
-
? this.workspacesByProject.get(this.currentProjectId)
|
|
64
|
-
: undefined;
|
|
65
|
-
}
|
|
66
|
-
get currentWorkspace() {
|
|
67
|
-
return this.currentProjectWorkspaces && this.currentWorkspaceCompositeId
|
|
68
|
-
? this.currentProjectWorkspaces.get(this.currentWorkspaceCompositeId)
|
|
69
|
-
: undefined;
|
|
70
|
-
}
|
|
71
|
-
get currentWorkspaceCompositeId() {
|
|
72
|
-
return this.currentWorkspaceIdentifier
|
|
73
|
-
? this.buildWorkspaceCompositeId(this.currentWorkspaceIdentifier)
|
|
74
|
-
: undefined;
|
|
75
|
-
}
|
|
76
|
-
init(workspaceId, groupWorkspaceId) {
|
|
77
|
-
if (workspaceId) {
|
|
78
|
-
this.setCurrentWorkspaceIdentifier({
|
|
79
|
-
workspaceId,
|
|
80
|
-
workspaceType: WorkspaceType.USER,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
else if (groupWorkspaceId) {
|
|
84
|
-
this.setCurrentWorkspaceIdentifier({
|
|
85
|
-
workspaceId: groupWorkspaceId,
|
|
86
|
-
workspaceType: WorkspaceType.GROUP,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
this.setCurrentWorkspaceIdentifier(undefined);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
63
|
setShowCreateProjectModal(val) {
|
|
94
64
|
this.showCreateProjectModal = val;
|
|
95
65
|
}
|
|
96
66
|
setShowCreateWorkspaceModal(val) {
|
|
97
67
|
this.showCreateWorkspaceModal = val;
|
|
98
68
|
}
|
|
99
|
-
setCurrentProjectId(id) {
|
|
100
|
-
this.currentProjectId = id;
|
|
101
|
-
}
|
|
102
|
-
setCurrentWorkspaceIdentifier(val) {
|
|
103
|
-
this.currentWorkspaceIdentifier = val;
|
|
104
|
-
}
|
|
105
69
|
setImportProjectSuccessReport(importProjectSuccessReport) {
|
|
106
70
|
this.importProjectSuccessReport = importProjectSuccessReport;
|
|
107
71
|
}
|
|
108
|
-
|
|
72
|
+
resetProject() {
|
|
73
|
+
this.currentProject = undefined;
|
|
74
|
+
this.workspaces = [];
|
|
75
|
+
this.currentWorkspace = undefined;
|
|
76
|
+
this.applicationStore.navigator.goTo(generateSetupRoute(undefined, undefined, undefined));
|
|
77
|
+
}
|
|
78
|
+
resetWorkspace() {
|
|
79
|
+
this.currentWorkspace = undefined;
|
|
80
|
+
if (this.currentProject) {
|
|
81
|
+
this.applicationStore.navigator.goTo(generateSetupRoute(this.currentProject.projectId, undefined, undefined));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
*initialize(projectId, workspaceId, groupWorkspaceId) {
|
|
85
|
+
if (!this.initState.isInInitialState) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
this.initState.inProgress();
|
|
89
|
+
try {
|
|
90
|
+
if (projectId) {
|
|
91
|
+
let project;
|
|
92
|
+
try {
|
|
93
|
+
project = Project.serialization.fromJson((yield this.sdlcServerClient.getProject(projectId)));
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
this.applicationStore.navigator.goTo(generateSetupRoute(undefined));
|
|
97
|
+
this.initState.pass();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
yield flowResult(this.changeProject(project, workspaceId
|
|
101
|
+
? { workspaceId: workspaceId, workspaceType: WorkspaceType.USER }
|
|
102
|
+
: groupWorkspaceId
|
|
103
|
+
? {
|
|
104
|
+
workspaceId: groupWorkspaceId,
|
|
105
|
+
workspaceType: WorkspaceType.GROUP,
|
|
106
|
+
}
|
|
107
|
+
: undefined));
|
|
108
|
+
}
|
|
109
|
+
this.initState.pass();
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
assertErrorThrown(error);
|
|
113
|
+
this.applicationStore.log.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE), error);
|
|
114
|
+
this.applicationStore.notifyError(error);
|
|
115
|
+
this.initState.fail();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
*loadProjects(searchText) {
|
|
119
|
+
const isValidSearchString = searchText.length >= MINIMUM_PROJECT_LOADER_SEARCH_LENGTH;
|
|
109
120
|
this.loadProjectsState.inProgress();
|
|
110
121
|
try {
|
|
111
|
-
|
|
112
|
-
const projectIndex = observable(new Map());
|
|
113
|
-
projects.forEach((project) => projectIndex.set(project.projectId, project));
|
|
114
|
-
this.projects = projectIndex;
|
|
122
|
+
this.projects = (yield this.sdlcServerClient.getProjects(undefined, isValidSearchString ? searchText : undefined, undefined, DEFAULT_PROJECT_LOADER_LIMIT)).map((v) => Project.serialization.fromJson(v));
|
|
115
123
|
this.loadProjectsState.pass();
|
|
116
124
|
}
|
|
117
125
|
catch (error) {
|
|
118
126
|
assertErrorThrown(error);
|
|
119
|
-
this.applicationStore.log.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.WORKSPACE_SETUP_FAILURE), error);
|
|
120
127
|
this.applicationStore.notifyError(error);
|
|
121
128
|
this.loadProjectsState.fail();
|
|
122
129
|
}
|
|
123
130
|
}
|
|
131
|
+
*changeProject(project, workspaceInfo) {
|
|
132
|
+
this.loadWorkspacesState.inProgress();
|
|
133
|
+
try {
|
|
134
|
+
this.currentProject = project;
|
|
135
|
+
const workspacesInConflictResolutionIds = (yield this.sdlcServerClient.getWorkspacesInConflictResolutionMode(project.projectId)).map((workspace) => workspace.workspaceId);
|
|
136
|
+
this.workspaces = (yield this.sdlcServerClient.getWorkspaces(project.projectId))
|
|
137
|
+
.map((v) => Workspace.serialization.fromJson(v))
|
|
138
|
+
.filter(
|
|
139
|
+
// NOTE we don't handle workspaces that only have conflict resolution but no standard workspace
|
|
140
|
+
// since that indicates bad state of the SDLC server
|
|
141
|
+
(workspace) => !workspacesInConflictResolutionIds.includes(workspace.workspaceId));
|
|
142
|
+
if (workspaceInfo) {
|
|
143
|
+
const matchingWorkspace = this.workspaces.find((workspace) => workspace.workspaceType === workspaceInfo.workspaceType &&
|
|
144
|
+
workspace.workspaceId === workspaceInfo.workspaceId);
|
|
145
|
+
if (matchingWorkspace) {
|
|
146
|
+
this.changeWorkspace(matchingWorkspace);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this.applicationStore.navigator.goTo(generateSetupRoute(project.projectId));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
this.currentWorkspace = undefined;
|
|
154
|
+
this.applicationStore.navigator.goTo(generateSetupRoute(project.projectId));
|
|
155
|
+
}
|
|
156
|
+
this.loadWorkspacesState.pass();
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
assertErrorThrown(error);
|
|
160
|
+
this.applicationStore.log.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE), error);
|
|
161
|
+
this.applicationStore.notifyError(error);
|
|
162
|
+
this.loadWorkspacesState.fail();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
changeWorkspace(workspace) {
|
|
166
|
+
if (!this.currentProject) {
|
|
167
|
+
throw new IllegalStateError(`Can't change workspace: project is not specified`);
|
|
168
|
+
}
|
|
169
|
+
this.currentWorkspace = workspace;
|
|
170
|
+
this.applicationStore.navigator.goTo(generateSetupRoute(this.currentProject.projectId, workspace.workspaceId, workspace.workspaceType));
|
|
171
|
+
}
|
|
124
172
|
*createProject(name, description, groupId, artifactId, tags = []) {
|
|
125
173
|
this.createOrImportProjectState.inProgress();
|
|
126
174
|
try {
|
|
@@ -132,9 +180,7 @@ export class WorkspaceSetupStore {
|
|
|
132
180
|
tags,
|
|
133
181
|
})));
|
|
134
182
|
this.applicationStore.notifySuccess(`Project '${name}' is succesfully created`);
|
|
135
|
-
yield flowResult(this.
|
|
136
|
-
this.projects?.set(createdProject.projectId, createdProject);
|
|
137
|
-
this.applicationStore.navigator.goTo(generateSetupRoute(createdProject.projectId));
|
|
183
|
+
yield flowResult(this.changeProject(createdProject));
|
|
138
184
|
this.setShowCreateProjectModal(false);
|
|
139
185
|
}
|
|
140
186
|
catch (error) {
|
|
@@ -159,9 +205,7 @@ export class WorkspaceSetupStore {
|
|
|
159
205
|
projectId: report.project.projectId,
|
|
160
206
|
reviewUrl: importReview.webURL,
|
|
161
207
|
});
|
|
162
|
-
yield flowResult(this.
|
|
163
|
-
this.projects?.set(report.project.projectId, report.project);
|
|
164
|
-
this.setCurrentProjectId(report.project.projectId);
|
|
208
|
+
yield flowResult(this.changeProject(report.project));
|
|
165
209
|
}
|
|
166
210
|
catch (error) {
|
|
167
211
|
assertErrorThrown(error);
|
|
@@ -171,69 +215,29 @@ export class WorkspaceSetupStore {
|
|
|
171
215
|
this.createOrImportProjectState.reset();
|
|
172
216
|
}
|
|
173
217
|
}
|
|
174
|
-
get projectOptions() {
|
|
175
|
-
return this.projects
|
|
176
|
-
? Array.from(this.projects.values()).map(buildProjectOption)
|
|
177
|
-
: [];
|
|
178
|
-
}
|
|
179
|
-
get currentProjectWorkspaceOptions() {
|
|
180
|
-
return this.currentProjectWorkspaces
|
|
181
|
-
? Array.from(this.currentProjectWorkspaces.values()).map(buildWorkspaceOption)
|
|
182
|
-
: [];
|
|
183
|
-
}
|
|
184
|
-
*fetchWorkspaces(projectId) {
|
|
185
|
-
this.loadWorkspacesState.inProgress();
|
|
186
|
-
try {
|
|
187
|
-
const workspacesInConflictResolutionIds = (yield this.sdlcServerClient.getWorkspacesInConflictResolutionMode(projectId)).map((workspace) => workspace.workspaceId);
|
|
188
|
-
const workspaceIndex = observable(new Map());
|
|
189
|
-
(yield this.sdlcServerClient.getWorkspaces(projectId))
|
|
190
|
-
.map((v) => Workspace.serialization.fromJson(v))
|
|
191
|
-
.forEach((workspace) => {
|
|
192
|
-
// NOTE we don't handle workspaces that only have conflict resolution but no standard workspace
|
|
193
|
-
// since that indicates bad state of the SDLC server
|
|
194
|
-
if (workspacesInConflictResolutionIds.includes(workspace.workspaceId)) {
|
|
195
|
-
workspace.accessType = WorkspaceAccessType.CONFLICT_RESOLUTION;
|
|
196
|
-
}
|
|
197
|
-
workspaceIndex.set(this.buildWorkspaceCompositeId(workspace), workspace);
|
|
198
|
-
});
|
|
199
|
-
this.workspacesByProject.set(projectId, workspaceIndex);
|
|
200
|
-
}
|
|
201
|
-
catch (error) {
|
|
202
|
-
assertErrorThrown(error);
|
|
203
|
-
// TODO handle error when fetching workspaces for an individual project
|
|
204
|
-
this.applicationStore.log.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.WORKSPACE_SETUP_FAILURE), error);
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
this.loadWorkspacesState.reset();
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
buildWorkspaceCompositeId(workspace) {
|
|
211
|
-
return `${workspace.workspaceType}/${workspace.workspaceId}`;
|
|
212
|
-
}
|
|
213
218
|
*createWorkspace(projectId, workspaceId, workspaceType) {
|
|
214
219
|
this.createWorkspaceState.inProgress();
|
|
215
220
|
try {
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
const workspaceIndex = observable(new Map());
|
|
223
|
-
workspaceIndex.set(this.buildWorkspaceCompositeId(workspace), workspace);
|
|
224
|
-
this.workspacesByProject.set(projectId, workspaceIndex);
|
|
225
|
-
}
|
|
226
|
-
this.applicationStore.notifySuccess(`Workspace '${workspace.workspaceId}' is succesfully created`);
|
|
227
|
-
this.setCurrentProjectId(projectId);
|
|
228
|
-
this.setCurrentWorkspaceIdentifier(workspace);
|
|
221
|
+
const newWorkspace = Workspace.serialization.fromJson((yield this.sdlcServerClient.createWorkspace(projectId, workspaceId, workspaceType)));
|
|
222
|
+
this.applicationStore.notifySuccess(`Workspace '${newWorkspace.workspaceId}' is succesfully created`);
|
|
223
|
+
const matchingWorkspace = this.workspaces.find((workspace) => workspace.workspaceId === newWorkspace.workspaceId &&
|
|
224
|
+
workspace.workspaceType === newWorkspace.workspaceType);
|
|
225
|
+
const newWorkspaceToSelect = matchingWorkspace ?? newWorkspace;
|
|
226
|
+
this.changeWorkspace(newWorkspaceToSelect);
|
|
229
227
|
this.setShowCreateWorkspaceModal(false);
|
|
230
|
-
this
|
|
228
|
+
// NOTE: do this after closing the modal to not interfere
|
|
229
|
+
// with validation of existing workspaces in create workspace modal
|
|
230
|
+
if (!matchingWorkspace) {
|
|
231
|
+
this.workspaces.push(newWorkspace);
|
|
232
|
+
}
|
|
231
233
|
}
|
|
232
234
|
catch (error) {
|
|
233
235
|
assertErrorThrown(error);
|
|
234
236
|
this.applicationStore.log.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.WORKSPACE_SETUP_FAILURE), error);
|
|
235
237
|
this.applicationStore.notifyError(error);
|
|
236
|
-
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
this.createWorkspaceState.reset();
|
|
237
241
|
}
|
|
238
242
|
}
|
|
239
243
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSetupStore.js","sourceRoot":"","sources":["../../../src/stores/workspace-setup/WorkspaceSetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"WorkspaceSetupStore.js","sourceRoot":"","sources":["../../../src/stores/workspace-setup/WorkspaceSetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAGL,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAEL,aAAa,EACb,YAAY,EACZ,OAAO,EACP,MAAM,EACN,SAAS,GACV,MAAM,2BAA2B,CAAC;AASnC,MAAM,oCAAoC,GAAG,CAAC,CAAC;AAC/C,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAExC,MAAM,OAAO,mBAAmB;IAC9B,gBAAgB,CAA+B;IAC/C,gBAAgB,CAAmB;IACnC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,uBAAuB,CAAC,EAChE,KAAK,CACN,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC1C;gBAAS;YACR,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,CAAC;SACnC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-studio",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "Legend Studio application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"test:watch": "jest --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@finos/legend-application": "
|
|
48
|
-
"@finos/legend-art": "3.2.
|
|
49
|
-
"@finos/legend-graph": "
|
|
50
|
-
"@finos/legend-query-builder": "0.0
|
|
51
|
-
"@finos/legend-server-depot": "
|
|
52
|
-
"@finos/legend-server-sdlc": "4.0.
|
|
53
|
-
"@finos/legend-shared": "6.1.
|
|
54
|
-
"@finos/legend-storage": "3.0.
|
|
47
|
+
"@finos/legend-application": "8.0.0",
|
|
48
|
+
"@finos/legend-art": "3.2.2",
|
|
49
|
+
"@finos/legend-graph": "16.0.0",
|
|
50
|
+
"@finos/legend-query-builder": "0.1.0",
|
|
51
|
+
"@finos/legend-server-depot": "4.0.0",
|
|
52
|
+
"@finos/legend-server-sdlc": "4.0.15",
|
|
53
|
+
"@finos/legend-shared": "6.1.2",
|
|
54
|
+
"@finos/legend-storage": "3.0.11",
|
|
55
55
|
"@testing-library/react": "13.4.0",
|
|
56
|
-
"@types/react": "18.0.
|
|
56
|
+
"@types/react": "18.0.21",
|
|
57
57
|
"@types/react-dom": "18.0.6",
|
|
58
58
|
"@types/react-router-dom": "5.3.3",
|
|
59
59
|
"date-fns": "2.29.3",
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"serializr": "2.0.5"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@finos/legend-dev-utils": "2.0.
|
|
76
|
+
"@finos/legend-dev-utils": "2.0.17",
|
|
77
77
|
"@jest/globals": "29.0.3",
|
|
78
78
|
"cross-env": "7.0.3",
|
|
79
|
-
"eslint": "8.
|
|
79
|
+
"eslint": "8.24.0",
|
|
80
80
|
"jest": "29.0.3",
|
|
81
81
|
"npm-run-all": "4.1.5",
|
|
82
82
|
"rimraf": "3.0.2",
|
|
83
|
-
"sass": "1.
|
|
83
|
+
"sass": "1.55.0",
|
|
84
84
|
"typescript": "4.8.3"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|