@finos/legend-application-studio 28.16.3 → 28.16.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/lib/components/LegendStudioAppInfo.d.ts.map +1 -1
  2. package/lib/components/LegendStudioAppInfo.js +1 -1
  3. package/lib/components/LegendStudioAppInfo.js.map +1 -1
  4. package/lib/components/editor/EmbeddedQueryBuilder.d.ts.map +1 -1
  5. package/lib/components/editor/EmbeddedQueryBuilder.js +1 -1
  6. package/lib/components/editor/EmbeddedQueryBuilder.js.map +1 -1
  7. package/lib/components/editor/QuickInput.d.ts.map +1 -1
  8. package/lib/components/editor/QuickInput.js +3 -1
  9. package/lib/components/editor/QuickInput.js.map +1 -1
  10. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  11. package/lib/components/editor/command-center/ProjectSearchCommand.js +5 -2
  12. package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
  13. package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
  14. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +4 -2
  15. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
  16. package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
  17. package/lib/components/editor/editor-group/RuntimeEditor.js +6 -3
  18. package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
  19. package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.d.ts.map +1 -1
  20. package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js +6 -3
  21. package/lib/components/editor/editor-group/connection-editor/ConnectionEditor.js.map +1 -1
  22. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts.map +1 -1
  23. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js +7 -2
  24. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -1
  25. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.d.ts.map +1 -1
  26. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js +1 -1
  27. package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js.map +1 -1
  28. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  29. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +14 -4
  30. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  31. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  32. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +8 -3
  33. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
  34. package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  35. package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js +5 -2
  36. package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
  37. package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  38. package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js +2 -1
  39. package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js.map +1 -1
  40. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.d.ts.map +1 -1
  41. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +2 -1
  42. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
  43. package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.d.ts.map +1 -1
  44. package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.js +2 -2
  45. package/lib/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.js.map +1 -1
  46. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
  47. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +5 -1
  48. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
  49. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
  50. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +3 -2
  51. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  52. package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
  53. package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +5 -3
  54. package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
  55. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
  56. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +2 -1
  57. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
  58. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
  59. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +2 -1
  60. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
  61. package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.d.ts.map +1 -1
  62. package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +12 -8
  63. package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -1
  64. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
  65. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +3 -1
  66. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  67. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
  68. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +2 -1
  69. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
  70. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  71. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +3 -1
  72. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  73. package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts.map +1 -1
  74. package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +12 -4
  75. package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
  76. package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  77. package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +5 -2
  78. package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
  79. package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.d.ts.map +1 -1
  80. package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js +2 -1
  81. package/lib/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.js.map +1 -1
  82. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
  83. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +5 -4
  84. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
  85. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.d.ts.map +1 -1
  86. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js +5 -2
  87. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
  88. package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts.map +1 -1
  89. package/lib/components/editor/editor-group/service-editor/ServiceEditor.js +2 -1
  90. package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
  91. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  92. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +7 -2
  93. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
  94. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  95. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +3 -2
  96. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  97. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.d.ts.map +1 -1
  98. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js +5 -2
  99. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
  100. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
  101. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js +15 -6
  102. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  103. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  104. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +8 -3
  105. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
  106. package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
  107. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +10 -4
  108. package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
  109. package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts.map +1 -1
  110. package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +17 -4
  111. package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
  112. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  113. package/lib/components/editor/side-bar/CreateNewElementModal.js +19 -9
  114. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  115. package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
  116. package/lib/components/editor/side-bar/Explorer.js +5 -2
  117. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  118. package/lib/components/editor/side-bar/LocalChanges.d.ts.map +1 -1
  119. package/lib/components/editor/side-bar/LocalChanges.js +3 -2
  120. package/lib/components/editor/side-bar/LocalChanges.js.map +1 -1
  121. package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
  122. package/lib/components/editor/side-bar/ProjectOverview.js +8 -5
  123. package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
  124. package/lib/components/editor/side-bar/RegisterService.d.ts.map +1 -1
  125. package/lib/components/editor/side-bar/RegisterService.js +5 -2
  126. package/lib/components/editor/side-bar/RegisterService.js.map +1 -1
  127. package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
  128. package/lib/components/editor/side-bar/WorkflowManager.js +2 -1
  129. package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
  130. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
  131. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +3 -3
  132. package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
  133. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  134. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +3 -2
  135. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  136. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
  137. package/lib/components/workspace-setup/CreateProjectModal.js +2 -1
  138. package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
  139. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
  140. package/lib/components/workspace-setup/CreateWorkspaceModal.js +3 -2
  141. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
  142. package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
  143. package/lib/components/workspace-setup/WorkspaceSetup.js +5 -3
  144. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  145. package/lib/index.css +1 -1
  146. package/lib/package.json +1 -1
  147. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts +4 -4
  148. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.d.ts.map +1 -1
  149. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js +11 -7
  150. package/lib/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.js.map +1 -1
  151. package/lib/stores/editor/utils/TestableUtils.d.ts.map +1 -1
  152. package/lib/stores/editor/utils/TestableUtils.js +4 -3
  153. package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
  154. package/package.json +11 -11
  155. package/src/components/LegendStudioAppInfo.tsx +6 -1
  156. package/src/components/editor/EmbeddedQueryBuilder.tsx +3 -1
  157. package/src/components/editor/QuickInput.tsx +11 -2
  158. package/src/components/editor/command-center/ProjectSearchCommand.tsx +14 -3
  159. package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +8 -2
  160. package/src/components/editor/editor-group/RuntimeEditor.tsx +15 -3
  161. package/src/components/editor/editor-group/connection-editor/ConnectionEditor.tsx +12 -3
  162. package/src/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.tsx +13 -4
  163. package/src/components/editor/editor-group/connection-editor/DatabaseModelBuilder.tsx +6 -1
  164. package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +36 -7
  165. package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +13 -3
  166. package/src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx +12 -2
  167. package/src/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.tsx +4 -1
  168. package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +4 -1
  169. package/src/components/editor/editor-group/end-to-end-flow-editor/ConnectionToQueryWorkflowEditor.tsx +6 -2
  170. package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +13 -3
  171. package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +12 -6
  172. package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +16 -4
  173. package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +4 -1
  174. package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +4 -1
  175. package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx +25 -10
  176. package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +11 -2
  177. package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +10 -2
  178. package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +5 -1
  179. package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +42 -11
  180. package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +9 -2
  181. package/src/components/editor/editor-group/mapping-editor/legacy/MappingTestMigrationTool.tsx +4 -1
  182. package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +18 -4
  183. package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +12 -3
  184. package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +4 -1
  185. package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +14 -3
  186. package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +13 -6
  187. package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +12 -3
  188. package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx +48 -18
  189. package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +14 -3
  190. package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +35 -8
  191. package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +29 -5
  192. package/src/components/editor/side-bar/CreateNewElementModal.tsx +42 -11
  193. package/src/components/editor/side-bar/Explorer.tsx +8 -2
  194. package/src/components/editor/side-bar/LocalChanges.tsx +12 -6
  195. package/src/components/editor/side-bar/ProjectOverview.tsx +23 -9
  196. package/src/components/editor/side-bar/RegisterService.tsx +18 -3
  197. package/src/components/editor/side-bar/WorkflowManager.tsx +12 -2
  198. package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +17 -10
  199. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +12 -2
  200. package/src/components/workspace-setup/CreateProjectModal.tsx +7 -1
  201. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +7 -2
  202. package/src/components/workspace-setup/WorkspaceSetup.tsx +14 -3
  203. package/src/stores/editor/editor-state/element-editor-state/data/EmbeddedDataState.ts +15 -12
  204. package/src/stores/editor/utils/TestableUtils.ts +4 -1
