@finos/legend-application-studio 19.0.0 → 20.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 +6 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +7 -0
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts +1 -1
- package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/EditorComponentTestUtils.js +23 -50
- package/lib/components/EditorComponentTestUtils.js.map +1 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts +0 -1
- package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
- package/lib/components/LegendStudioApplication.d.ts +0 -1
- package/lib/components/LegendStudioApplication.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.d.ts +0 -1
- package/lib/components/editor/StatusBar.d.ts.map +1 -1
- package/lib/components/editor/StatusBar.js +10 -3
- package/lib/components/editor/StatusBar.js.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +0 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js +11 -3
- package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
- package/lib/components/editor/aux-panel/Console.d.ts +0 -1
- package/lib/components/editor/aux-panel/Console.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/Console.js +2 -1
- package/lib/components/editor/aux-panel/Console.js.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts +0 -1
- package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
- package/lib/components/editor/aux-panel/DevTool.js +4 -7
- package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
- package/lib/components/editor/aux-panel/Problems.d.ts +19 -0
- package/lib/components/editor/aux-panel/Problems.d.ts.map +1 -0
- package/lib/components/editor/aux-panel/Problems.js +48 -0
- package/lib/components/editor/aux-panel/Problems.js.map +1 -0
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts +0 -1
- package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/FunctionEditor.js +31 -5
- package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/GrammarTextEditor.js +36 -25
- package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
- package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -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 +16 -16
- 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 +0 -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 +4 -4
- 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 +0 -1
- package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -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 +20 -6
- package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
- package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -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/ElementNativeView.d.ts +0 -1
- package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts +0 -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_SchemaSetModelGenerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +2 -2
- package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -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 -2
- 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 +0 -1
- package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
- package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +15 -9
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
- package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +3 -3
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
- package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
- package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
- package/lib/components/shared/DiffView.d.ts +0 -1
- package/lib/components/shared/DiffView.d.ts.map +1 -1
- package/lib/components/shared/DiffView.js +2 -2
- package/lib/components/shared/DiffView.js.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
- package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts +0 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +0 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +6 -6
- package/lib/stores/ChangeDetectionState.d.ts +2 -0
- package/lib/stores/ChangeDetectionState.d.ts.map +1 -1
- package/lib/stores/ChangeDetectionState.js +12 -6
- package/lib/stores/ChangeDetectionState.js.map +1 -1
- package/lib/stores/EditorConfig.d.ts +2 -1
- package/lib/stores/EditorConfig.d.ts.map +1 -1
- package/lib/stores/EditorConfig.js +1 -0
- package/lib/stores/EditorConfig.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +17 -16
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +152 -94
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.d.ts +6 -6
- package/lib/stores/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/EditorSDLCState.js +52 -27
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.js +1 -1
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/editor/NewElementState.d.ts.map +1 -1
- package/lib/stores/editor/NewElementState.js +14 -5
- package/lib/stores/editor/NewElementState.js.map +1 -1
- package/lib/stores/editor/StandardEditorMode.d.ts.map +1 -1
- package/lib/stores/editor/StandardEditorMode.js +2 -2
- package/lib/stores/editor/StandardEditorMode.js.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.d.ts +3 -3
- package/lib/stores/editor-state/FileGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/FileGenerationState.js +9 -5
- package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.d.ts +6 -4
- package/lib/stores/editor-state/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/GrammarTextEditorState.js +14 -8
- package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.d.ts +0 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.js +0 -5
- package/lib/stores/editor-state/element-editor-state/ClassEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts +0 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js +0 -3
- package/lib/stores/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts +2 -2
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +5 -4
- package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts +0 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js +0 -4
- package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +0 -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 +0 -6
- package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +6 -6
- 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 +24 -14
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts +6 -6
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +30 -15
- 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 +4 -4
- 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 +54 -44
- package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/PackageTreeUtils.d.ts +1 -0
- package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -1
- package/lib/stores/shared/PackageTreeUtils.js +5 -2
- package/lib/stores/shared/PackageTreeUtils.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.d.ts +13 -13
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +85 -78
- 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 +19 -4
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.d.ts +8 -8
- package/lib/stores/sidebar-state/WorkflowManagerState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkflowManagerState.js +15 -11
- package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts +3 -3
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +21 -6
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts +2 -2
- package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js +9 -7
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts +2 -2
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +8 -4
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts +2 -2
- package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js +27 -10
- package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
- package/package.json +15 -15
- package/src/application/LegendStudioApplicationConfig.ts +7 -0
- package/src/components/EditorComponentTestUtils.tsx +64 -60
- package/src/components/editor/StatusBar.tsx +38 -3
- package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +32 -10
- package/src/components/editor/aux-panel/Console.tsx +4 -3
- package/src/components/editor/aux-panel/DevTool.tsx +47 -79
- package/src/components/editor/aux-panel/Problems.tsx +103 -0
- package/src/components/editor/edit-panel/FunctionEditor.tsx +49 -3
- package/src/components/editor/edit-panel/GrammarTextEditor.tsx +48 -36
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +61 -61
- package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +21 -25
- package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +23 -23
- package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +2 -1
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +19 -22
- package/src/components/editor/side-bar/Explorer.tsx +34 -10
- package/src/components/editor/side-bar/ProjectOverview.tsx +5 -3
- package/src/components/shared/DiffView.tsx +2 -2
- package/src/stores/ChangeDetectionState.ts +17 -8
- package/src/stores/EditorConfig.ts +1 -0
- package/src/stores/EditorGraphState.ts +223 -136
- package/src/stores/EditorSDLCState.ts +65 -30
- package/src/stores/EditorStore.ts +1 -1
- package/src/stores/EmbeddedQueryBuilderState.ts +1 -1
- package/src/stores/editor/NewElementState.ts +24 -5
- package/src/stores/editor/StandardEditorMode.ts +4 -2
- package/src/stores/editor-state/FileGenerationState.ts +19 -8
- package/src/stores/editor-state/GrammarTextEditorState.ts +18 -10
- package/src/stores/editor-state/element-editor-state/ClassEditorState.ts +0 -12
- package/src/stores/editor-state/element-editor-state/ElementEditorState.ts +0 -4
- package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +8 -6
- package/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +0 -5
- package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +0 -11
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +29 -15
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +37 -23
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +4 -3
- package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +63 -48
- package/src/stores/project-viewer/ProjectViewerStore.ts +5 -3
- package/src/stores/shared/PackageTreeUtils.ts +10 -1
- package/src/stores/sidebar-state/LocalChangesState.ts +151 -142
- package/src/stores/sidebar-state/ProjectOverviewState.ts +19 -4
- package/src/stores/sidebar-state/WorkflowManagerState.ts +28 -31
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +24 -8
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +11 -16
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +11 -7
- package/src/stores/workspace-review/WorkspaceReviewStore.ts +39 -12
- package/tsconfig.json +1 -0
|
@@ -14,7 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
action,
|
|
19
|
+
makeObservable,
|
|
20
|
+
flowResult,
|
|
21
|
+
flow,
|
|
22
|
+
observable,
|
|
23
|
+
computed,
|
|
24
|
+
} from 'mobx';
|
|
18
25
|
import type { EditorStore } from '../EditorStore.js';
|
|
19
26
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
20
27
|
import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js';
|
|
@@ -55,8 +62,8 @@ import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-edi
|
|
|
55
62
|
import { DATE_TIME_FORMAT } from '@finos/legend-graph';
|
|
56
63
|
|
|
57
64
|
class PatchLoaderState {
|
|
58
|
-
editorStore: EditorStore;
|
|
59
|
-
sdlcState: EditorSDLCState;
|
|
65
|
+
readonly editorStore: EditorStore;
|
|
66
|
+
readonly sdlcState: EditorSDLCState;
|
|
60
67
|
|
|
61
68
|
changes: EntityChange[] | undefined;
|
|
62
69
|
currentChanges: EntityChange[] = [];
|
|
@@ -65,19 +72,37 @@ class PatchLoaderState {
|
|
|
65
72
|
isValidPatch = false;
|
|
66
73
|
|
|
67
74
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
makeObservable(this, {
|
|
76
|
+
changes: observable,
|
|
77
|
+
currentChanges: observable,
|
|
78
|
+
isLoadingChanges: observable,
|
|
79
|
+
showModal: observable,
|
|
80
|
+
isValidPatch: observable,
|
|
81
|
+
overiddingChanges: computed,
|
|
71
82
|
openModal: action,
|
|
72
83
|
closeModal: action,
|
|
84
|
+
setIsValidPatch: action,
|
|
85
|
+
setPatchChanges: action,
|
|
73
86
|
deleteChange: action,
|
|
74
87
|
loadPatchFile: flow,
|
|
88
|
+
applyChanges: flow,
|
|
75
89
|
});
|
|
76
90
|
|
|
77
91
|
this.editorStore = editorStore;
|
|
78
92
|
this.sdlcState = sdlcState;
|
|
79
93
|
}
|
|
80
94
|
|
|
95
|
+
get overiddingChanges(): EntityChange[] {
|
|
96
|
+
if (this.changes?.length) {
|
|
97
|
+
return this.changes.filter((change) =>
|
|
98
|
+
this.currentChanges.find(
|
|
99
|
+
(local) => local.entityPath === change.entityPath,
|
|
100
|
+
),
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
return [];
|
|
104
|
+
}
|
|
105
|
+
|
|
81
106
|
openModal(localChanges: EntityChange[]): void {
|
|
82
107
|
this.currentChanges = localChanges;
|
|
83
108
|
this.showModal = true;
|
|
@@ -103,17 +128,6 @@ class PatchLoaderState {
|
|
|
103
128
|
}
|
|
104
129
|
}
|
|
105
130
|
|
|
106
|
-
get overiddingChanges(): EntityChange[] {
|
|
107
|
-
if (this.changes?.length) {
|
|
108
|
-
return this.changes.filter((change) =>
|
|
109
|
-
this.currentChanges.find(
|
|
110
|
-
(local) => local.entityPath === change.entityPath,
|
|
111
|
-
),
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
return [];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
131
|
*loadPatchFile(file: File): GeneratorFn<void> {
|
|
118
132
|
try {
|
|
119
133
|
this.setPatchChanges(undefined);
|
|
@@ -161,20 +175,21 @@ class PatchLoaderState {
|
|
|
161
175
|
}
|
|
162
176
|
|
|
163
177
|
export class LocalChangesState {
|
|
164
|
-
editorStore: EditorStore;
|
|
165
|
-
sdlcState: EditorSDLCState;
|
|
166
|
-
workspaceSyncState: WorkspaceSyncState;
|
|
167
|
-
pushChangesState = ActionState.create();
|
|
168
|
-
refreshLocalChangesDetectorState = ActionState.create();
|
|
169
|
-
|
|
170
|
-
|
|
178
|
+
readonly editorStore: EditorStore;
|
|
179
|
+
readonly sdlcState: EditorSDLCState;
|
|
180
|
+
readonly workspaceSyncState: WorkspaceSyncState;
|
|
181
|
+
readonly pushChangesState = ActionState.create();
|
|
182
|
+
readonly refreshLocalChangesDetectorState = ActionState.create();
|
|
183
|
+
readonly refreshWorkspaceSyncStatusState = ActionState.create();
|
|
184
|
+
readonly patchLoaderState: PatchLoaderState;
|
|
171
185
|
|
|
172
186
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
openLocalChange: action,
|
|
187
|
+
makeObservable(this, {
|
|
188
|
+
hasUnpushedChanges: computed,
|
|
189
|
+
openPotentialWorkspacePullConflict: action,
|
|
177
190
|
refreshWorkspaceSyncStatus: flow,
|
|
191
|
+
refreshLocalChanges: flow,
|
|
192
|
+
pushLocalChanges: flow,
|
|
178
193
|
});
|
|
179
194
|
|
|
180
195
|
this.editorStore = editorStore;
|
|
@@ -190,15 +205,57 @@ export class LocalChangesState {
|
|
|
190
205
|
);
|
|
191
206
|
}
|
|
192
207
|
|
|
208
|
+
downloadLocalChanges(): void {
|
|
209
|
+
const fileName = `entityChanges_(${this.sdlcState.currentProject?.name}_${
|
|
210
|
+
this.sdlcState.activeWorkspace.workspaceId
|
|
211
|
+
})_${formatDate(new Date(Date.now()), DATE_TIME_FORMAT)}.json`;
|
|
212
|
+
const content = JSON.stringify(
|
|
213
|
+
{
|
|
214
|
+
message: '', // TODO?
|
|
215
|
+
entityChanges: this.editorStore.graphState.computeLocalEntityChanges(),
|
|
216
|
+
revisionId: this.sdlcState.activeRevision.id,
|
|
217
|
+
},
|
|
218
|
+
undefined,
|
|
219
|
+
TAB_SIZE,
|
|
220
|
+
);
|
|
221
|
+
downloadFileUsingDataURI(fileName, content, ContentType.APPLICATION_JSON);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
alertUnsavedChanges(onProceed: () => void): void {
|
|
225
|
+
if (this.hasUnpushedChanges) {
|
|
226
|
+
this.editorStore.applicationStore.setActionAlertInfo({
|
|
227
|
+
message:
|
|
228
|
+
'Unsaved changes to your query will be lost if you continue. Do you still want to proceed?',
|
|
229
|
+
type: ActionAlertType.CAUTION,
|
|
230
|
+
actions: [
|
|
231
|
+
{
|
|
232
|
+
label: 'Proceed',
|
|
233
|
+
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
|
234
|
+
handler: (): void => onProceed(),
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
label: 'Abort',
|
|
238
|
+
type: ActionAlertActionType.PROCEED,
|
|
239
|
+
default: true,
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
});
|
|
243
|
+
} else {
|
|
244
|
+
onProceed();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
193
248
|
openLocalChange(diff: EntityDiff): void {
|
|
194
249
|
const fromEntityGetter = (
|
|
195
250
|
entityPath: string | undefined,
|
|
196
|
-
): Entity | undefined =>
|
|
197
|
-
entityPath
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
251
|
+
): Entity | undefined => {
|
|
252
|
+
if (entityPath) {
|
|
253
|
+
return this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.entities.find(
|
|
254
|
+
(e) => e.path === entityPath,
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
return undefined;
|
|
258
|
+
};
|
|
202
259
|
const toEntityGetter = (
|
|
203
260
|
entityPath: string | undefined,
|
|
204
261
|
): Entity | undefined => {
|
|
@@ -250,31 +307,23 @@ export class LocalChangesState {
|
|
|
250
307
|
const fromEntityGetter = (
|
|
251
308
|
entityPath: string | undefined,
|
|
252
309
|
): Entity | undefined => {
|
|
253
|
-
if (
|
|
254
|
-
return
|
|
255
|
-
|
|
256
|
-
const element =
|
|
257
|
-
this.editorStore.graphManagerState.graph.getNullableElement(entityPath);
|
|
258
|
-
if (!element) {
|
|
259
|
-
return undefined;
|
|
260
|
-
}
|
|
261
|
-
const entity =
|
|
262
|
-
this.editorStore.graphManagerState.graphManager.elementToEntity(
|
|
263
|
-
element,
|
|
264
|
-
{
|
|
265
|
-
pruneSourceInformation: true,
|
|
266
|
-
},
|
|
310
|
+
if (entityPath) {
|
|
311
|
+
return this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.entities.find(
|
|
312
|
+
(e) => e.path === entityPath,
|
|
267
313
|
);
|
|
268
|
-
|
|
314
|
+
}
|
|
315
|
+
return undefined;
|
|
269
316
|
};
|
|
270
317
|
const toEntityGetter = (
|
|
271
318
|
entityPath: string | undefined,
|
|
272
|
-
): Entity | undefined =>
|
|
273
|
-
entityPath
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
319
|
+
): Entity | undefined => {
|
|
320
|
+
if (entityPath) {
|
|
321
|
+
return this.editorStore.changeDetectionState.workspaceRemoteLatestRevisionState.entities.find(
|
|
322
|
+
(e) => e.path === entityPath,
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
return undefined;
|
|
326
|
+
};
|
|
278
327
|
const fromEntity = EntityDiff.shouldOldEntityExist(diff)
|
|
279
328
|
? guaranteeNonNullable(
|
|
280
329
|
fromEntityGetter(diff.getValidatedOldPath()),
|
|
@@ -302,6 +351,53 @@ export class LocalChangesState {
|
|
|
302
351
|
);
|
|
303
352
|
}
|
|
304
353
|
|
|
354
|
+
openPotentialWorkspacePullConflict(conflict: EntityChangeConflict): void {
|
|
355
|
+
const baseEntityGetter = (
|
|
356
|
+
entityPath: string | undefined,
|
|
357
|
+
): Entity | undefined =>
|
|
358
|
+
entityPath
|
|
359
|
+
? this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.entities.find(
|
|
360
|
+
(e) => e.path === entityPath,
|
|
361
|
+
)
|
|
362
|
+
: undefined;
|
|
363
|
+
const currentChangeEntityGetter = (
|
|
364
|
+
entityPath: string | undefined,
|
|
365
|
+
): Entity | undefined =>
|
|
366
|
+
entityPath
|
|
367
|
+
? this.editorStore.graphManagerState.graph.allOwnElements
|
|
368
|
+
.map((element) =>
|
|
369
|
+
this.editorStore.graphManagerState.graphManager.elementToEntity(
|
|
370
|
+
element,
|
|
371
|
+
),
|
|
372
|
+
)
|
|
373
|
+
.find((e) => e.path === entityPath)
|
|
374
|
+
: undefined;
|
|
375
|
+
const incomingChangeEntityGetter = (
|
|
376
|
+
entityPath: string | undefined,
|
|
377
|
+
): Entity | undefined =>
|
|
378
|
+
entityPath
|
|
379
|
+
? this.editorStore.changeDetectionState.workspaceRemoteLatestRevisionState.entities.find(
|
|
380
|
+
(e) => e.path === entityPath,
|
|
381
|
+
)
|
|
382
|
+
: undefined;
|
|
383
|
+
const conflictEditorState = new EntityChangeConflictEditorState(
|
|
384
|
+
this.editorStore,
|
|
385
|
+
this.editorStore.conflictResolutionState,
|
|
386
|
+
conflict.entityPath,
|
|
387
|
+
SPECIAL_REVISION_ALIAS.WORKSPACE_BASE,
|
|
388
|
+
SPECIAL_REVISION_ALIAS.LOCAL,
|
|
389
|
+
SPECIAL_REVISION_ALIAS.WORKSPACE_HEAD,
|
|
390
|
+
baseEntityGetter(conflict.entityPath),
|
|
391
|
+
currentChangeEntityGetter(conflict.entityPath),
|
|
392
|
+
incomingChangeEntityGetter(conflict.entityPath),
|
|
393
|
+
baseEntityGetter,
|
|
394
|
+
currentChangeEntityGetter,
|
|
395
|
+
incomingChangeEntityGetter,
|
|
396
|
+
);
|
|
397
|
+
conflictEditorState.setReadOnly(true);
|
|
398
|
+
this.editorStore.openEntityChangeConflict(conflictEditorState);
|
|
399
|
+
}
|
|
400
|
+
|
|
305
401
|
*refreshLocalChanges(): GeneratorFn<void> {
|
|
306
402
|
const startTime = Date.now();
|
|
307
403
|
this.refreshLocalChangesDetectorState.inProgress();
|
|
@@ -392,69 +488,6 @@ export class LocalChangesState {
|
|
|
392
488
|
}
|
|
393
489
|
}
|
|
394
490
|
|
|
395
|
-
openPotentialWorkspacePullConflict(conflict: EntityChangeConflict): void {
|
|
396
|
-
const baseEntityGetter = (
|
|
397
|
-
entityPath: string | undefined,
|
|
398
|
-
): Entity | undefined =>
|
|
399
|
-
entityPath
|
|
400
|
-
? this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.entities.find(
|
|
401
|
-
(e) => e.path === entityPath,
|
|
402
|
-
)
|
|
403
|
-
: undefined;
|
|
404
|
-
const currentChangeEntityGetter = (
|
|
405
|
-
entityPath: string | undefined,
|
|
406
|
-
): Entity | undefined =>
|
|
407
|
-
entityPath
|
|
408
|
-
? this.editorStore.graphManagerState.graph.allOwnElements
|
|
409
|
-
.map((element) =>
|
|
410
|
-
this.editorStore.graphManagerState.graphManager.elementToEntity(
|
|
411
|
-
element,
|
|
412
|
-
),
|
|
413
|
-
)
|
|
414
|
-
.find((e) => e.path === entityPath)
|
|
415
|
-
: undefined;
|
|
416
|
-
const incomingChangeEntityGetter = (
|
|
417
|
-
entityPath: string | undefined,
|
|
418
|
-
): Entity | undefined =>
|
|
419
|
-
entityPath
|
|
420
|
-
? this.editorStore.changeDetectionState.workspaceRemoteLatestRevisionState.entities.find(
|
|
421
|
-
(e) => e.path === entityPath,
|
|
422
|
-
)
|
|
423
|
-
: undefined;
|
|
424
|
-
const conflictEditorState = new EntityChangeConflictEditorState(
|
|
425
|
-
this.editorStore,
|
|
426
|
-
this.editorStore.conflictResolutionState,
|
|
427
|
-
conflict.entityPath,
|
|
428
|
-
SPECIAL_REVISION_ALIAS.WORKSPACE_BASE,
|
|
429
|
-
SPECIAL_REVISION_ALIAS.LOCAL,
|
|
430
|
-
SPECIAL_REVISION_ALIAS.WORKSPACE_HEAD,
|
|
431
|
-
baseEntityGetter(conflict.entityPath),
|
|
432
|
-
currentChangeEntityGetter(conflict.entityPath),
|
|
433
|
-
incomingChangeEntityGetter(conflict.entityPath),
|
|
434
|
-
baseEntityGetter,
|
|
435
|
-
currentChangeEntityGetter,
|
|
436
|
-
incomingChangeEntityGetter,
|
|
437
|
-
);
|
|
438
|
-
conflictEditorState.setReadOnly(true);
|
|
439
|
-
this.editorStore.openEntityChangeConflict(conflictEditorState);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
downloadLocalChanges = (): void => {
|
|
443
|
-
const fileName = `entityChanges_(${this.sdlcState.currentProject?.name}_${
|
|
444
|
-
this.sdlcState.activeWorkspace.workspaceId
|
|
445
|
-
})_${formatDate(new Date(Date.now()), DATE_TIME_FORMAT)}.json`;
|
|
446
|
-
const content = JSON.stringify(
|
|
447
|
-
{
|
|
448
|
-
message: '', // TODO?
|
|
449
|
-
entityChanges: this.editorStore.graphState.computeLocalEntityChanges(),
|
|
450
|
-
revisionId: this.sdlcState.activeRevision.id,
|
|
451
|
-
},
|
|
452
|
-
undefined,
|
|
453
|
-
TAB_SIZE,
|
|
454
|
-
);
|
|
455
|
-
downloadFileUsingDataURI(fileName, content, ContentType.APPLICATION_JSON);
|
|
456
|
-
};
|
|
457
|
-
|
|
458
491
|
*pushLocalChanges(pushMessage?: string): GeneratorFn<void> {
|
|
459
492
|
if (
|
|
460
493
|
this.pushChangesState.isInProgress ||
|
|
@@ -689,28 +722,4 @@ export class LocalChangesState {
|
|
|
689
722
|
this.pushChangesState.complete();
|
|
690
723
|
}
|
|
691
724
|
}
|
|
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
|
-
}
|
|
716
725
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import type { EditorStore } from '../EditorStore.js';
|
|
18
18
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
19
|
-
import { action, flowResult,
|
|
19
|
+
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
20
20
|
import {
|
|
21
21
|
type GeneratorFn,
|
|
22
22
|
type PlainObject,
|
|
@@ -63,10 +63,25 @@ export class ProjectOverviewState {
|
|
|
63
63
|
isFetchingCurrentProjectRevision = false;
|
|
64
64
|
|
|
65
65
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
makeObservable(this, {
|
|
67
|
+
activityMode: observable,
|
|
68
|
+
releaseVersion: observable,
|
|
69
|
+
committedReviewsBetweenMostRecentVersionAndProjectLatest: observable,
|
|
70
|
+
latestProjectVersion: observable,
|
|
71
|
+
currentProjectRevision: observable,
|
|
72
|
+
projectWorkspaces: observable,
|
|
73
|
+
isCreatingVersion: observable,
|
|
74
|
+
isFetchingProjectWorkspaces: observable,
|
|
75
|
+
isDeletingWorkspace: observable,
|
|
76
|
+
isUpdatingProject: observable,
|
|
77
|
+
isFetchingLatestVersion: observable,
|
|
78
|
+
isFetchingCurrentProjectRevision: observable,
|
|
69
79
|
setActivityMode: action,
|
|
80
|
+
fetchProjectWorkspaces: flow,
|
|
81
|
+
deleteWorkspace: flow,
|
|
82
|
+
updateProject: flow,
|
|
83
|
+
fetchLatestProjectVersion: flow,
|
|
84
|
+
createVersion: flow,
|
|
70
85
|
});
|
|
71
86
|
|
|
72
87
|
this.editorStore = editorStore;
|
|
@@ -15,14 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import type { TreeNodeData, TreeData } from '@finos/legend-art';
|
|
18
|
-
import {
|
|
19
|
-
makeAutoObservable,
|
|
20
|
-
observable,
|
|
21
|
-
action,
|
|
22
|
-
flowResult,
|
|
23
|
-
makeObservable,
|
|
24
|
-
flow,
|
|
25
|
-
} from 'mobx';
|
|
18
|
+
import { observable, action, flowResult, makeObservable, flow } from 'mobx';
|
|
26
19
|
import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
|
|
27
20
|
import type { EditorStore } from '../EditorStore.js';
|
|
28
21
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
@@ -102,11 +95,12 @@ const updateWorkflowJobData = (
|
|
|
102
95
|
};
|
|
103
96
|
|
|
104
97
|
export class WorkflowLogState {
|
|
105
|
-
editorStore: EditorStore;
|
|
106
|
-
workflowManagerState: WorkflowManagerState;
|
|
98
|
+
readonly editorStore: EditorStore;
|
|
99
|
+
readonly workflowManagerState: WorkflowManagerState;
|
|
100
|
+
readonly fetchJobLogState = ActionState.create();
|
|
101
|
+
|
|
107
102
|
job: WorkflowJob | undefined;
|
|
108
103
|
logs: string;
|
|
109
|
-
fetchJobLogState = ActionState.create();
|
|
110
104
|
|
|
111
105
|
constructor(
|
|
112
106
|
editorStore: EditorStore,
|
|
@@ -114,12 +108,14 @@ export class WorkflowLogState {
|
|
|
114
108
|
job: WorkflowJob | undefined,
|
|
115
109
|
logs: string | undefined,
|
|
116
110
|
) {
|
|
117
|
-
|
|
118
|
-
editorStore: false,
|
|
111
|
+
makeObservable(this, {
|
|
119
112
|
job: observable,
|
|
120
113
|
logs: observable,
|
|
121
114
|
setLogs: action,
|
|
122
115
|
setJob: action,
|
|
116
|
+
closeModal: action,
|
|
117
|
+
refreshJobLogs: flow,
|
|
118
|
+
viewJobLogs: flow,
|
|
123
119
|
});
|
|
124
120
|
|
|
125
121
|
this.editorStore = editorStore;
|
|
@@ -187,8 +183,9 @@ export class WorkflowLogState {
|
|
|
187
183
|
|
|
188
184
|
export class WorkflowState {
|
|
189
185
|
readonly uuid = uuid();
|
|
190
|
-
editorStore: EditorStore;
|
|
191
|
-
workflowManagerState: WorkflowManagerState;
|
|
186
|
+
readonly editorStore: EditorStore;
|
|
187
|
+
readonly workflowManagerState: WorkflowManagerState;
|
|
188
|
+
|
|
192
189
|
treeData: TreeData<WorkflowExplorerTreeNodeData>;
|
|
193
190
|
isExecutingWorkflowRequest = false;
|
|
194
191
|
|
|
@@ -198,10 +195,15 @@ export class WorkflowState {
|
|
|
198
195
|
workflow: Workflow,
|
|
199
196
|
jobs: WorkflowJob[] | undefined,
|
|
200
197
|
) {
|
|
201
|
-
|
|
202
|
-
editorStore: false,
|
|
198
|
+
makeObservable(this, {
|
|
203
199
|
treeData: observable.ref,
|
|
200
|
+
isExecutingWorkflowRequest: observable,
|
|
204
201
|
setWorkflowTreeData: action,
|
|
202
|
+
fetchAllWorkspaceWorkJobs: flow,
|
|
203
|
+
onTreeNodeSelect: flow,
|
|
204
|
+
cancelJob: flow,
|
|
205
|
+
refreshWorkflow: flow,
|
|
206
|
+
retryJob: flow,
|
|
205
207
|
});
|
|
206
208
|
|
|
207
209
|
this.editorStore = editorStore;
|
|
@@ -326,19 +328,15 @@ export class WorkflowState {
|
|
|
326
328
|
}
|
|
327
329
|
|
|
328
330
|
export abstract class WorkflowManagerState {
|
|
329
|
-
editorStore: EditorStore;
|
|
330
|
-
sdlcState: EditorSDLCState;
|
|
331
|
-
fetchWorkflowsState = ActionState.create();
|
|
331
|
+
readonly editorStore: EditorStore;
|
|
332
|
+
readonly sdlcState: EditorSDLCState;
|
|
333
|
+
readonly fetchWorkflowsState = ActionState.create();
|
|
334
|
+
|
|
332
335
|
logState: WorkflowLogState;
|
|
333
336
|
workflowStates: WorkflowState[] = [];
|
|
334
337
|
|
|
335
338
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
336
|
-
this.editorStore = editorStore;
|
|
337
|
-
this.sdlcState = sdlcState;
|
|
338
339
|
makeObservable(this, {
|
|
339
|
-
editorStore: false,
|
|
340
|
-
sdlcState: false,
|
|
341
|
-
fetchWorkflowsState: observable,
|
|
342
340
|
logState: observable,
|
|
343
341
|
workflowStates: observable,
|
|
344
342
|
fetchAllWorkflows: flow,
|
|
@@ -350,6 +348,10 @@ export abstract class WorkflowManagerState {
|
|
|
350
348
|
cancelJob: flow,
|
|
351
349
|
getJobLogs: flow,
|
|
352
350
|
});
|
|
351
|
+
|
|
352
|
+
this.editorStore = editorStore;
|
|
353
|
+
this.sdlcState = sdlcState;
|
|
354
|
+
|
|
353
355
|
this.logState = new WorkflowLogState(
|
|
354
356
|
this.editorStore,
|
|
355
357
|
this,
|
|
@@ -357,18 +359,13 @@ export abstract class WorkflowManagerState {
|
|
|
357
359
|
undefined,
|
|
358
360
|
);
|
|
359
361
|
}
|
|
360
|
-
abstract getWorkflows(): GeneratorFn<Workflow[]>;
|
|
361
362
|
|
|
363
|
+
abstract getWorkflows(): GeneratorFn<Workflow[]>;
|
|
362
364
|
abstract getWorkflow(workflowId: string): GeneratorFn<Workflow>;
|
|
363
|
-
|
|
364
365
|
abstract getJobs(workflowId: string): GeneratorFn<WorkflowJob[]>;
|
|
365
|
-
|
|
366
366
|
abstract getJob(job: WorkflowJob): GeneratorFn<WorkflowJob[]>;
|
|
367
|
-
|
|
368
367
|
abstract retryJob(workflowJob: WorkflowJob): GeneratorFn<void>;
|
|
369
|
-
|
|
370
368
|
abstract cancelJob(workflowJob: WorkflowJob): GeneratorFn<void>;
|
|
371
|
-
|
|
372
369
|
abstract getJobLogs(workflowJob: WorkflowJob): GeneratorFn<string>;
|
|
373
370
|
|
|
374
371
|
*fetchAllWorkflows(): GeneratorFn<void> {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { action,
|
|
17
|
+
import { action, makeObservable, flowResult, observable, flow } from 'mobx';
|
|
18
18
|
import type { EditorStore } from '../EditorStore.js';
|
|
19
19
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
20
20
|
import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js';
|
|
@@ -41,8 +41,9 @@ import {
|
|
|
41
41
|
import { ActionAlertActionType } from '@finos/legend-application';
|
|
42
42
|
|
|
43
43
|
export class WorkspaceReviewState {
|
|
44
|
-
editorStore: EditorStore;
|
|
45
|
-
sdlcState: EditorSDLCState;
|
|
44
|
+
readonly editorStore: EditorStore;
|
|
45
|
+
readonly sdlcState: EditorSDLCState;
|
|
46
|
+
|
|
46
47
|
reviewTitle = '';
|
|
47
48
|
committedReviewsBetweenWorkspaceBaseAndProjectLatest: Review[] = [];
|
|
48
49
|
workspaceReview?: Review | undefined;
|
|
@@ -57,20 +58,35 @@ export class WorkspaceReviewState {
|
|
|
57
58
|
isRecreatingWorkspaceAfterCommittingReview = false;
|
|
58
59
|
|
|
59
60
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
makeObservable(this, {
|
|
62
|
+
reviewTitle: observable,
|
|
63
|
+
committedReviewsBetweenWorkspaceBaseAndProjectLatest: observable,
|
|
64
|
+
workspaceReview: observable,
|
|
65
|
+
isUpdatingWorkspace: observable,
|
|
66
|
+
isRefreshingWorkspaceUpdater: observable,
|
|
67
|
+
isFetchingCurrentWorkspaceReview: observable,
|
|
68
|
+
isRefreshingWorkspaceChangesDetector: observable,
|
|
69
|
+
isClosingWorkspaceReview: observable,
|
|
70
|
+
isCreatingWorkspaceReview: observable,
|
|
71
|
+
isCommittingWorkspaceReview: observable,
|
|
72
|
+
isRecreatingWorkspaceAfterCommittingReview: observable,
|
|
63
73
|
setReviewTitle: action,
|
|
64
74
|
openReviewChange: action,
|
|
75
|
+
refreshWorkspaceChanges: flow,
|
|
76
|
+
fetchCurrentWorkspaceReview: flow,
|
|
77
|
+
recreateWorkspaceAfterCommittingReview: flow,
|
|
78
|
+
closeWorkspaceReview: flow,
|
|
79
|
+
createWorkspaceReview: flow,
|
|
80
|
+
commitWorkspaceReview: flow,
|
|
65
81
|
});
|
|
66
82
|
|
|
67
83
|
this.editorStore = editorStore;
|
|
68
84
|
this.sdlcState = sdlcState;
|
|
69
85
|
}
|
|
70
86
|
|
|
71
|
-
setReviewTitle
|
|
87
|
+
setReviewTitle(val: string): void {
|
|
72
88
|
this.reviewTitle = val;
|
|
73
|
-
}
|
|
89
|
+
}
|
|
74
90
|
|
|
75
91
|
openReviewChange(diff: EntityDiff): void {
|
|
76
92
|
const fromEntityGetter = (
|
|
@@ -14,14 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
18
|
-
makeAutoObservable,
|
|
19
|
-
flowResult,
|
|
20
|
-
action,
|
|
21
|
-
flow,
|
|
22
|
-
makeObservable,
|
|
23
|
-
observable,
|
|
24
|
-
} from 'mobx';
|
|
17
|
+
import { flowResult, action, flow, makeObservable, observable } from 'mobx';
|
|
25
18
|
import type { EditorStore } from '../EditorStore.js';
|
|
26
19
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
27
20
|
import type { Entity } from '@finos/legend-storage';
|
|
@@ -373,23 +366,25 @@ class WorkspaceSyncConflictResolutionState extends AbstractConflictResolutionSta
|
|
|
373
366
|
}
|
|
374
367
|
|
|
375
368
|
export class WorkspaceSyncState {
|
|
376
|
-
editorStore: EditorStore;
|
|
377
|
-
sdlcState: EditorSDLCState;
|
|
369
|
+
readonly editorStore: EditorStore;
|
|
370
|
+
readonly sdlcState: EditorSDLCState;
|
|
378
371
|
|
|
379
372
|
pullChangesState = ActionState.create();
|
|
380
373
|
incomingRevisions: Revision[] = [];
|
|
381
374
|
workspaceSyncConflictResolutionState: WorkspaceSyncConflictResolutionState;
|
|
382
375
|
|
|
383
376
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
377
|
+
makeObservable(this, {
|
|
378
|
+
pullChangesState: observable,
|
|
379
|
+
incomingRevisions: observable,
|
|
380
|
+
workspaceSyncConflictResolutionState: observable,
|
|
381
|
+
resetConflictState: action,
|
|
388
382
|
setIncomingRevisions: action,
|
|
383
|
+
fetchIncomingRevisions: flow,
|
|
389
384
|
pullChanges: flow,
|
|
390
|
-
resetConflictState: action,
|
|
391
|
-
forcePull: flow,
|
|
392
385
|
loadChanges: flow,
|
|
386
|
+
forcePull: flow,
|
|
387
|
+
applyResolutionChanges: flow,
|
|
393
388
|
});
|
|
394
389
|
|
|
395
390
|
this.editorStore = editorStore;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import type { EditorStore } from '../EditorStore.js';
|
|
18
18
|
import type { EditorSDLCState } from '../EditorSDLCState.js';
|
|
19
|
-
import { action,
|
|
19
|
+
import { action, makeObservable, flowResult, observable, flow } from 'mobx';
|
|
20
20
|
import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js';
|
|
21
21
|
import {
|
|
22
22
|
type GeneratorFn,
|
|
@@ -45,19 +45,23 @@ import {
|
|
|
45
45
|
import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js';
|
|
46
46
|
|
|
47
47
|
export class WorkspaceUpdaterState {
|
|
48
|
-
editorStore: EditorStore;
|
|
49
|
-
sdlcState: EditorSDLCState;
|
|
50
|
-
committedReviewsBetweenWorkspaceBaseAndProjectLatest: Review[] = [];
|
|
48
|
+
readonly editorStore: EditorStore;
|
|
49
|
+
readonly sdlcState: EditorSDLCState;
|
|
51
50
|
|
|
51
|
+
committedReviewsBetweenWorkspaceBaseAndProjectLatest: Review[] = [];
|
|
52
52
|
isUpdatingWorkspace = false;
|
|
53
53
|
isRefreshingWorkspaceUpdater = false;
|
|
54
54
|
|
|
55
55
|
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
makeObservable(this, {
|
|
57
|
+
committedReviewsBetweenWorkspaceBaseAndProjectLatest: observable,
|
|
58
|
+
isUpdatingWorkspace: observable,
|
|
59
|
+
isRefreshingWorkspaceUpdater: observable,
|
|
59
60
|
openProjectLatestChange: action,
|
|
60
61
|
openPotentialWorkspaceUpdateConflict: action,
|
|
62
|
+
refreshWorkspaceUpdater: flow,
|
|
63
|
+
updateWorkspace: flow,
|
|
64
|
+
fetchLatestCommittedReviews: flow,
|
|
61
65
|
});
|
|
62
66
|
|
|
63
67
|
this.editorStore = editorStore;
|