@finos/legend-application-studio 25.0.6 → 26.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 +2 -0
- package/lib/application/LegendStudio.js.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +5 -5
- package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/GrammarTextEditor.js +1 -28
- package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ModelImporter.js +4 -4
- package/lib/components/editor/editor-group/ModelImporter.js.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/RuntimeEditor.js +2 -2
- package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/UnsupportedElementEditor.js +3 -3
- package/lib/components/editor/editor-group/UnsupportedElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +4 -2
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.d.ts +0 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.js +0 -60
- package/lib/components/editor/editor-group/connection-editor/DatabaseEditorHelper.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +13 -11
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +11 -22
- package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js +7 -3
- package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js +1 -4
- package/lib/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +3 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +4 -2
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +3 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.js +3 -3
- package/lib/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +3 -3
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +5 -10
- package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +1 -4
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js +2 -2
- package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js +2 -1
- package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +2 -2
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +14 -5
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +0 -5
- package/lib/components/editor/side-bar/ProjectOverview.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 +2 -2
- package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +0 -3
- package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.d.ts +1 -3
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.js +0 -16
- package/lib/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.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 +1 -1
- package/lib/stores/LegendStudioApplicationPlugin.d.ts +0 -8
- package/lib/stores/LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.d.ts +1 -0
- package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +10 -0
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +2 -2
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorSDLCState.d.ts +8 -5
- package/lib/stores/editor/EditorSDLCState.d.ts.map +1 -1
- package/lib/stores/editor/EditorSDLCState.js +25 -5
- package/lib/stores/editor/EditorSDLCState.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts +0 -2
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +10 -15
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +1 -1
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/ExplorerTreeState.d.ts +5 -1
- package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/editor/ExplorerTreeState.js +13 -0
- package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts +0 -3
- package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditGrammarModeState.js +26 -21
- package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
- package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts +3 -4
- package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/GrammarTextEditorState.js +5 -111
- package/lib/stores/editor/editor-state/GrammarTextEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts +2 -4
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js +6 -8
- package/lib/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +4 -2
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +8 -4
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts +4 -7
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js +0 -3
- package/lib/stores/editor/editor-state/element-editor-state/data/DataEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js +19 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +5 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts +3 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js +6 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +23 -3
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js +4 -3
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +3 -4
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +2 -4
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts +0 -4
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.js +0 -48
- package/lib/stores/editor/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.js +1 -4
- package/lib/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +2 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js +2 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts +3 -1
- package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +6 -0
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts +2 -2
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/STO_Relational_GraphModifierHelper.js.map +1 -1
- package/lib/stores/project-view/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-view/ProjectViewerStore.js +8 -5
- package/lib/stores/project-view/ProjectViewerStore.js.map +1 -1
- package/package.json +11 -11
- package/src/application/LegendStudio.tsx +2 -0
- package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +21 -22
- package/src/components/editor/editor-group/GrammarTextEditor.tsx +1 -41
- package/src/components/editor/editor-group/ModelImporter.tsx +13 -10
- package/src/components/editor/editor-group/RuntimeEditor.tsx +2 -9
- package/src/components/editor/editor-group/UnsupportedElementEditor.tsx +16 -10
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +6 -5
- package/src/components/editor/editor-group/connection-editor/DatabaseEditorHelper.tsx +0 -43
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +22 -23
- package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +51 -83
- package/src/components/editor/editor-group/mapping-editor/ClassMappingEditor.tsx +23 -8
- package/src/components/editor/editor-group/mapping-editor/DEPRECATED__MappingTestEditor.tsx +5 -4
- package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +5 -1
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationEditor.tsx +39 -29
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +9 -3
- package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +5 -1
- package/src/components/editor/editor-group/mapping-editor/relational/TableOrViewSourceTree.tsx +3 -5
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +21 -23
- package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +24 -55
- package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +3 -4
- package/src/components/editor/editor-group/service-editor/ServicePostValidationEditor.tsx +20 -24
- package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +4 -1
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +4 -5
- package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +5 -4
- package/src/components/editor/editor-group/uml-editor/ClassQueryBuilder.tsx +3 -3
- package/src/components/editor/side-bar/Explorer.tsx +40 -2
- package/src/components/editor/side-bar/ProjectOverview.tsx +0 -5
- package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +2 -4
- package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +0 -8
- package/src/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx +0 -18
- package/src/index.ts +0 -1
- package/src/stores/LegendStudioApplicationPlugin.ts +0 -10
- package/src/stores/LegendStudioBaseStore.ts +12 -0
- package/src/stores/editor/EditorGraphState.ts +2 -4
- package/src/stores/editor/EditorSDLCState.ts +33 -4
- package/src/stores/editor/EditorStore.ts +24 -19
- package/src/stores/editor/EditorTabManagerState.ts +1 -4
- package/src/stores/editor/ExplorerTreeState.ts +22 -0
- package/src/stores/editor/GraphEditGrammarModeState.ts +49 -39
- package/src/stores/editor/editor-state/GrammarTextEditorState.ts +6 -145
- package/src/stores/editor/editor-state/element-editor-state/connection/ConnectionEditorState.ts +8 -18
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +17 -4
- package/src/stores/editor/editor-state/element-editor-state/data/DataEditorState.ts +5 -7
- package/src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts +24 -2
- package/src/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +4 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +13 -0
- package/src/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +30 -7
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceRegistrationState.ts +7 -5
- package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +4 -5
- package/src/stores/editor/sidebar-state/ProjectOverviewState.ts +0 -87
- package/src/stores/editor/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +3 -7
- package/src/stores/editor/utils/ModelClassifierUtils.ts +3 -1
- package/src/stores/editor/utils/TestableUtils.ts +13 -0
- package/src/stores/graph-modifier/STO_Relational_GraphModifierHelper.ts +1 -2
- package/src/stores/project-view/ProjectViewerStore.ts +10 -8
- package/tsconfig.json +0 -3
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts +0 -19
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts.map +0 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js +0 -76
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +0 -1
- package/lib/stores/editor/EditorDepotState.d.ts +0 -25
- package/lib/stores/editor/EditorDepotState.d.ts.map +0 -1
- package/lib/stores/editor/EditorDepotState.js +0 -49
- package/lib/stores/editor/EditorDepotState.js.map +0 -1
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.d.ts +0 -31
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.d.ts.map +0 -1
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.js +0 -42
- package/lib/stores/editor/sidebar-state/ProjectDependantEditorState.js.map +0 -1
- package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +0 -219
- package/src/stores/editor/EditorDepotState.ts +0 -70
- package/src/stores/editor/sidebar-state/ProjectDependantEditorState.ts +0 -50
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDependantsEditor.js","sourceRoot":"","sources":["../../../../src/components/editor/side-bar/ProjectDependantsEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,aAAa,EACb,KAAK,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,KAAK,EACL,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,8DAA8D,CAAC;AAC9G,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,4CAA4C,CAAC;AAEpD,MAAM,sBAAsB,GAAG,QAAQ,CACrC,CAAC,KAAsD,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE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
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { EditorStore } from './EditorStore.js';
|
|
17
|
-
import { type GeneratorFn } from '@finos/legend-shared';
|
|
18
|
-
export declare class EditorDepotState {
|
|
19
|
-
readonly editorStore: EditorStore;
|
|
20
|
-
projectVersions: string[];
|
|
21
|
-
isFetchingProjectVersions: boolean;
|
|
22
|
-
constructor(editorStore: EditorStore);
|
|
23
|
-
fetchProjectVersions(): GeneratorFn<void>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=EditorDepotState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorDepotState.d.ts","sourceRoot":"","sources":["../../../src/stores/editor/EditorDepotState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAEL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAI9B,qBAAa,gBAAgB;IAC3B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAElC,eAAe,EAAE,MAAM,EAAE,CAAM;IAC/B,yBAAyB,UAAS;gBAEtB,WAAW,EAAE,WAAW;IAUnC,oBAAoB,IAAI,WAAW,CAAC,IAAI,CAAC;CAyB3C"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { flow, makeObservable, observable } from 'mobx';
|
|
17
|
-
import { guaranteeNonNullable, LogEvent, assertErrorThrown, } from '@finos/legend-shared';
|
|
18
|
-
import { StoreProjectData } from '@finos/legend-server-depot';
|
|
19
|
-
import { LEGEND_STUDIO_APP_EVENT } from '../../__lib__/LegendStudioEvent.js';
|
|
20
|
-
export class EditorDepotState {
|
|
21
|
-
editorStore;
|
|
22
|
-
projectVersions = [];
|
|
23
|
-
isFetchingProjectVersions = false;
|
|
24
|
-
constructor(editorStore) {
|
|
25
|
-
makeObservable(this, {
|
|
26
|
-
projectVersions: observable,
|
|
27
|
-
isFetchingProjectVersions: observable,
|
|
28
|
-
fetchProjectVersions: flow,
|
|
29
|
-
});
|
|
30
|
-
this.editorStore = editorStore;
|
|
31
|
-
}
|
|
32
|
-
*fetchProjectVersions() {
|
|
33
|
-
try {
|
|
34
|
-
this.isFetchingProjectVersions = true;
|
|
35
|
-
// NOTE: this is not necessary. groupId and artifactId could be gotten from this.editorStore.projectConfigurationEditorState
|
|
36
|
-
const currentProject = (yield this.editorStore.depotServerClient.getProjectById(this.editorStore.sdlcState.activeProject.projectId)).map((v) => StoreProjectData.serialization.fromJson(v))[0];
|
|
37
|
-
this.projectVersions =
|
|
38
|
-
(yield this.editorStore.depotServerClient.getVersions(guaranteeNonNullable(currentProject).groupId, guaranteeNonNullable(currentProject).artifactId, true));
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
assertErrorThrown(error);
|
|
42
|
-
this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE), error);
|
|
43
|
-
}
|
|
44
|
-
finally {
|
|
45
|
-
this.isFetchingProjectVersions = false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=EditorDepotState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditorDepotState.js","sourceRoot":"","sources":["../../../src/stores/editor/EditorDepotState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,EACL,oBAAoB,EAEpB,QAAQ,EACR,iBAAiB,GAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,MAAM,OAAO,gBAAgB;IAClB,WAAW,CAAc;IAElC,eAAe,GAAa,EAAE,CAAC;IAC/B,yBAAyB,GAAG,KAAK,CAAC;IAElC,YAAY,WAAwB;QAClC,cAAc,CAAC,IAAI,EAAE;YACnB,eAAe,EAAE,UAAU;YAC3B,yBAAyB,EAAE,UAAU;YACrC,oBAAoB,EAAE,IAAI;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,CAAC,oBAAoB;QACnB,IAAI;YACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC;YACtC,4HAA4H;YAC5H,MAAM,cAAc,GAClB,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,cAAc,CACtD,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,SAAS,CACnD,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,IAAI,CAAC,eAAe;gBAClB,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,WAAW,CACnD,oBAAoB,CAAC,cAAc,CAAC,CAAC,OAAO,EAC5C,oBAAoB,CAAC,cAAc,CAAC,CAAC,UAAU,EAC/C,IAAI,CACL,CAAa,CAAC;SAClB;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,EAC9D,KAAK,CACN,CAAC;SACH;gBAAS;YACR,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;SACxC;IACH,CAAC;CACF"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import type { EditorStore } from '../EditorStore.js';
|
|
17
|
-
import { ActionState } from '@finos/legend-shared';
|
|
18
|
-
import type { ProjectVersionPlatformDependency } from '@finos/legend-server-depot';
|
|
19
|
-
import type { ProjectConfiguration } from '@finos/legend-server-sdlc';
|
|
20
|
-
import type { ProjectOverviewState } from './ProjectOverviewState.js';
|
|
21
|
-
export declare class ProjectDependantEditorState {
|
|
22
|
-
configState: ProjectOverviewState;
|
|
23
|
-
editorStore: EditorStore;
|
|
24
|
-
isReadOnly: boolean;
|
|
25
|
-
dependants: ProjectVersionPlatformDependency[] | undefined;
|
|
26
|
-
fetchingDependantInfoState: ActionState;
|
|
27
|
-
constructor(configState: ProjectOverviewState, editorStore: EditorStore);
|
|
28
|
-
get projectConfiguration(): ProjectConfiguration | undefined;
|
|
29
|
-
setDependants(value: ProjectVersionPlatformDependency[] | undefined): void;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=ProjectDependantEditorState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDependantEditorState.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/sidebar-state/ProjectDependantEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,qBAAa,2BAA2B;IACtC,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,gCAAgC,EAAE,GAAG,SAAS,CAAC;IAC3D,0BAA0B,cAAwB;gBAEtC,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW;IAWvE,IAAI,oBAAoB,IAAI,oBAAoB,GAAG,SAAS,CAG3D;IAED,aAAa,CAAC,KAAK,EAAE,gCAAgC,EAAE,GAAG,SAAS,GAAG,IAAI;CAG3E"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { observable, makeObservable, action } from 'mobx';
|
|
17
|
-
import { ActionState } from '@finos/legend-shared';
|
|
18
|
-
export class ProjectDependantEditorState {
|
|
19
|
-
configState;
|
|
20
|
-
editorStore;
|
|
21
|
-
isReadOnly;
|
|
22
|
-
dependants;
|
|
23
|
-
fetchingDependantInfoState = ActionState.create();
|
|
24
|
-
constructor(configState, editorStore) {
|
|
25
|
-
makeObservable(this, {
|
|
26
|
-
dependants: observable,
|
|
27
|
-
fetchingDependantInfoState: observable,
|
|
28
|
-
setDependants: action,
|
|
29
|
-
});
|
|
30
|
-
this.configState = configState;
|
|
31
|
-
this.editorStore = editorStore;
|
|
32
|
-
this.isReadOnly = editorStore.isInViewerMode;
|
|
33
|
-
}
|
|
34
|
-
get projectConfiguration() {
|
|
35
|
-
return this.editorStore.projectConfigurationEditorState
|
|
36
|
-
.projectConfiguration;
|
|
37
|
-
}
|
|
38
|
-
setDependants(value) {
|
|
39
|
-
this.dependants = value;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=ProjectDependantEditorState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDependantEditorState.js","sourceRoot":"","sources":["../../../../src/stores/editor/sidebar-state/ProjectDependantEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKnD,MAAM,OAAO,2BAA2B;IACtC,WAAW,CAAuB;IAClC,WAAW,CAAc;IACzB,UAAU,CAAU;IACpB,UAAU,CAAiD;IAC3D,0BAA0B,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAElD,YAAY,WAAiC,EAAE,WAAwB;QACrE,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,UAAU;YACtB,0BAA0B,EAAE,UAAU;YACtC,aAAa,EAAE,MAAM;SACtB,CAAC,CAAC;QACH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC,cAAc,CAAC;IAC/C,CAAC;IAED,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,+BAA+B;aACpD,oBAAoB,CAAC;IAC1B,CAAC;IAED,aAAa,CAAC,KAAqD;QACjE,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { useEffect } from 'react';
|
|
18
|
-
import { useApplicationStore } from '@finos/legend-application';
|
|
19
|
-
import {
|
|
20
|
-
PanelListItem,
|
|
21
|
-
Badge,
|
|
22
|
-
DropdownMenu,
|
|
23
|
-
MenuContent,
|
|
24
|
-
MenuContentItem,
|
|
25
|
-
CaretDownIcon,
|
|
26
|
-
PanelLoadingIndicator,
|
|
27
|
-
PanelDivider,
|
|
28
|
-
PanelFormSection,
|
|
29
|
-
Panel,
|
|
30
|
-
InfoCircleIcon,
|
|
31
|
-
} from '@finos/legend-art';
|
|
32
|
-
import {
|
|
33
|
-
MASTER_SNAPSHOT_ALIAS,
|
|
34
|
-
SNAPSHOT_VERSION_ALIAS,
|
|
35
|
-
type ProjectVersionPlatformDependency,
|
|
36
|
-
} from '@finos/legend-server-depot';
|
|
37
|
-
import { generateGAVCoordinates } from '@finos/legend-storage';
|
|
38
|
-
import { flowResult } from 'mobx';
|
|
39
|
-
import { observer } from 'mobx-react-lite';
|
|
40
|
-
import { PROJECT_OVERVIEW_ACTIVITY_MODE } from '../../../stores/editor/sidebar-state/ProjectOverviewState.js';
|
|
41
|
-
import { useEditorStore } from '../EditorStoreProvider.js';
|
|
42
|
-
import {
|
|
43
|
-
generateViewProjectByGAVRoute,
|
|
44
|
-
generateViewProjectRoute,
|
|
45
|
-
generateViewVersionRoute,
|
|
46
|
-
} from '../../../__lib__/LegendStudioNavigation.js';
|
|
47
|
-
|
|
48
|
-
const ProjectDependantEditor = observer(
|
|
49
|
-
(props: { dependant: ProjectVersionPlatformDependency }) => {
|
|
50
|
-
const { dependant } = props;
|
|
51
|
-
const editorStore = useEditorStore();
|
|
52
|
-
const applicationStore = useApplicationStore();
|
|
53
|
-
const configState = editorStore.projectConfigurationEditorState;
|
|
54
|
-
|
|
55
|
-
const viewProject = (
|
|
56
|
-
dependency: ProjectVersionPlatformDependency,
|
|
57
|
-
): void => {
|
|
58
|
-
applicationStore.navigationService.navigator.visitAddress(
|
|
59
|
-
applicationStore.navigationService.navigator.generateAddress(
|
|
60
|
-
generateViewProjectByGAVRoute(
|
|
61
|
-
dependency.groupId,
|
|
62
|
-
dependency.artifactId,
|
|
63
|
-
dependency.versionId === MASTER_SNAPSHOT_ALIAS
|
|
64
|
-
? SNAPSHOT_VERSION_ALIAS
|
|
65
|
-
: dependency.versionId,
|
|
66
|
-
),
|
|
67
|
-
),
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
// NOTE: This assumes that the dependant project is in the same studio instance as the current project
|
|
71
|
-
// In the future, the studio instance may be part of the project data
|
|
72
|
-
const viewSDLCProject = (
|
|
73
|
-
dependency: ProjectVersionPlatformDependency,
|
|
74
|
-
): void => {
|
|
75
|
-
if (dependency.projectId && dependency.versionId) {
|
|
76
|
-
applicationStore.navigationService.navigator.visitAddress(
|
|
77
|
-
applicationStore.navigationService.navigator.generateAddress(
|
|
78
|
-
dependency.versionId === MASTER_SNAPSHOT_ALIAS
|
|
79
|
-
? generateViewProjectRoute(dependency.projectId)
|
|
80
|
-
: generateViewVersionRoute(
|
|
81
|
-
dependency.projectId,
|
|
82
|
-
dependency.versionId,
|
|
83
|
-
),
|
|
84
|
-
),
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return (
|
|
90
|
-
<div
|
|
91
|
-
className="project-dependency-editor"
|
|
92
|
-
key={dependant.artifactId + dependant.groupId}
|
|
93
|
-
>
|
|
94
|
-
<PanelListItem className="panel__content__form__list__item--expand-width">
|
|
95
|
-
<div className="project-dependency-editor">
|
|
96
|
-
<div className="project-overview__dependants__label">
|
|
97
|
-
<div className="project-overview__dependants__label__tag">
|
|
98
|
-
{dependant.projectId ?? 'UAT-52849100'}
|
|
99
|
-
</div>
|
|
100
|
-
<div className="project-overview__dependants__label__name">
|
|
101
|
-
{generateGAVCoordinates(
|
|
102
|
-
dependant.groupId,
|
|
103
|
-
dependant.artifactId,
|
|
104
|
-
undefined,
|
|
105
|
-
)}
|
|
106
|
-
<Badge
|
|
107
|
-
className="badge--right"
|
|
108
|
-
tooltip={`Depends on parent project ${configState.currentProjectConfiguration.projectId} version ${dependant.dependency.versionId}`}
|
|
109
|
-
title={dependant.dependency.versionId}
|
|
110
|
-
/>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
<DropdownMenu
|
|
115
|
-
className="project-dependency-editor__visit-project-btn__dropdown-trigger btn--medium"
|
|
116
|
-
content={
|
|
117
|
-
<MenuContent>
|
|
118
|
-
<MenuContentItem
|
|
119
|
-
onClick={() => viewProject(dependant)}
|
|
120
|
-
title="View project"
|
|
121
|
-
>
|
|
122
|
-
Project
|
|
123
|
-
</MenuContentItem>
|
|
124
|
-
|
|
125
|
-
<MenuContentItem
|
|
126
|
-
title="View SDLC project"
|
|
127
|
-
disabled={!dependant.projectId || !dependant.versionId}
|
|
128
|
-
onClick={() => viewSDLCProject(dependant)}
|
|
129
|
-
>
|
|
130
|
-
SDLC project
|
|
131
|
-
</MenuContentItem>
|
|
132
|
-
</MenuContent>
|
|
133
|
-
}
|
|
134
|
-
>
|
|
135
|
-
Go to...
|
|
136
|
-
<CaretDownIcon title="Show more options..." />
|
|
137
|
-
</DropdownMenu>
|
|
138
|
-
</PanelListItem>
|
|
139
|
-
</div>
|
|
140
|
-
);
|
|
141
|
-
},
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
export const ProjectDependantsEditor = observer(() => {
|
|
145
|
-
const editorStore = useEditorStore();
|
|
146
|
-
const applicationStore = useApplicationStore();
|
|
147
|
-
const projectOverviewState = editorStore.projectOverviewState;
|
|
148
|
-
const dependantEditorState = projectOverviewState.projectDependantEditorState;
|
|
149
|
-
const dependants = dependantEditorState.dependants;
|
|
150
|
-
const isLoading =
|
|
151
|
-
dependantEditorState.fetchingDependantInfoState.isInProgress;
|
|
152
|
-
|
|
153
|
-
useEffect(() => {
|
|
154
|
-
flowResult(projectOverviewState.fetchDependants()).catch(
|
|
155
|
-
applicationStore.alertUnhandledError,
|
|
156
|
-
);
|
|
157
|
-
}, [applicationStore, projectOverviewState]);
|
|
158
|
-
|
|
159
|
-
return (
|
|
160
|
-
<Panel className="side-bar__panel project-overview__panel">
|
|
161
|
-
<div className="panel__header">
|
|
162
|
-
<div className="panel__header__title">
|
|
163
|
-
<div className="panel__header__title__content">
|
|
164
|
-
{PROJECT_OVERVIEW_ACTIVITY_MODE.DEPENDANTS}
|
|
165
|
-
</div>
|
|
166
|
-
<div
|
|
167
|
-
className="side-bar__panel__title__info"
|
|
168
|
-
title={`List of projects that depend on current project (${projectOverviewState.sdlcState.currentProject?.projectId})`}
|
|
169
|
-
>
|
|
170
|
-
<InfoCircleIcon />
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
<div className="side-bar__panel__header__changes-count">
|
|
174
|
-
{projectOverviewState.projectDependantEditorState.dependants
|
|
175
|
-
?.length ?? 0}
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
<PanelFormSection>
|
|
180
|
-
<div className="panel__content__lists">
|
|
181
|
-
<PanelLoadingIndicator isLoading={isLoading} />
|
|
182
|
-
{isLoading && (
|
|
183
|
-
<div className="project-dependency-editor__progress-msg">
|
|
184
|
-
Fetching dependant versions
|
|
185
|
-
</div>
|
|
186
|
-
)}
|
|
187
|
-
{dependants?.map((dependant: ProjectVersionPlatformDependency) => (
|
|
188
|
-
<ProjectDependantEditor
|
|
189
|
-
key={dependant.groupId + dependant.artifactId}
|
|
190
|
-
dependant={dependant}
|
|
191
|
-
/>
|
|
192
|
-
))}
|
|
193
|
-
<PanelDivider />
|
|
194
|
-
<button
|
|
195
|
-
className="btn btn--dark"
|
|
196
|
-
tabIndex={-1}
|
|
197
|
-
// FIXME: @xannem we must modularize this instead of depending on an extension-specific logic like this
|
|
198
|
-
// onClick={() => {
|
|
199
|
-
// applicationStore.navigationService.navigator.visitAddress(
|
|
200
|
-
// generateExtensionUrlPattern(
|
|
201
|
-
// generateDependencyDashboardRoute(
|
|
202
|
-
// configState.currentProjectConfiguration.projectId,
|
|
203
|
-
// configState.currentProjectConfiguration.groupId,
|
|
204
|
-
// configState.currentProjectConfiguration.artifactId,
|
|
205
|
-
// undefined,
|
|
206
|
-
// undefined,
|
|
207
|
-
// ),
|
|
208
|
-
// ),
|
|
209
|
-
// );
|
|
210
|
-
// }}
|
|
211
|
-
title="Open dependants dashboard"
|
|
212
|
-
>
|
|
213
|
-
Open Dependants Dashboard
|
|
214
|
-
</button>
|
|
215
|
-
</div>
|
|
216
|
-
</PanelFormSection>
|
|
217
|
-
</Panel>
|
|
218
|
-
);
|
|
219
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { flow, makeObservable, observable } from 'mobx';
|
|
18
|
-
import type { EditorStore } from './EditorStore.js';
|
|
19
|
-
import {
|
|
20
|
-
guaranteeNonNullable,
|
|
21
|
-
type GeneratorFn,
|
|
22
|
-
LogEvent,
|
|
23
|
-
assertErrorThrown,
|
|
24
|
-
type PlainObject,
|
|
25
|
-
} from '@finos/legend-shared';
|
|
26
|
-
import { StoreProjectData } from '@finos/legend-server-depot';
|
|
27
|
-
import { LEGEND_STUDIO_APP_EVENT } from '../../__lib__/LegendStudioEvent.js';
|
|
28
|
-
|
|
29
|
-
export class EditorDepotState {
|
|
30
|
-
readonly editorStore: EditorStore;
|
|
31
|
-
|
|
32
|
-
projectVersions: string[] = [];
|
|
33
|
-
isFetchingProjectVersions = false;
|
|
34
|
-
|
|
35
|
-
constructor(editorStore: EditorStore) {
|
|
36
|
-
makeObservable(this, {
|
|
37
|
-
projectVersions: observable,
|
|
38
|
-
isFetchingProjectVersions: observable,
|
|
39
|
-
fetchProjectVersions: flow,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
this.editorStore = editorStore;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
*fetchProjectVersions(): GeneratorFn<void> {
|
|
46
|
-
try {
|
|
47
|
-
this.isFetchingProjectVersions = true;
|
|
48
|
-
// NOTE: this is not necessary. groupId and artifactId could be gotten from this.editorStore.projectConfigurationEditorState
|
|
49
|
-
const currentProject = (
|
|
50
|
-
(yield this.editorStore.depotServerClient.getProjectById(
|
|
51
|
-
this.editorStore.sdlcState.activeProject.projectId,
|
|
52
|
-
)) as PlainObject<StoreProjectData>[]
|
|
53
|
-
).map((v) => StoreProjectData.serialization.fromJson(v))[0];
|
|
54
|
-
this.projectVersions =
|
|
55
|
-
(yield this.editorStore.depotServerClient.getVersions(
|
|
56
|
-
guaranteeNonNullable(currentProject).groupId,
|
|
57
|
-
guaranteeNonNullable(currentProject).artifactId,
|
|
58
|
-
true,
|
|
59
|
-
)) as string[];
|
|
60
|
-
} catch (error) {
|
|
61
|
-
assertErrorThrown(error);
|
|
62
|
-
this.editorStore.applicationStore.logService.error(
|
|
63
|
-
LogEvent.create(LEGEND_STUDIO_APP_EVENT.DEPOT_MANAGER_FAILURE),
|
|
64
|
-
error,
|
|
65
|
-
);
|
|
66
|
-
} finally {
|
|
67
|
-
this.isFetchingProjectVersions = false;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import type { EditorStore } from '../EditorStore.js';
|
|
18
|
-
import { observable, makeObservable, action } from 'mobx';
|
|
19
|
-
import { ActionState } from '@finos/legend-shared';
|
|
20
|
-
import type { ProjectVersionPlatformDependency } from '@finos/legend-server-depot';
|
|
21
|
-
import type { ProjectConfiguration } from '@finos/legend-server-sdlc';
|
|
22
|
-
import type { ProjectOverviewState } from './ProjectOverviewState.js';
|
|
23
|
-
|
|
24
|
-
export class ProjectDependantEditorState {
|
|
25
|
-
configState: ProjectOverviewState;
|
|
26
|
-
editorStore: EditorStore;
|
|
27
|
-
isReadOnly: boolean;
|
|
28
|
-
dependants: ProjectVersionPlatformDependency[] | undefined;
|
|
29
|
-
fetchingDependantInfoState = ActionState.create();
|
|
30
|
-
|
|
31
|
-
constructor(configState: ProjectOverviewState, editorStore: EditorStore) {
|
|
32
|
-
makeObservable(this, {
|
|
33
|
-
dependants: observable,
|
|
34
|
-
fetchingDependantInfoState: observable,
|
|
35
|
-
setDependants: action,
|
|
36
|
-
});
|
|
37
|
-
this.configState = configState;
|
|
38
|
-
this.editorStore = editorStore;
|
|
39
|
-
this.isReadOnly = editorStore.isInViewerMode;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
get projectConfiguration(): ProjectConfiguration | undefined {
|
|
43
|
-
return this.editorStore.projectConfigurationEditorState
|
|
44
|
-
.projectConfiguration;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
setDependants(value: ProjectVersionPlatformDependency[] | undefined): void {
|
|
48
|
-
this.dependants = value;
|
|
49
|
-
}
|
|
50
|
-
}
|