@finos/legend-application-studio 18.1.0 → 19.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/LegendStudio.d.ts.map +1 -1
- package/lib/application/LegendStudio.js +3 -9
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts +2 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js +5 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +3 -3
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.js +11 -8
- package/lib/components/LegendStudioApplication.js.map +1 -1
- package/lib/components/editor/ActivityBar.d.ts.map +1 -1
- package/lib/components/editor/ActivityBar.js +13 -18
- package/lib/components/editor/ActivityBar.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +58 -95
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +4 -6
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/EditPanel.js +5 -5
- package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.js +2 -2
- package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +2 -2
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +4 -16
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.js +6 -32
- package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +2 -3
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.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 +14 -15
- 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 +12 -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.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +3 -3
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -4
- package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +7 -8
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +3 -3
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.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 +4 -5
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js +2 -3
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js.map +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 -3
- package/lib/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +2 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +2 -3
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.js +5 -9
- 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 +12 -15
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.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 +9 -12
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.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 +4 -5
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js +4 -4
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.js +4 -4
- 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 +17 -41
- 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 +4 -5
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +16 -16
- 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 +6 -7
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +9 -9
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js +5 -5
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +4 -2
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +2 -3
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +7 -5
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js +12 -8
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js +7 -5
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +4 -5
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +10 -7
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +3 -5
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +5 -32
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.js +2 -26
- package/lib/components/editor/side-bar/WorkspaceUpdater.js.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +3 -4
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-viewer/ProjectViewer.js +19 -33
- package/lib/components/project-viewer/ProjectViewer.js.map +1 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +4 -19
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReview.js +8 -6
- package/lib/components/workspace-review/WorkspaceReview.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.js +2 -2
- package/lib/components/workspace-review/WorkspaceReviewPanel.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +10 -6
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +4 -5
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
- package/lib/components/workspace-setup/WorkspaceSetup.js +4 -1
- 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 +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +5 -7
- package/lib/stores/EditorConfig.d.ts +0 -28
- package/lib/stores/EditorConfig.d.ts.map +1 -1
- package/lib/stores/EditorConfig.js +0 -29
- package/lib/stores/EditorConfig.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +8 -8
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/EditorSDLCState.js +4 -2
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts +27 -30
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +183 -146
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +7 -8
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +25 -17
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioCommand.d.ts +32 -0
- package/lib/stores/LegendStudioCommand.d.ts.map +1 -0
- package/lib/stores/LegendStudioCommand.js +81 -0
- package/lib/stores/LegendStudioCommand.js.map +1 -0
- package/lib/stores/LegendStudioRouter.d.ts +15 -15
- package/lib/stores/LegendStudioRouter.d.ts.map +1 -1
- package/lib/stores/LegendStudioRouter.js +37 -24
- package/lib/stores/LegendStudioRouter.js.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/GraphGenerationState.js +2 -3
- package/lib/stores/editor-state/GraphGenerationState.js.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.d.ts.map +1 -1
- package/lib/stores/editor-state/ModelImporterState.js +21 -21
- package/lib/stores/editor-state/ModelImporterState.js.map +1 -1
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js +2 -2
- package/lib/stores/editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -3
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- 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 +1 -3
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js +2 -2
- package/lib/stores/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +2 -4
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +45 -44
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/MockDataUtils.d.ts.map +1 -1
- package/lib/stores/shared/MockDataUtils.js +3 -4
- package/lib/stores/shared/MockDataUtils.js.map +1 -1
- package/lib/stores/shared/testable/TestableUtils.d.ts.map +1 -1
- package/lib/stores/shared/testable/TestableUtils.js +6 -6
- package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +1 -0
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +28 -10
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +3 -2
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +10 -10
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js +6 -8
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +20 -17
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +8 -7
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js +6 -6
- package/lib/stores/workspace-setup/WorkspaceSetupStore.js.map +1 -1
- package/package.json +14 -16
- package/src/application/LegendStudio.tsx +3 -9
- package/src/components/Core_LegendStudioApplicationPlugin.tsx +9 -0
- package/src/components/EditorComponentTestUtils.tsx +8 -2
- package/src/components/LegendStudioApplication.tsx +28 -8
- package/src/components/editor/ActivityBar.tsx +35 -73
- package/src/components/editor/Editor.tsx +135 -172
- package/src/components/editor/StatusBar.tsx +16 -13
- package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +1 -1
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +12 -16
- package/src/components/editor/edit-panel/EditPanel.tsx +14 -22
- package/src/components/editor/edit-panel/FileGenerationViewer.tsx +9 -11
- package/src/components/editor/edit-panel/FunctionEditor.tsx +2 -2
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +2 -18
- package/src/components/editor/edit-panel/ModelImporter.tsx +10 -38
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +2 -2
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +32 -33
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +28 -23
- package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +8 -9
- package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +8 -10
- package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +7 -8
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +2 -2
- package/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +9 -5
- package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +2 -2
- package/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +5 -3
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +2 -3
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +2 -3
- package/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +3 -3
- package/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +5 -9
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +23 -27
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +20 -24
- package/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +4 -5
- package/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +4 -4
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +57 -75
- package/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +7 -5
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +16 -16
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +15 -14
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +9 -9
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.tsx +5 -5
- package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +4 -2
- package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +2 -3
- package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +12 -5
- package/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +17 -11
- package/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +14 -5
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +4 -5
- package/src/components/editor/side-bar/Explorer.tsx +31 -32
- package/src/components/editor/side-bar/WorkflowManager.tsx +3 -3
- package/src/components/editor/side-bar/WorkspaceReview.tsx +5 -35
- package/src/components/editor/side-bar/WorkspaceUpdater.tsx +2 -31
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +3 -4
- package/src/components/project-viewer/ProjectViewer.tsx +65 -78
- package/src/components/shared/DiffView.tsx +3 -22
- package/src/components/workspace-review/WorkspaceReview.tsx +26 -16
- package/src/components/workspace-review/WorkspaceReviewPanel.tsx +5 -9
- package/src/components/workspace-review/WorkspaceReviewSideBar.tsx +1 -1
- package/src/components/workspace-setup/CreateProjectModal.tsx +14 -10
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +6 -5
- package/src/components/workspace-setup/WorkspaceSetup.tsx +6 -1
- package/src/index.ts +0 -1
- package/src/stores/EditorConfig.ts +0 -30
- package/src/stores/EditorGraphState.ts +9 -8
- package/src/stores/EditorSDLCState.ts +4 -2
- package/src/stores/EditorStore.ts +231 -245
- package/src/stores/EmbeddedQueryBuilderState.ts +14 -9
- package/src/stores/LegendStudioBaseStore.ts +33 -24
- package/src/stores/LegendStudioCommand.ts +83 -0
- package/src/stores/LegendStudioRouter.ts +50 -41
- package/src/stores/editor-state/GraphGenerationState.ts +3 -2
- package/src/stores/editor-state/ModelImporterState.ts +35 -23
- package/src/stores/editor-state/ProjectConfigurationEditorState.ts +2 -2
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -3
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +1 -3
- package/src/stores/editor-state/element-editor-state/testable/TestAssertionState.ts +2 -1
- package/src/stores/project-viewer/ProjectViewerStore.ts +65 -59
- package/src/stores/shared/MockDataUtils.ts +4 -3
- package/src/stores/shared/testable/TestableUtils.ts +6 -5
- package/src/stores/sidebar-state/LocalChangesState.ts +29 -9
- package/src/stores/sidebar-state/ProjectOverviewState.ts +4 -2
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +11 -10
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +6 -8
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +20 -17
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +8 -7
- package/src/stores/workspace-setup/WorkspaceSetupStore.ts +6 -6
- package/tsconfig.json +1 -2
- package/lib/components/shared/StudioLambdaEditor.d.ts +0 -41
- package/lib/components/shared/StudioLambdaEditor.d.ts.map +0 -1
- package/lib/components/shared/StudioLambdaEditor.js +0 -53
- package/lib/components/shared/StudioLambdaEditor.js.map +0 -1
- package/lib/components/shared/StudioTextInputEditor.d.ts +0 -28
- package/lib/components/shared/StudioTextInputEditor.d.ts.map +0 -1
- package/lib/components/shared/StudioTextInputEditor.js +0 -36
- package/lib/components/shared/StudioTextInputEditor.js.map +0 -1
- package/src/components/shared/StudioLambdaEditor.tsx +0 -146
- package/src/components/shared/StudioTextInputEditor.tsx +0 -83
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { computed, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
18
18
|
import type { EditorStore } from '../EditorStore.js';
|
|
19
19
|
import {
|
|
20
20
|
type GeneratorFn,
|
|
@@ -68,20 +68,32 @@ interface ProjectViewerGraphBuilderMaterial {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export class ProjectViewerStore {
|
|
71
|
-
editorStore: EditorStore;
|
|
71
|
+
readonly editorStore: EditorStore;
|
|
72
72
|
currentRevision?: Revision | undefined;
|
|
73
73
|
latestVersion?: Version | undefined;
|
|
74
74
|
revision?: Revision | undefined;
|
|
75
75
|
version?: Version | undefined;
|
|
76
|
-
|
|
76
|
+
initialEntityPath?: string | undefined;
|
|
77
77
|
projectGAVCoordinates?: ProjectGAVCoordinates | undefined;
|
|
78
78
|
workflowManagerState: WorkflowManagerState | undefined;
|
|
79
79
|
|
|
80
80
|
constructor(editorStore: EditorStore) {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
makeObservable<
|
|
82
|
+
ProjectViewerStore,
|
|
83
|
+
'initializeWithProjectInformation' | 'initializeWithGAV'
|
|
84
|
+
>(this, {
|
|
85
|
+
currentRevision: observable,
|
|
86
|
+
latestVersion: observable,
|
|
87
|
+
revision: observable,
|
|
88
|
+
version: observable,
|
|
83
89
|
projectGAVCoordinates: observable.ref,
|
|
84
|
-
|
|
90
|
+
workflowManagerState: observable.ref,
|
|
91
|
+
onLatestVersion: computed,
|
|
92
|
+
onCurrentRevision: computed,
|
|
93
|
+
initializeWithProjectInformation: flow,
|
|
94
|
+
initializeWithGAV: flow,
|
|
95
|
+
buildGraph: flow,
|
|
96
|
+
initialize: flow,
|
|
85
97
|
});
|
|
86
98
|
|
|
87
99
|
this.editorStore = editorStore;
|
|
@@ -92,6 +104,7 @@ export class ProjectViewerStore {
|
|
|
92
104
|
this.latestVersion && this.version && this.latestVersion === this.version,
|
|
93
105
|
);
|
|
94
106
|
}
|
|
107
|
+
|
|
95
108
|
get onCurrentRevision(): boolean {
|
|
96
109
|
return Boolean(
|
|
97
110
|
this.currentRevision &&
|
|
@@ -110,9 +123,9 @@ export class ProjectViewerStore {
|
|
|
110
123
|
internalizeEntityPath(params: ViewerPathParams): void {
|
|
111
124
|
const { gav, projectId, revisionId, versionId, entityPath } = params;
|
|
112
125
|
if (entityPath) {
|
|
113
|
-
this.
|
|
126
|
+
this.initialEntityPath = entityPath;
|
|
114
127
|
if (projectId) {
|
|
115
|
-
this.editorStore.applicationStore.navigator.
|
|
128
|
+
this.editorStore.applicationStore.navigator.updateCurrentLocation(
|
|
116
129
|
versionId
|
|
117
130
|
? generateViewVersionRoute(projectId, versionId)
|
|
118
131
|
: revisionId
|
|
@@ -125,35 +138,13 @@ export class ProjectViewerStore {
|
|
|
125
138
|
artifactId,
|
|
126
139
|
versionId: _versionId,
|
|
127
140
|
} = parseGAVCoordinates(gav);
|
|
128
|
-
this.editorStore.applicationStore.navigator.
|
|
141
|
+
this.editorStore.applicationStore.navigator.updateCurrentLocation(
|
|
129
142
|
generateViewProjectByGAVRoute(groupId, artifactId, _versionId),
|
|
130
143
|
);
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
146
|
}
|
|
134
147
|
|
|
135
|
-
private *initializeGraphManagerState(): GeneratorFn<void> {
|
|
136
|
-
// setup engine
|
|
137
|
-
yield this.editorStore.graphManagerState.graphManager.initialize(
|
|
138
|
-
{
|
|
139
|
-
env: this.editorStore.applicationStore.config.env,
|
|
140
|
-
tabSize: TAB_SIZE,
|
|
141
|
-
clientConfig: {
|
|
142
|
-
baseUrl: this.editorStore.applicationStore.config.engineServerUrl,
|
|
143
|
-
queryBaseUrl:
|
|
144
|
-
this.editorStore.applicationStore.config.engineQueryServerUrl,
|
|
145
|
-
enableCompression: true,
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
tracerService: this.editorStore.applicationStore.tracerService,
|
|
150
|
-
},
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
// initialize graph manager
|
|
154
|
-
yield this.editorStore.graphManagerState.initializeSystem();
|
|
155
|
-
}
|
|
156
|
-
|
|
157
148
|
/**
|
|
158
149
|
* Initialize the graph by fetching project information from the SDLC server.
|
|
159
150
|
*/
|
|
@@ -357,8 +348,23 @@ export class ProjectViewerStore {
|
|
|
357
348
|
try {
|
|
358
349
|
const stopWatch = new StopWatch();
|
|
359
350
|
|
|
360
|
-
// initialize
|
|
361
|
-
yield
|
|
351
|
+
// initialize graph manager
|
|
352
|
+
yield this.editorStore.graphManagerState.graphManager.initialize(
|
|
353
|
+
{
|
|
354
|
+
env: this.editorStore.applicationStore.config.env,
|
|
355
|
+
tabSize: TAB_SIZE,
|
|
356
|
+
clientConfig: {
|
|
357
|
+
baseUrl: this.editorStore.applicationStore.config.engineServerUrl,
|
|
358
|
+
queryBaseUrl:
|
|
359
|
+
this.editorStore.applicationStore.config.engineQueryServerUrl,
|
|
360
|
+
enableCompression: true,
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
tracerService: this.editorStore.applicationStore.tracerService,
|
|
365
|
+
},
|
|
366
|
+
);
|
|
367
|
+
yield this.editorStore.graphManagerState.initializeSystem();
|
|
362
368
|
|
|
363
369
|
// reset
|
|
364
370
|
this.editorStore.graphManagerState.resetGraph();
|
|
@@ -549,22 +555,40 @@ export class ProjectViewerStore {
|
|
|
549
555
|
if (
|
|
550
556
|
this.editorStore.graphManagerState.graphBuildState.hasSucceeded &&
|
|
551
557
|
this.editorStore.explorerTreeState.buildState.hasCompleted &&
|
|
552
|
-
this.
|
|
558
|
+
this.initialEntityPath
|
|
553
559
|
) {
|
|
554
560
|
try {
|
|
555
|
-
|
|
556
|
-
this.
|
|
561
|
+
this.editorStore.openElement(
|
|
562
|
+
this.editorStore.graphManagerState.graph.getElement(
|
|
563
|
+
this.initialEntityPath,
|
|
564
|
+
),
|
|
557
565
|
);
|
|
558
|
-
this.editorStore.openElement(element);
|
|
559
566
|
} catch {
|
|
560
|
-
const elementPath = this.
|
|
561
|
-
this.
|
|
567
|
+
const elementPath = this.initialEntityPath;
|
|
568
|
+
this.initialEntityPath = undefined;
|
|
562
569
|
throw new AssertionError(
|
|
563
|
-
`Can't find element
|
|
570
|
+
`Can't find element with path '${elementPath}'`,
|
|
564
571
|
);
|
|
565
572
|
}
|
|
566
573
|
}
|
|
567
|
-
|
|
574
|
+
|
|
575
|
+
// initialize workflow manager
|
|
576
|
+
// NOTE: We will not show workflow viewer when `GAV` coordinates are provided
|
|
577
|
+
// as we don't know which sdlc instance to fetch from.
|
|
578
|
+
// Revision will be supported once `SDLC` adds the workflow apis.
|
|
579
|
+
if (this.version) {
|
|
580
|
+
this.workflowManagerState = new ProjectVersionWorkflowManagerState(
|
|
581
|
+
this.editorStore,
|
|
582
|
+
this.editorStore.sdlcState,
|
|
583
|
+
this.version,
|
|
584
|
+
);
|
|
585
|
+
} else if (!this.projectGAVCoordinates && !this.revision) {
|
|
586
|
+
this.workflowManagerState = new ProjectWorkflowManagerState(
|
|
587
|
+
this.editorStore,
|
|
588
|
+
this.editorStore.sdlcState,
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
|
|
568
592
|
onLeave(true);
|
|
569
593
|
} catch (error) {
|
|
570
594
|
assertErrorThrown(error);
|
|
@@ -576,22 +600,4 @@ export class ProjectViewerStore {
|
|
|
576
600
|
onLeave(false);
|
|
577
601
|
}
|
|
578
602
|
}
|
|
579
|
-
|
|
580
|
-
initWorkflowManagerState(): void {
|
|
581
|
-
// NOTE: We will not show workflow viewer when `GAV` coordinates are provided
|
|
582
|
-
// as we don't know which sdlc instance to fetch from.
|
|
583
|
-
// Revision will be supported once `SDLC` adds the workflow apis.
|
|
584
|
-
if (this.version) {
|
|
585
|
-
this.workflowManagerState = new ProjectVersionWorkflowManagerState(
|
|
586
|
-
this.editorStore,
|
|
587
|
-
this.editorStore.sdlcState,
|
|
588
|
-
this.version,
|
|
589
|
-
);
|
|
590
|
-
} else if (!this.projectGAVCoordinates && !this.revision) {
|
|
591
|
-
this.workflowManagerState = new ProjectWorkflowManagerState(
|
|
592
|
-
this.editorStore,
|
|
593
|
-
this.editorStore.sdlcState,
|
|
594
|
-
);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
603
|
}
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { format, addDays } from 'date-fns';
|
|
18
17
|
import {
|
|
18
|
+
addDays,
|
|
19
19
|
assertErrorThrown,
|
|
20
|
+
formatDate,
|
|
20
21
|
Randomizer,
|
|
21
22
|
UnsupportedOperationError,
|
|
22
23
|
} from '@finos/legend-shared';
|
|
@@ -54,7 +55,7 @@ export const createMockPrimitiveProperty = (
|
|
|
54
55
|
// NOTE that `Date` is the umbrella type that comprises `StrictDate` and `DateTime`, but for simplicity, we will generate `Date` as `StrictDate`
|
|
55
56
|
case PRIMITIVE_TYPE.DATE:
|
|
56
57
|
case PRIMITIVE_TYPE.STRICTDATE:
|
|
57
|
-
return
|
|
58
|
+
return formatDate(
|
|
58
59
|
randomizer.getRandomDate(
|
|
59
60
|
new Date(Date.now()),
|
|
60
61
|
addDays(Date.now(), 100),
|
|
@@ -62,7 +63,7 @@ export const createMockPrimitiveProperty = (
|
|
|
62
63
|
DATE_FORMAT,
|
|
63
64
|
);
|
|
64
65
|
case PRIMITIVE_TYPE.DATETIME:
|
|
65
|
-
return
|
|
66
|
+
return formatDate(
|
|
66
67
|
randomizer.getRandomDate(
|
|
67
68
|
new Date(Date.now()),
|
|
68
69
|
addDays(Date.now(), 100),
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
guaranteeNonEmptyString,
|
|
45
45
|
isNonNullable,
|
|
46
46
|
returnUndefOnError,
|
|
47
|
+
UnsupportedOperationError,
|
|
47
48
|
} from '@finos/legend-shared';
|
|
48
49
|
import { EmbeddedDataType } from '../../editor-state/ExternalFormatState.js';
|
|
49
50
|
import type { EditorStore } from '../../EditorStore.js';
|
|
@@ -85,7 +86,7 @@ export class TEMPORARY_EmbeddedDataConnectionVisitor
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
visit_Connection(connection: Connection): EmbeddedData {
|
|
88
|
-
throw new
|
|
89
|
+
throw new UnsupportedOperationError();
|
|
89
90
|
}
|
|
90
91
|
visit_ConnectionPointer(connection: ConnectionPointer): EmbeddedData {
|
|
91
92
|
const packageableConnection =
|
|
@@ -93,7 +94,7 @@ export class TEMPORARY_EmbeddedDataConnectionVisitor
|
|
|
93
94
|
return packageableConnection.accept_ConnectionVisitor(this);
|
|
94
95
|
}
|
|
95
96
|
visit_ModelChainConnection(connection: ModelChainConnection): EmbeddedData {
|
|
96
|
-
throw new
|
|
97
|
+
throw new UnsupportedOperationError();
|
|
97
98
|
}
|
|
98
99
|
visit_JsonModelConnection(connection: JsonModelConnection): EmbeddedData {
|
|
99
100
|
const _class = connection.class.value;
|
|
@@ -106,15 +107,15 @@ export class TEMPORARY_EmbeddedDataConnectionVisitor
|
|
|
106
107
|
return data;
|
|
107
108
|
}
|
|
108
109
|
visit_XmlModelConnection(connection: XmlModelConnection): EmbeddedData {
|
|
109
|
-
throw new
|
|
110
|
+
throw new UnsupportedOperationError();
|
|
110
111
|
}
|
|
111
112
|
visit_FlatDataConnection(connection: FlatDataConnection): EmbeddedData {
|
|
112
|
-
throw new
|
|
113
|
+
throw new UnsupportedOperationError();
|
|
113
114
|
}
|
|
114
115
|
visit_RelationalDatabaseConnection(
|
|
115
116
|
connection: RelationalDatabaseConnection,
|
|
116
117
|
): EmbeddedData {
|
|
117
|
-
throw new
|
|
118
|
+
throw new UnsupportedOperationError();
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { action, makeAutoObservable, flowResult, flow } from 'mobx';
|
|
18
|
-
import { format } from 'date-fns';
|
|
19
18
|
import type { EditorStore } from '../EditorStore.js';
|
|
20
19
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
21
20
|
import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js';
|
|
@@ -33,6 +32,7 @@ import {
|
|
|
33
32
|
assertTrue,
|
|
34
33
|
readFileAsText,
|
|
35
34
|
ActionState,
|
|
35
|
+
formatDate,
|
|
36
36
|
} from '@finos/legend-shared';
|
|
37
37
|
import {
|
|
38
38
|
TAB_SIZE,
|
|
@@ -442,7 +442,7 @@ export class LocalChangesState {
|
|
|
442
442
|
downloadLocalChanges = (): void => {
|
|
443
443
|
const fileName = `entityChanges_(${this.sdlcState.currentProject?.name}_${
|
|
444
444
|
this.sdlcState.activeWorkspace.workspaceId
|
|
445
|
-
})_${
|
|
445
|
+
})_${formatDate(new Date(Date.now()), DATE_TIME_FORMAT)}.json`;
|
|
446
446
|
const content = JSON.stringify(
|
|
447
447
|
{
|
|
448
448
|
message: '', // TODO?
|
|
@@ -468,7 +468,7 @@ export class LocalChangesState {
|
|
|
468
468
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
469
469
|
)) as boolean;
|
|
470
470
|
if (isInConflictResolutionMode) {
|
|
471
|
-
this.editorStore.setBlockingAlert({
|
|
471
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
472
472
|
message: 'Workspace is in conflict resolution mode',
|
|
473
473
|
prompt: 'Please refresh the application',
|
|
474
474
|
});
|
|
@@ -518,12 +518,10 @@ export class LocalChangesState {
|
|
|
518
518
|
yield flowResult(
|
|
519
519
|
this.editorStore.changeDetectionState.computeAggregatedWorkspaceRemoteChanges(),
|
|
520
520
|
);
|
|
521
|
-
this.editorStore.setActionAlertInfo({
|
|
521
|
+
this.editorStore.applicationStore.setActionAlertInfo({
|
|
522
522
|
message: 'Local workspace is out-of-sync',
|
|
523
523
|
prompt: 'Please pull remote changes before pushing your local changes',
|
|
524
524
|
type: ActionAlertType.CAUTION,
|
|
525
|
-
onEnter: (): void => this.editorStore.setBlockGlobalHotkeys(true),
|
|
526
|
-
onClose: (): void => this.editorStore.setBlockGlobalHotkeys(false),
|
|
527
525
|
actions: [
|
|
528
526
|
{
|
|
529
527
|
label: 'Pull remote changes',
|
|
@@ -623,13 +621,11 @@ export class LocalChangesState {
|
|
|
623
621
|
error,
|
|
624
622
|
);
|
|
625
623
|
}
|
|
626
|
-
this.editorStore.setActionAlertInfo({
|
|
624
|
+
this.editorStore.applicationStore.setActionAlertInfo({
|
|
627
625
|
message: `Change detection engine failed to build hashes index for workspace after syncing`,
|
|
628
626
|
prompt:
|
|
629
627
|
'To fix this, you can either try to keep refreshing local changes until success or trust and reuse current workspace hashes index',
|
|
630
628
|
type: ActionAlertType.CAUTION,
|
|
631
|
-
onEnter: (): void => this.editorStore.setBlockGlobalHotkeys(true),
|
|
632
|
-
onClose: (): void => this.editorStore.setBlockGlobalHotkeys(false),
|
|
633
629
|
actions: [
|
|
634
630
|
{
|
|
635
631
|
label: 'Use local hashes index',
|
|
@@ -693,4 +689,28 @@ export class LocalChangesState {
|
|
|
693
689
|
this.pushChangesState.complete();
|
|
694
690
|
}
|
|
695
691
|
}
|
|
692
|
+
|
|
693
|
+
alertUnsavedChanges(onProceed: () => void): void {
|
|
694
|
+
if (this.hasUnpushedChanges) {
|
|
695
|
+
this.editorStore.applicationStore.setActionAlertInfo({
|
|
696
|
+
message:
|
|
697
|
+
'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
|
|
698
|
+
type: ActionAlertType.CAUTION,
|
|
699
|
+
actions: [
|
|
700
|
+
{
|
|
701
|
+
label: 'Proceed',
|
|
702
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
703
|
+
handler: (): void => onProceed(),
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
label: 'Abort',
|
|
707
|
+
type: ActionAlertActionType.PROCEED,
|
|
708
|
+
default: true,
|
|
709
|
+
},
|
|
710
|
+
],
|
|
711
|
+
});
|
|
712
|
+
} else {
|
|
713
|
+
onProceed();
|
|
714
|
+
}
|
|
715
|
+
}
|
|
696
716
|
}
|
|
@@ -117,11 +117,13 @@ export class ProjectOverviewState {
|
|
|
117
117
|
this.editorStore.applicationStore.notifyWarning(
|
|
118
118
|
'Current workspace is deleted. Redirecting to workspace setup',
|
|
119
119
|
);
|
|
120
|
-
this.editorStore.
|
|
121
|
-
this.editorStore.applicationStore.navigator.reloadToLocation(
|
|
120
|
+
this.editorStore.applicationStore.navigator.goToLocation(
|
|
122
121
|
generateSetupRoute(
|
|
123
122
|
this.editorStore.sdlcState.activeProject.projectId,
|
|
124
123
|
),
|
|
124
|
+
{
|
|
125
|
+
ignoreBlocking: true,
|
|
126
|
+
},
|
|
125
127
|
);
|
|
126
128
|
}
|
|
127
129
|
} catch (error) {
|
|
@@ -206,7 +206,7 @@ export class WorkspaceReviewState {
|
|
|
206
206
|
*recreateWorkspaceAfterCommittingReview(): GeneratorFn<void> {
|
|
207
207
|
try {
|
|
208
208
|
this.isRecreatingWorkspaceAfterCommittingReview = true;
|
|
209
|
-
this.editorStore.setBlockingAlert({
|
|
209
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
210
210
|
message: 'Recreating workspace...',
|
|
211
211
|
prompt: 'Please do not close the application',
|
|
212
212
|
showLoading: true,
|
|
@@ -216,8 +216,9 @@ export class WorkspaceReviewState {
|
|
|
216
216
|
this.sdlcState.activeWorkspace.workspaceId,
|
|
217
217
|
this.sdlcState.activeWorkspace.workspaceType,
|
|
218
218
|
);
|
|
219
|
-
this.editorStore.
|
|
220
|
-
|
|
219
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
220
|
+
ignoreBlocking: true,
|
|
221
|
+
});
|
|
221
222
|
} catch (error) {
|
|
222
223
|
assertErrorThrown(error);
|
|
223
224
|
this.editorStore.applicationStore.log.error(
|
|
@@ -226,7 +227,7 @@ export class WorkspaceReviewState {
|
|
|
226
227
|
);
|
|
227
228
|
this.editorStore.applicationStore.notifyError(error);
|
|
228
229
|
} finally {
|
|
229
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
230
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
230
231
|
this.isRecreatingWorkspaceAfterCommittingReview = false;
|
|
231
232
|
}
|
|
232
233
|
}
|
|
@@ -324,7 +325,7 @@ export class WorkspaceReviewState {
|
|
|
324
325
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
325
326
|
)) as boolean;
|
|
326
327
|
if (isInConflictResolutionMode) {
|
|
327
|
-
this.editorStore.setBlockingAlert({
|
|
328
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
328
329
|
message: 'Workspace is in conflict resolution mode',
|
|
329
330
|
prompt: 'Please refresh the application',
|
|
330
331
|
});
|
|
@@ -344,12 +345,10 @@ export class WorkspaceReviewState {
|
|
|
344
345
|
review.id,
|
|
345
346
|
{ message: `${review.title} [review]` },
|
|
346
347
|
);
|
|
347
|
-
this.editorStore.setActionAlertInfo({
|
|
348
|
+
this.editorStore.applicationStore.setActionAlertInfo({
|
|
348
349
|
message: 'Committed review successfully',
|
|
349
350
|
prompt:
|
|
350
351
|
'You can create a new workspace with the same name or leave for the start page',
|
|
351
|
-
onEnter: (): void => this.editorStore.setBlockGlobalHotkeys(true),
|
|
352
|
-
onClose: (): void => this.editorStore.setBlockGlobalHotkeys(false),
|
|
353
352
|
actions: [
|
|
354
353
|
{
|
|
355
354
|
label: 'Create new workspace',
|
|
@@ -362,11 +361,13 @@ export class WorkspaceReviewState {
|
|
|
362
361
|
label: 'Leave',
|
|
363
362
|
type: ActionAlertActionType.PROCEED,
|
|
364
363
|
handler: (): void => {
|
|
365
|
-
this.editorStore.
|
|
366
|
-
this.editorStore.applicationStore.navigator.reloadToLocation(
|
|
364
|
+
this.editorStore.applicationStore.navigator.goToLocation(
|
|
367
365
|
generateSetupRoute(
|
|
368
366
|
this.editorStore.sdlcState.activeProject.projectId,
|
|
369
367
|
),
|
|
368
|
+
{
|
|
369
|
+
ignoreBlocking: true,
|
|
370
|
+
},
|
|
370
371
|
);
|
|
371
372
|
},
|
|
372
373
|
default: true,
|
|
@@ -434,7 +434,7 @@ export class WorkspaceSyncState {
|
|
|
434
434
|
*pullChanges(): GeneratorFn<void> {
|
|
435
435
|
try {
|
|
436
436
|
assertTrue(this.sdlcState.isWorkspaceOutOfSync);
|
|
437
|
-
this.editorStore.setBlockingAlert({
|
|
437
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
438
438
|
message: `Pulling latest changes...`,
|
|
439
439
|
showLoading: true,
|
|
440
440
|
});
|
|
@@ -451,14 +451,12 @@ export class WorkspaceSyncState {
|
|
|
451
451
|
this.editorStore.changeDetectionState.potentialWorkspacePullConflicts;
|
|
452
452
|
}
|
|
453
453
|
if (conflicts.length) {
|
|
454
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
455
|
-
this.editorStore.setActionAlertInfo({
|
|
454
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
455
|
+
this.editorStore.applicationStore.setActionAlertInfo({
|
|
456
456
|
message: 'Conflicts found while pulling changes',
|
|
457
457
|
prompt:
|
|
458
458
|
'You can either force-pull (override local changes) or resolve these conflicts manually',
|
|
459
459
|
type: ActionAlertType.CAUTION,
|
|
460
|
-
onEnter: (): void => this.editorStore.setBlockGlobalHotkeys(true),
|
|
461
|
-
onClose: (): void => this.editorStore.setBlockGlobalHotkeys(false),
|
|
462
460
|
actions: [
|
|
463
461
|
{
|
|
464
462
|
label: 'Resolve merge conflicts',
|
|
@@ -550,13 +548,13 @@ export class WorkspaceSyncState {
|
|
|
550
548
|
`Can't force-pull remote workspace changes. Error: ${error.message}`,
|
|
551
549
|
);
|
|
552
550
|
} finally {
|
|
553
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
551
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
554
552
|
}
|
|
555
553
|
}
|
|
556
554
|
|
|
557
555
|
*applyResolutionChanges(): GeneratorFn<void> {
|
|
558
556
|
try {
|
|
559
|
-
this.editorStore.setBlockingAlert({
|
|
557
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
560
558
|
message: `Applying resolutions and reloading graph...`,
|
|
561
559
|
showLoading: true,
|
|
562
560
|
});
|
|
@@ -572,7 +570,7 @@ export class WorkspaceSyncState {
|
|
|
572
570
|
`Can't apply resolutions to local workspace. Error: ${error.message}`,
|
|
573
571
|
);
|
|
574
572
|
} finally {
|
|
575
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
573
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
576
574
|
}
|
|
577
575
|
}
|
|
578
576
|
}
|
|
@@ -464,7 +464,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
464
464
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
465
465
|
)) as boolean;
|
|
466
466
|
if (!isInConflictResolutionMode) {
|
|
467
|
-
this.editorStore.setBlockingAlert({
|
|
467
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
468
468
|
message: 'Workspace is no longer in conflict resolution mode',
|
|
469
469
|
prompt: 'Please refresh the application',
|
|
470
470
|
});
|
|
@@ -476,7 +476,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
476
476
|
error instanceof NetworkClientError &&
|
|
477
477
|
error.response.status === HttpStatus.NOT_FOUND
|
|
478
478
|
) {
|
|
479
|
-
this.editorStore.setBlockingAlert({
|
|
479
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
480
480
|
message: 'Current project or workspace no longer exists',
|
|
481
481
|
prompt: 'Please refresh the application',
|
|
482
482
|
});
|
|
@@ -490,7 +490,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
490
490
|
|
|
491
491
|
try {
|
|
492
492
|
this.isAcceptingConflictResolution = true;
|
|
493
|
-
this.editorStore.setBlockingAlert({
|
|
493
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
494
494
|
message: 'Accepting conflict resolution...',
|
|
495
495
|
prompt: 'Please do not close the application',
|
|
496
496
|
showLoading: true,
|
|
@@ -512,8 +512,9 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
512
512
|
revisionId: this.sdlcState.activeRevision.id,
|
|
513
513
|
},
|
|
514
514
|
);
|
|
515
|
-
this.editorStore.
|
|
516
|
-
|
|
515
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
516
|
+
ignoreBlocking: true,
|
|
517
|
+
});
|
|
517
518
|
} catch (error) {
|
|
518
519
|
assertErrorThrown(error);
|
|
519
520
|
this.editorStore.applicationStore.log.error(
|
|
@@ -533,7 +534,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
533
534
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
534
535
|
)) as boolean;
|
|
535
536
|
if (!isInConflictResolutionMode) {
|
|
536
|
-
this.editorStore.setBlockingAlert({
|
|
537
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
537
538
|
message: 'Workspace is no longer in conflict resolution mode',
|
|
538
539
|
prompt: 'Please refresh the application',
|
|
539
540
|
});
|
|
@@ -545,7 +546,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
545
546
|
error instanceof NetworkClientError &&
|
|
546
547
|
error.response.status === HttpStatus.NOT_FOUND
|
|
547
548
|
) {
|
|
548
|
-
this.editorStore.setBlockingAlert({
|
|
549
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
549
550
|
message: 'Current project or workspace no longer exists',
|
|
550
551
|
prompt: 'Please refresh the application',
|
|
551
552
|
});
|
|
@@ -559,7 +560,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
559
560
|
|
|
560
561
|
try {
|
|
561
562
|
this.isDiscardingConflictResolutionChanges = true;
|
|
562
|
-
this.editorStore.setBlockingAlert({
|
|
563
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
563
564
|
message: 'Discarding conflict resolution changes...',
|
|
564
565
|
prompt: 'Please do not close the application',
|
|
565
566
|
showLoading: true,
|
|
@@ -568,8 +569,9 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
568
569
|
this.sdlcState.activeProject.projectId,
|
|
569
570
|
this.sdlcState.activeWorkspace,
|
|
570
571
|
);
|
|
571
|
-
this.editorStore.
|
|
572
|
-
|
|
572
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
573
|
+
ignoreBlocking: true,
|
|
574
|
+
});
|
|
573
575
|
} catch (error) {
|
|
574
576
|
assertErrorThrown(error);
|
|
575
577
|
this.editorStore.applicationStore.log.error(
|
|
@@ -589,7 +591,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
589
591
|
this.sdlcState.checkIfCurrentWorkspaceIsInConflictResolutionMode(),
|
|
590
592
|
)) as boolean;
|
|
591
593
|
if (!isInConflictResolutionMode) {
|
|
592
|
-
this.editorStore.setBlockingAlert({
|
|
594
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
593
595
|
message: 'Workspace is no longer in conflict resolution mode',
|
|
594
596
|
prompt: 'Please refresh the application',
|
|
595
597
|
});
|
|
@@ -601,7 +603,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
601
603
|
error instanceof NetworkClientError &&
|
|
602
604
|
error.response.status === HttpStatus.NOT_FOUND
|
|
603
605
|
) {
|
|
604
|
-
this.editorStore.setBlockingAlert({
|
|
606
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
605
607
|
message: 'Current project or workspace no longer exists',
|
|
606
608
|
prompt: 'Please refresh the application',
|
|
607
609
|
});
|
|
@@ -615,7 +617,7 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
615
617
|
|
|
616
618
|
try {
|
|
617
619
|
this.isAbortingConflictResolution = true;
|
|
618
|
-
this.editorStore.setBlockingAlert({
|
|
620
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
619
621
|
message: 'Aborting conflict resolution...',
|
|
620
622
|
prompt: 'Please do not close the application',
|
|
621
623
|
showLoading: true,
|
|
@@ -624,8 +626,9 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
624
626
|
this.sdlcState.activeProject.projectId,
|
|
625
627
|
this.sdlcState.activeWorkspace,
|
|
626
628
|
);
|
|
627
|
-
this.editorStore.
|
|
628
|
-
|
|
629
|
+
this.editorStore.applicationStore.navigator.reload({
|
|
630
|
+
ignoreBlocking: true,
|
|
631
|
+
});
|
|
629
632
|
} catch (error) {
|
|
630
633
|
assertErrorThrown(error);
|
|
631
634
|
this.editorStore.applicationStore.log.error(
|
|
@@ -716,13 +719,13 @@ export class WorkspaceUpdateConflictResolutionState extends AbstractConflictReso
|
|
|
716
719
|
*promptBuildGraphAfterAllConflictsResolved(): GeneratorFn<void> {
|
|
717
720
|
if (!this.conflicts.length) {
|
|
718
721
|
this.confirmHasResolvedAllConflicts();
|
|
719
|
-
this.editorStore.setBlockingAlert({
|
|
722
|
+
this.editorStore.applicationStore.setBlockingAlert({
|
|
720
723
|
message: 'Building graph...',
|
|
721
724
|
prompt: 'Please do not close the application',
|
|
722
725
|
showLoading: true,
|
|
723
726
|
});
|
|
724
727
|
yield flowResult(this.buildGraphInConflictResolutionMode());
|
|
725
|
-
this.editorStore.setBlockingAlert(undefined);
|
|
728
|
+
this.editorStore.applicationStore.setBlockingAlert(undefined);
|
|
726
729
|
}
|
|
727
730
|
}
|
|
728
731
|
}
|