@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.
Files changed (340) hide show
  1. package/lib/application/LegendStudioApplicationConfig.d.ts +6 -0
  2. package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
  3. package/lib/application/LegendStudioApplicationConfig.js +7 -0
  4. package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
  5. package/lib/components/EditorComponentTestUtils.d.ts +1 -1
  6. package/lib/components/EditorComponentTestUtils.d.ts.map +1 -1
  7. package/lib/components/EditorComponentTestUtils.js +23 -50
  8. package/lib/components/EditorComponentTestUtils.js.map +1 -1
  9. package/lib/components/EmbeddedQueryBuilder.d.ts +0 -1
  10. package/lib/components/EmbeddedQueryBuilder.d.ts.map +1 -1
  11. package/lib/components/LegendStudioApplication.d.ts +0 -1
  12. package/lib/components/LegendStudioApplication.d.ts.map +1 -1
  13. package/lib/components/editor/StatusBar.d.ts +0 -1
  14. package/lib/components/editor/StatusBar.d.ts.map +1 -1
  15. package/lib/components/editor/StatusBar.js +10 -3
  16. package/lib/components/editor/StatusBar.js.map +1 -1
  17. package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts +0 -1
  18. package/lib/components/editor/aux-panel/AuxiliaryPanel.d.ts.map +1 -1
  19. package/lib/components/editor/aux-panel/AuxiliaryPanel.js +11 -3
  20. package/lib/components/editor/aux-panel/AuxiliaryPanel.js.map +1 -1
  21. package/lib/components/editor/aux-panel/Console.d.ts +0 -1
  22. package/lib/components/editor/aux-panel/Console.d.ts.map +1 -1
  23. package/lib/components/editor/aux-panel/Console.js +2 -1
  24. package/lib/components/editor/aux-panel/Console.js.map +1 -1
  25. package/lib/components/editor/aux-panel/DevTool.d.ts +0 -1
  26. package/lib/components/editor/aux-panel/DevTool.d.ts.map +1 -1
  27. package/lib/components/editor/aux-panel/DevTool.js +4 -7
  28. package/lib/components/editor/aux-panel/DevTool.js.map +1 -1
  29. package/lib/components/editor/aux-panel/Problems.d.ts +19 -0
  30. package/lib/components/editor/aux-panel/Problems.d.ts.map +1 -0
  31. package/lib/components/editor/aux-panel/Problems.js +48 -0
  32. package/lib/components/editor/aux-panel/Problems.js.map +1 -0
  33. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts +0 -1
  34. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  35. package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts +0 -1
  36. package/lib/components/editor/edit-panel/FileGenerationViewer.d.ts.map +1 -1
  37. package/lib/components/editor/edit-panel/FunctionEditor.d.ts +0 -1
  38. package/lib/components/editor/edit-panel/FunctionEditor.d.ts.map +1 -1
  39. package/lib/components/editor/edit-panel/FunctionEditor.js +31 -5
  40. package/lib/components/editor/edit-panel/FunctionEditor.js.map +1 -1
  41. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts +0 -1
  42. package/lib/components/editor/edit-panel/GenerationSpecificationEditor.d.ts.map +1 -1
  43. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  44. package/lib/components/editor/edit-panel/GrammarTextEditor.js +36 -25
  45. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  46. package/lib/components/editor/edit-panel/ModelImporter.d.ts +0 -1
  47. package/lib/components/editor/edit-panel/ModelImporter.d.ts.map +1 -1
  48. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts +0 -1
  49. package/lib/components/editor/edit-panel/RuntimeEditor.d.ts.map +1 -1
  50. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts +0 -1
  51. package/lib/components/editor/edit-panel/UnsupportedElementEditor.d.ts.map +1 -1
  52. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts +0 -1
  53. package/lib/components/editor/edit-panel/connection-editor/ConnectionEditor.d.ts.map +1 -1
  54. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts +0 -1
  55. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
  56. package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts +0 -1
  57. package/lib/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.d.ts.map +1 -1
  58. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts +0 -1
  59. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  60. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +16 -16
  61. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  62. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts +0 -1
  63. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.d.ts.map +1 -1
  64. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js +4 -4
  65. package/lib/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.js.map +1 -1
  66. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts +0 -1
  67. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.d.ts.map +1 -1
  68. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts +0 -1
  69. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  70. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts +0 -1
  71. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  72. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +20 -6
  73. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
  74. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts +0 -1
  75. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.d.ts.map +1 -1
  76. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts +0 -1
  77. package/lib/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
  78. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts +0 -1
  79. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.d.ts.map +1 -1
  80. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts +0 -1
  81. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
  82. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts +0 -1
  83. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_ExternalFormatConnectionEditor.d.ts.map +1 -1
  84. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts +0 -1
  85. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.d.ts.map +1 -1
  86. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts +0 -1
  87. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
  88. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts +0 -1
  89. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
  90. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts +0 -1
  91. package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
  92. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts +0 -1
  93. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
  94. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js +2 -2
  95. package/lib/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  96. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts +0 -1
  97. package/lib/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
  98. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts +0 -1
  99. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.d.ts.map +1 -1
  100. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts +0 -1
  101. package/lib/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
  102. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +0 -1
  103. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  104. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +0 -1
  105. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  106. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts +0 -1
  107. package/lib/components/editor/edit-panel/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  108. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts +0 -1
  109. package/lib/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
  110. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts +0 -1
  111. package/lib/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.d.ts.map +1 -1
  112. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts +0 -1
  113. package/lib/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
  114. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts +0 -1
  115. package/lib/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
  116. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts +0 -1
  117. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  118. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +2 -2
  119. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  120. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts +0 -1
  121. package/lib/components/editor/edit-panel/service-editor/NewServiceModal.d.ts.map +1 -1
  122. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts +0 -1
  123. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.d.ts.map +1 -1
  124. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts +0 -1
  125. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  126. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts +0 -1
  127. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  128. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts +0 -1
  129. package/lib/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  130. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts +0 -1
  131. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
  132. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts +0 -1
  133. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
  134. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts +0 -1
  135. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  136. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts +0 -1
  137. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
  138. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts +0 -1
  139. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.d.ts.map +1 -1
  140. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts +0 -1
  141. package/lib/components/editor/edit-panel/uml-editor/ClassEditor.d.ts.map +1 -1
  142. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts +0 -1
  143. package/lib/components/editor/edit-panel/uml-editor/EnumerationEditor.d.ts.map +1 -1
  144. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts +0 -1
  145. package/lib/components/editor/edit-panel/uml-editor/ProfileEditor.d.ts.map +1 -1
  146. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts +0 -1
  147. package/lib/components/editor/edit-panel/uml-editor/PropertyEditor.d.ts.map +1 -1
  148. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts +0 -1
  149. package/lib/components/editor/edit-panel/uml-editor/UMLEditor.d.ts.map +1 -1
  150. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts +0 -1
  151. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  152. package/lib/components/editor/side-bar/Explorer.d.ts +0 -1
  153. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  154. package/lib/components/editor/side-bar/Explorer.js +15 -9
  155. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  156. package/lib/components/editor/side-bar/LocalChanges.d.ts +0 -1
  157. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  158. package/lib/components/editor/side-bar/ProjectOverview.d.ts +0 -1
  159. package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
  160. package/lib/components/editor/side-bar/ProjectOverview.js +3 -3
  161. package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
  162. package/lib/components/editor/side-bar/SideBar.d.ts +0 -1
  163. package/lib/components/editor/side-bar/SideBar.d.ts.map +1 -1
  164. package/lib/components/editor/side-bar/WorkflowManager.d.ts +0 -1
  165. package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
  166. package/lib/components/editor/side-bar/WorkspaceReview.d.ts +0 -1
  167. package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
  168. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts +0 -1
  169. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
  170. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts +0 -1
  171. package/lib/components/editor/side-bar/WorkspaceUpdateConflictResolver.d.ts.map +1 -1
  172. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts +0 -1
  173. package/lib/components/editor/side-bar/WorkspaceUpdater.d.ts.map +1 -1
  174. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts +0 -1
  175. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  176. package/lib/components/shared/DiffView.d.ts +0 -1
  177. package/lib/components/shared/DiffView.d.ts.map +1 -1
  178. package/lib/components/shared/DiffView.js +2 -2
  179. package/lib/components/shared/DiffView.js.map +1 -1
  180. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts +0 -1
  181. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +1 -1
  182. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts +0 -1
  183. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +1 -1
  184. package/lib/components/workspace-setup/CreateProjectModal.d.ts +0 -1
  185. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
  186. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts +0 -1
  187. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
  188. package/lib/index.css +2 -2
  189. package/lib/index.css.map +1 -1
  190. package/lib/package.json +6 -6
  191. package/lib/stores/ChangeDetectionState.d.ts +2 -0
  192. package/lib/stores/ChangeDetectionState.d.ts.map +1 -1
  193. package/lib/stores/ChangeDetectionState.js +12 -6
  194. package/lib/stores/ChangeDetectionState.js.map +1 -1
  195. package/lib/stores/EditorConfig.d.ts +2 -1
  196. package/lib/stores/EditorConfig.d.ts.map +1 -1
  197. package/lib/stores/EditorConfig.js +1 -0
  198. package/lib/stores/EditorConfig.js.map +1 -1
  199. package/lib/stores/EditorGraphState.d.ts +17 -16
  200. package/lib/stores/EditorGraphState.d.ts.map +1 -1
  201. package/lib/stores/EditorGraphState.js +152 -94
  202. package/lib/stores/EditorGraphState.js.map +1 -1
  203. package/lib/stores/EditorSDLCState.d.ts +6 -6
  204. package/lib/stores/EditorSDLCState.d.ts.map +1 -1
  205. package/lib/stores/EditorSDLCState.js +52 -27
  206. package/lib/stores/EditorSDLCState.js.map +1 -1
  207. package/lib/stores/EditorStore.js +1 -1
  208. package/lib/stores/EditorStore.js.map +1 -1
  209. package/lib/stores/EmbeddedQueryBuilderState.js +1 -1
  210. package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
  211. package/lib/stores/editor/NewElementState.d.ts.map +1 -1
  212. package/lib/stores/editor/NewElementState.js +14 -5
  213. package/lib/stores/editor/NewElementState.js.map +1 -1
  214. package/lib/stores/editor/StandardEditorMode.d.ts.map +1 -1
  215. package/lib/stores/editor/StandardEditorMode.js +2 -2
  216. package/lib/stores/editor/StandardEditorMode.js.map +1 -1
  217. package/lib/stores/editor-state/FileGenerationState.d.ts +3 -3
  218. package/lib/stores/editor-state/FileGenerationState.d.ts.map +1 -1
  219. package/lib/stores/editor-state/FileGenerationState.js +9 -5
  220. package/lib/stores/editor-state/FileGenerationState.js.map +1 -1
  221. package/lib/stores/editor-state/GrammarTextEditorState.d.ts +6 -4
  222. package/lib/stores/editor-state/GrammarTextEditorState.d.ts.map +1 -1
  223. package/lib/stores/editor-state/GrammarTextEditorState.js +14 -8
  224. package/lib/stores/editor-state/GrammarTextEditorState.js.map +1 -1
  225. package/lib/stores/editor-state/element-editor-state/ClassEditorState.d.ts +0 -1
  226. package/lib/stores/editor-state/element-editor-state/ClassEditorState.d.ts.map +1 -1
  227. package/lib/stores/editor-state/element-editor-state/ClassEditorState.js +0 -5
  228. package/lib/stores/editor-state/element-editor-state/ClassEditorState.js.map +1 -1
  229. package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts +0 -1
  230. package/lib/stores/editor-state/element-editor-state/ElementEditorState.d.ts.map +1 -1
  231. package/lib/stores/editor-state/element-editor-state/ElementEditorState.js +0 -3
  232. package/lib/stores/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
  233. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts +2 -2
  234. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.d.ts.map +1 -1
  235. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js +5 -4
  236. package/lib/stores/editor-state/element-editor-state/ElementFileGenerationState.js.map +1 -1
  237. package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts +0 -1
  238. package/lib/stores/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
  239. package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js +0 -4
  240. package/lib/stores/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
  241. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +0 -1
  242. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  243. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js +0 -6
  244. package/lib/stores/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  245. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +6 -6
  246. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  247. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +24 -14
  248. package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  249. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts +6 -6
  250. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
  251. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +30 -15
  252. package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  253. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  254. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
  255. package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  256. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts +4 -4
  257. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.d.ts.map +1 -1
  258. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js +54 -44
  259. package/lib/stores/editor-state/element-editor-state/service/ServiceRegistrationState.js.map +1 -1
  260. package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
  261. package/lib/stores/project-viewer/ProjectViewerStore.js +1 -1
  262. package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
  263. package/lib/stores/shared/PackageTreeUtils.d.ts +1 -0
  264. package/lib/stores/shared/PackageTreeUtils.d.ts.map +1 -1
  265. package/lib/stores/shared/PackageTreeUtils.js +5 -2
  266. package/lib/stores/shared/PackageTreeUtils.js.map +1 -1
  267. package/lib/stores/sidebar-state/LocalChangesState.d.ts +13 -13
  268. package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
  269. package/lib/stores/sidebar-state/LocalChangesState.js +85 -78
  270. package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
  271. package/lib/stores/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
  272. package/lib/stores/sidebar-state/ProjectOverviewState.js +19 -4
  273. package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
  274. package/lib/stores/sidebar-state/WorkflowManagerState.d.ts +8 -8
  275. package/lib/stores/sidebar-state/WorkflowManagerState.d.ts.map +1 -1
  276. package/lib/stores/sidebar-state/WorkflowManagerState.js +15 -11
  277. package/lib/stores/sidebar-state/WorkflowManagerState.js.map +1 -1
  278. package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts +3 -3
  279. package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
  280. package/lib/stores/sidebar-state/WorkspaceReviewState.js +21 -6
  281. package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
  282. package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts +2 -2
  283. package/lib/stores/sidebar-state/WorkspaceSyncState.d.ts.map +1 -1
  284. package/lib/stores/sidebar-state/WorkspaceSyncState.js +9 -7
  285. package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
  286. package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts +2 -2
  287. package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
  288. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +8 -4
  289. package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
  290. package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts +2 -2
  291. package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts.map +1 -1
  292. package/lib/stores/workspace-review/WorkspaceReviewStore.js +27 -10
  293. package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
  294. package/package.json +15 -15
  295. package/src/application/LegendStudioApplicationConfig.ts +7 -0
  296. package/src/components/EditorComponentTestUtils.tsx +64 -60
  297. package/src/components/editor/StatusBar.tsx +38 -3
  298. package/src/components/editor/aux-panel/AuxiliaryPanel.tsx +32 -10
  299. package/src/components/editor/aux-panel/Console.tsx +4 -3
  300. package/src/components/editor/aux-panel/DevTool.tsx +47 -79
  301. package/src/components/editor/aux-panel/Problems.tsx +103 -0
  302. package/src/components/editor/edit-panel/FunctionEditor.tsx +49 -3
  303. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +48 -36
  304. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +61 -61
  305. package/src/components/editor/edit-panel/connection-editor/post-processor-editor/MapperPostProcessorEditor.tsx +21 -25
  306. package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +23 -23
  307. package/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +2 -1
  308. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +19 -22
  309. package/src/components/editor/side-bar/Explorer.tsx +34 -10
  310. package/src/components/editor/side-bar/ProjectOverview.tsx +5 -3
  311. package/src/components/shared/DiffView.tsx +2 -2
  312. package/src/stores/ChangeDetectionState.ts +17 -8
  313. package/src/stores/EditorConfig.ts +1 -0
  314. package/src/stores/EditorGraphState.ts +223 -136
  315. package/src/stores/EditorSDLCState.ts +65 -30
  316. package/src/stores/EditorStore.ts +1 -1
  317. package/src/stores/EmbeddedQueryBuilderState.ts +1 -1
  318. package/src/stores/editor/NewElementState.ts +24 -5
  319. package/src/stores/editor/StandardEditorMode.ts +4 -2
  320. package/src/stores/editor-state/FileGenerationState.ts +19 -8
  321. package/src/stores/editor-state/GrammarTextEditorState.ts +18 -10
  322. package/src/stores/editor-state/element-editor-state/ClassEditorState.ts +0 -12
  323. package/src/stores/editor-state/element-editor-state/ElementEditorState.ts +0 -4
  324. package/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +8 -6
  325. package/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +0 -5
  326. package/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +0 -11
  327. package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +29 -15
  328. package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +37 -23
  329. package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +4 -3
  330. package/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +63 -48
  331. package/src/stores/project-viewer/ProjectViewerStore.ts +5 -3
  332. package/src/stores/shared/PackageTreeUtils.ts +10 -1
  333. package/src/stores/sidebar-state/LocalChangesState.ts +151 -142
  334. package/src/stores/sidebar-state/ProjectOverviewState.ts +19 -4
  335. package/src/stores/sidebar-state/WorkflowManagerState.ts +28 -31
  336. package/src/stores/sidebar-state/WorkspaceReviewState.ts +24 -8
  337. package/src/stores/sidebar-state/WorkspaceSyncState.ts +11 -16
  338. package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +11 -7
  339. package/src/stores/workspace-review/WorkspaceReviewStore.ts +39 -12
  340. package/tsconfig.json +1 -0