@@ -34,6 +34,7 @@ import {
34
34
  Modal,
35
35
  ModalBody,
36
36
  ModalFooter,
37
+ ModalFooterButton,
37
38
  MenuContentItem,
38
39
  MenuContent,
39
40
  PanelFormBooleanField,
@@ -111,7 +112,12 @@ const ShareProjectModal = observer(
111
112
 
112
113
  return (
113
114
  <Dialog onClose={closeModal} open={open}>
114
- <Modal darkMode={true} className="modal--no-padding">
115
+ <Modal
116
+ darkMode={
117
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
118
+ }
119
+ className="modal--no-padding"
120
+ >
115
121
  <PanelLoadingIndicator isLoading={isDispatchingAction} />
116
122
  <ModalBody>
117
123
  <div className="project-overview__share-project__modal__info-entry">
@@ -134,7 +140,10 @@ const ShareProjectModal = observer(
134
140
  }
135
141
  : null
136
142
  }
137
- darkMode={true}
143
+ darkMode={
144
+ !applicationStore.layoutService
145
+ .TEMPORARY__isLightColorThemeEnabled
146
+ }
138
147
  />
139
148
  </div>
140
149
  ) : (
@@ -154,13 +163,12 @@ const ShareProjectModal = observer(
154
163
  </div>
155
164
  </ModalBody>
156
165
  <ModalFooter>
157
- <button
158
- className="btn--wide btn--dark"
166
+ <ModalFooterButton
167
+ className="btn--wide"
168
+ text="Copy Link"
159
169
  disabled={isFetchingProject}
160
170
  onClick={copyProjectElementLink}
161
- >
162
- Copy Link
163
- </button>
171
+ />
164
172
  </ModalFooter>
165
173
  </Modal>
166
174
  </Dialog>
@@ -680,7 +688,10 @@ const PatchEditor = observer(() => {
680
688
  placeholder={'Select source version'}
681
689
  isClearable={true}
682
690
  escapeClearsValue={true}
683
- darkMode={true}
691
+ darkMode={
692
+ !applicationStore.layoutService
693
+ .TEMPORARY__isLightColorThemeEnabled
694
+ }
684
695
  />
685
696
  </div>
686
697
  </div>
@@ -747,7 +758,10 @@ const PatchEditor = observer(() => {
747
758
  placeholder={'Select patch you want to release'}
748
759
  isClearable={true}
749
760
  escapeClearsValue={true}
750
- darkMode={true}
761
+ darkMode={
762
+ !applicationStore.layoutService
763
+ .TEMPORARY__isLightColorThemeEnabled
764
+ }
751
765
  />
752
766
  </div>
753
767
  </div>
@@ -162,6 +162,8 @@ const ServiceFailViewer = observer(
162
162
  failure: ServiceRegistrationResult | undefined;
163
163
  }) => {
164
164
  const { globalBulkServiceRegistrationState, failure } = props;
165
+ const applicationStore =
166
+ globalBulkServiceRegistrationState.editorStore.applicationStore;
165
167
  const closeLogViewer = (): void =>
166
168
  globalBulkServiceRegistrationState.setFailingView(undefined);
167
169
  return (
@@ -174,7 +176,12 @@ const ServiceFailViewer = observer(
174
176
  paper: 'editor-modal__content',
175
177
  }}
176
178
  >
177
- <Modal darkMode={true} className="editor-modal">
179
+ <Modal
180
+ darkMode={
181
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
182
+ }
183
+ className="editor-modal"
184
+ >
178
185
  <ModalHeader title={guaranteeNonNullable(failure?.service).path} />
179
186
  <ModalBody>
180
187
  {failure instanceof ServiceRegistrationFail && (
@@ -186,7 +193,11 @@ const ServiceFailViewer = observer(
186
193
  )}
187
194
  </ModalBody>
188
195
  <ModalFooter>
189
- <ModalFooterButton text="Close" onClick={closeLogViewer} />
196
+ <ModalFooterButton
197
+ text="Close"
198
+ onClick={closeLogViewer}
199
+ type="secondary"
200
+ />
190
201
  </ModalFooter>
191
202
  </Modal>
192
203
  </Dialog>
@@ -199,6 +210,7 @@ export const RegisterService = observer(
199
210
  globalBulkServiceRegistrationState: GlobalBulkServiceRegistrationState;
200
211
  }) => {
201
212
  const editorStore = useEditorStore();
213
+ const applicationStore = editorStore.applicationStore;
202
214
  const services = editorStore.graphManagerState.graph.ownServices;
203
215
  const toggleSelectAllServices = (): void => {
204
216
  editorStore.globalBulkServiceRegistrationState.selectAllServices
@@ -334,7 +346,10 @@ export const RegisterService = observer(
334
346
  }
335
347
  >
336
348
  <Modal
337
- darkMode={true}
349
+ darkMode={
350
+ !applicationStore.layoutService
351
+ .TEMPORARY__isLightColorThemeEnabled
352
+ }
338
353
  className={clsx(
339
354
  'editor-modal bulk-service-registration__service__editor',
340
355
  )}
@@ -198,6 +198,7 @@ const WorkflowJobLogsViewer = observer(
198
198
  logState: WorkflowLogState;
199
199
  }) => {
200
200
  const { workflowState, logState } = props;
201
+ const applicationStore = workflowState.editorStore.applicationStore;
201
202
  const job = guaranteeNonNullable(logState.job);
202
203
  const jobIsInProgress = job.status === WorkflowJobStatus.IN_PROGRESS;
203
204
  const closeLogViewer = (): void => {
@@ -220,7 +221,12 @@ const WorkflowJobLogsViewer = observer(
220
221
  paper: 'editor-modal__content',
221
222
  }}
222
223
  >
223
- <Modal darkMode={true} className="editor-modal">
224
+ <Modal
225
+ darkMode={
226
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
227
+ }
228
+ className="editor-modal"
229
+ >
224
230
  <PanelLoadingIndicator
225
231
  isLoading={logState.fetchJobLogState.isInProgress}
226
232
  />
@@ -245,7 +251,11 @@ const WorkflowJobLogsViewer = observer(
245
251
  />
246
252
  </ModalBody>
247
253
  <ModalFooter>
248
- <ModalFooterButton text="Close" onClick={closeLogViewer} />
254
+ <ModalFooterButton
255
+ text="Close"
256
+ onClick={closeLogViewer}
257
+ type="secondary"
258
+ />
249
259
  </ModalFooter>
250
260
  </Modal>
251
261
  </Dialog>
@@ -31,6 +31,7 @@ import {
31
31
  ModalBody,
32
32
  ModalFooter,
33
33
  ModalHeader,
34
+ ModalFooterButton,
34
35
  } from '@finos/legend-art';
35
36
  import type {
36
37
  EntityChangeConflict,
@@ -108,7 +109,12 @@ export const WorkspaceSyncConflictResolver = observer(() => {
108
109
  classes={{ container: 'search-modal__container' }}
109
110
  PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
110
111
  >
111
- <Modal darkMode={true} className="editor-modal query-builder__dialog">
112
+ <Modal
113
+ darkMode={
114
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
115
+ }
116
+ className="editor-modal query-builder__dialog"
117
+ >
112
118
  <ModalHeader title="Resolve Merge Conflicts" />
113
119
  <ModalBody>
114
120
  <ResizablePanelGroup orientation="vertical">
@@ -255,17 +261,18 @@ export const WorkspaceSyncConflictResolver = observer(() => {
255
261
  </ResizablePanelGroup>
256
262
  </ModalBody>
257
263
  <ModalFooter>
258
- <button
259
- className="btn btn--dark"
260
- disabled={Boolean(conflicts.length)}
264
+ <ModalFooterButton
265
+ text="Apply Resolutions"
261
266
  title="Apply Resolutions"
267
+ disabled={Boolean(conflicts.length)}
262
268
  onClick={applyResolutions}
263
- >
264
- Apply Resolutions
265
- </button>
266
- <button className="btn btn--dark" title="Aborts" onClick={abort}>
267
- Abort
268
- </button>
269
+ />
270
+ <ModalFooterButton
271
+ text="Abort"
272
+ title="Aborts"
273
+ onClick={abort}
274
+ type="secondary"
275
+ />
269
276
  </ModalFooter>
270
277
  </Modal>
271
278
  </Dialog>
@@ -184,6 +184,7 @@ const TestFailViewer = observer(
184
184
  failure: TestError | AssertFail;
185
185
  }) => {
186
186
  const { globalTestRunnerState, failure } = props;
187
+ const applicationStore = globalTestRunnerState.editorStore.applicationStore;
187
188
  const id =
188
189
  failure instanceof TestError
189
190
  ? failure.atomicTest.id
@@ -201,7 +202,12 @@ const TestFailViewer = observer(
201
202
  paper: 'editor-modal__content',
202
203
  }}
203
204
  >
204
- <Modal darkMode={true} className="editor-modal">
205
+ <Modal
206
+ darkMode={
207
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
208
+ }
209
+ className="editor-modal"
210
+ >
205
211
  <PanelLoadingIndicator
206
212
  isLoading={globalTestRunnerState.isDispatchingOwnProjectAction}
207
213
  />
@@ -231,7 +237,11 @@ const TestFailViewer = observer(
231
237
  )}
232
238
  </ModalBody>
233
239
  <ModalFooter>
234
- <ModalFooterButton text="Close" onClick={closeLogViewer} />
240
+ <ModalFooterButton
241
+ text="Close"
242
+ onClick={closeLogViewer}
243
+ type="secondary"
244
+ />
235
245
  </ModalFooter>
236
246
  </Modal>
237
247
  </Dialog>
@@ -626,6 +626,7 @@ const ImportProjectTab = observer(() => {
626
626
 
627
627
  export const CreateProjectModal = observer(() => {
628
628
  const setupStore = useWorkspaceSetupStore();
629
+ const applicationStore = setupStore.applicationStore;
629
630
  const allowCreatingNewProject =
630
631
  setupStore.sdlcServerClient.features.canCreateProject;
631
632
  const [selectedTab, setSelectedTab] = useState(
@@ -654,7 +655,12 @@ export const CreateProjectModal = observer(() => {
654
655
  classes={{ container: 'search-modal__container' }}
655
656
  PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
656
657
  >
657
- <Modal darkMode={true} className="workspace-setup__create-project-modal">
658
+ <Modal
659
+ darkMode={
660
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
661
+ }
662
+ className="workspace-setup__create-project-modal"
663
+ >
658
664
  <div className="workspace-setup__create-project-modal__header">
659
665
  <div className="workspace-setup__create-project-modal__header__label">
660
666
  Create Project
@@ -134,7 +134,9 @@ export const CreateWorkspaceModal = observer(
134
134
  PaperProps={{ classes: { root: 'search-modal__inner-container' } }}
135
135
  >
136
136
  <Modal
137
- darkMode={true}
137
+ darkMode={
138
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
139
+ }
138
140
  className="workspace-setup__create-workspace-modal"
139
141
  >
140
142
  <div className="modal__title">
@@ -187,7 +189,10 @@ export const CreateWorkspaceModal = observer(
187
189
  value={selectedPatchOption}
188
190
  isClearable={true}
189
191
  escapeClearsValue={true}
190
- darkMode={true}
192
+ darkMode={
193
+ !applicationStore.layoutService
194
+ .TEMPORARY__isLightColorThemeEnabled
195
+ }
191
196
  />
192
197
  </div>
193
198
  <PanelFormBooleanField
@@ -315,7 +315,12 @@ const SandboxAccessModal = observer(() => {
315
315
 
316
316
  return (
317
317
  <Dialog open={true} onClose={closeModal}>
318
- <Modal darkMode={true} className="sandbox-project-modal">
318
+ <Modal
319
+ darkMode={
320
+ !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled
321
+ }
322
+ className="sandbox-project-modal"
323
+ >
319
324
  <div className="sandbox-project-modal__header">
320
325
  <div className="sandbox-project-modal__header__label">
321
326
  Create Sandbox Project
@@ -511,7 +516,10 @@ export const WorkspaceSetup = withWorkspaceSetupStore(
511
516
  placeholder="Search for project..."
512
517
  isClearable={true}
513
518
  escapeClearsValue={true}
514
- darkMode={true}
519
+ darkMode={
520
+ !applicationStore.layoutService
521
+ .TEMPORARY__isLightColorThemeEnabled
522
+ }
515
523
  formatOptionLabel={getProjectOptionLabelFormatter(
516
524
  applicationStore,
517
525
  setupStore.currentProjectConfigurationStatus,
@@ -569,7 +577,10 @@ export const WorkspaceSetup = withWorkspaceSetupStore(
569
577
  }
570
578
  isClearable={true}
571
579
  escapeClearsValue={true}
572
- darkMode={true}
580
+ darkMode={
581
+ !applicationStore.layoutService
582
+ .TEMPORARY__isLightColorThemeEnabled
583
+ }
573
584
  optionCustomization={{
574
585
  rowHeight: window.innerHeight * 0.03,
575
586
  }}
@@ -16,7 +16,7 @@
16
16
  import {
17
17
  type EmbeddedData,
18
18
  type ModelData,
19
- type DataElement,
19
+ DataElement,
20
20
  RelationalCSVData,
21
21
  type Database,
22
22
  type RelationalCSVDataTable,
@@ -310,6 +310,11 @@ export class RelationalCSVDataState extends EmbeddedDataState {
310
310
  export interface EmbeddedDataStateOption {
311
311
  hideSource?: boolean;
312
312
  }
313
+ export class UnsupportedDataState extends EmbeddedDataState {
314
+ label(): string {
315
+ return 'Unsupported embedded data';
316
+ }
317
+ }
313
318
 
314
319
  export class DataElementReferenceState extends EmbeddedDataState {
315
320
  override embeddedData: DataElementReference;
@@ -341,17 +346,15 @@ export class DataElementReferenceState extends EmbeddedDataState {
341
346
  }
342
347
 
343
348
  buildValueState(options?: EmbeddedDataStateOption): EmbeddedDataState {
344
- return buildEmbeddedDataEditorState(
345
- this.embeddedData.dataElement.value.data,
346
- this.editorStore,
347
- this.options,
348
- );
349
- }
350
- }
351
-
352
- export class UnsupportedDataState extends EmbeddedDataState {
353
- label(): string {
354
- return 'Unsupported embedded data';
349
+ const packagableEl = this.embeddedData.dataElement.value;
350
+ if (packagableEl instanceof DataElement) {
351
+ return buildEmbeddedDataEditorState(
352
+ packagableEl.data,
353
+ this.editorStore,
354
+ this.options,
355
+ );
356
+ }
357
+ return new UnsupportedDataState(this.editorStore, this.embeddedData);
355
358
  }
356
359
  }
357
360
 
@@ -58,6 +58,7 @@ import {
58
58
  PrimitiveInstanceValue,
59
59
  PrimitiveType,
60
60
  LambdaFunctionInstanceValue,
61
+ DataElement,
61
62
  } from '@finos/legend-graph';
62
63
  import {
63
64
  assertTrue,
@@ -65,6 +66,7 @@ import {
65
66
  generateEnumerableNameFromToken,
66
67
  getNullableFirstEntry,
67
68
  guaranteeNonEmptyString,
69
+ guaranteeType,
68
70
  isNonNullable,
69
71
  LogEvent,
70
72
  returnUndefOnError,
@@ -197,7 +199,8 @@ export class EmbeddedDataCreatorFromEmbeddedData
197
199
  return val;
198
200
  }
199
201
  visit_DataElementReference(data: DataElementReference): EmbeddedData {
200
- return data.dataElement.value.data.accept_EmbeddedDataVisitor(
202
+ const datElement = guaranteeType(data.dataElement.value, DataElement);
203
+ return datElement.data.accept_EmbeddedDataVisitor(
201
204
  new EmbeddedDataCreatorFromEmbeddedData(this.editorStore),
202
205
  );
203
206
  }