@finos/legend-application-studio 18.1.0 → 19.0.0

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