@@ -14,7 +14,14 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { action, makeAutoObservable, flowResult, flow } from 'mobx';
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
- makeAutoObservable(this, {
69
- editorStore: false,
70
- sdlcState: false,
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
- patchLoaderState: PatchLoaderState;
170
- refreshWorkspaceSyncStatusState = ActionState.create();
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
- makeAutoObservable(this, {
174
- editorStore: false,
175
- sdlcState: false,
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
- ? this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.entities.find(
199
- (e) => e.path === entityPath,
200
- )
201
- : undefined;
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 (!entityPath) {
254
- return undefined;
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
- return entity;
314
+ }
315
+ return undefined;
269
316
  };
270
317
  const toEntityGetter = (
271
318
  entityPath: string | undefined,
272
- ): Entity | undefined =>
273
- entityPath
274
- ? this.editorStore.changeDetectionState.workspaceRemoteLatestRevisionState.entities.find(
275
- (e) => e.path === entityPath,
276
- )
277
- : undefined;
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, makeAutoObservable } from 'mobx';
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
- makeAutoObservable(this, {
67
- editorStore: false,
68
- sdlcState: false,
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
- makeAutoObservable(this, {
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
- makeAutoObservable(this, {
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, makeAutoObservable, flowResult } from 'mobx';
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
- makeAutoObservable(this, {
61
- editorStore: false,
62
- sdlcState: false,
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 = (val: string): void => {
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
- makeAutoObservable(this, {
385
- editorStore: false,
386
- sdlcState: false,
387
- fetchIncomingRevisions: flow,
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, makeAutoObservable, flowResult } from 'mobx';
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
- makeAutoObservable(this, {
57
- editorStore: false,
58
- sdlcState: false,
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;