@finos/legend-application-studio 28.18.39 → 28.18.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. package/lib/__lib__/LegendStudioNavigation.d.ts +3 -3
  2. package/lib/__lib__/LegendStudioNavigation.d.ts.map +1 -1
  3. package/lib/__lib__/LegendStudioNavigation.js +3 -3
  4. package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
  5. package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
  6. package/lib/components/LegendStudioWebApplication.js +12 -51
  7. package/lib/components/LegendStudioWebApplication.js.map +1 -1
  8. package/lib/components/editor/Editor.d.ts.map +1 -1
  9. package/lib/components/editor/Editor.js +1 -1
  10. package/lib/components/editor/Editor.js.map +1 -1
  11. package/lib/components/editor/QuickInput.d.ts.map +1 -1
  12. package/lib/components/editor/QuickInput.js +2 -2
  13. package/lib/components/editor/QuickInput.js.map +1 -1
  14. package/lib/components/editor/__test-utils__/EditorComponentTestUtils.d.ts.map +1 -1
  15. package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js +7 -10
  16. package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js.map +1 -1
  17. package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
  18. package/lib/components/editor/command-center/ProjectSearchCommand.js +2 -2
  19. package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
  20. package/lib/components/editor/editor-group/GenerationSpecificationEditor.d.ts.map +1 -1
  21. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +4 -1
  22. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
  23. package/lib/components/editor/editor-group/RuntimeEditor.d.ts.map +1 -1
  24. package/lib/components/editor/editor-group/RuntimeEditor.js +12 -10
  25. package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
  26. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
  27. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +3 -4
  28. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  29. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  30. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js +3 -3
  31. package/lib/components/editor/editor-group/data-editor/EmbeddedDataEditor.js.map +1 -1
  32. package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.d.ts.map +1 -1
  33. package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js +3 -1
  34. package/lib/components/editor/editor-group/database/IsolatedQueryDatabase.js.map +1 -1
  35. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +1 -1
  36. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
  37. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.d.ts.map +1 -1
  38. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +19 -13
  39. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
  40. package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
  41. package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +9 -6
  42. package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
  43. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
  44. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +1 -1
  45. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
  46. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
  47. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +8 -6
  48. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
  49. package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +1 -1
  50. package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -1
  51. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +2 -2
  52. package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
  53. package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.d.ts.map +1 -1
  54. package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js +6 -2
  55. package/lib/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.js.map +1 -1
  56. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
  57. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +10 -6
  58. package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
  59. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +2 -2
  60. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  61. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.d.ts.map +1 -1
  62. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js +3 -1
  63. package/lib/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.js.map +1 -1
  64. package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +2 -2
  65. package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
  66. package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
  67. package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +7 -4
  68. package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
  69. package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.d.ts.map +1 -1
  70. package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js +2 -2
  71. package/lib/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.js.map +1 -1
  72. package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.d.ts.map +1 -1
  73. package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js +6 -2
  74. package/lib/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.js.map +1 -1
  75. package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.d.ts.map +1 -1
  76. package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js +6 -2
  77. package/lib/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.js.map +1 -1
  78. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
  79. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +3 -1
  80. package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
  81. package/lib/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.js.map +1 -1
  82. package/lib/components/editor/editor-group/service-editor/ServiceEditor.d.ts.map +1 -1
  83. package/lib/components/editor/editor-group/service-editor/ServiceEditor.js +2 -2
  84. package/lib/components/editor/editor-group/service-editor/ServiceEditor.js.map +1 -1
  85. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +2 -2
  86. package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
  87. package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js +1 -1
  88. package/lib/components/editor/editor-group/service-editor/ServicePostValidationEditor.js.map +1 -1
  89. package/lib/components/editor/editor-group/service-editor/ServiceRegistrationEditor.js.map +1 -1
  90. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +3 -3
  91. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
  92. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +1 -1
  93. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
  94. package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts.map +1 -1
  95. package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +7 -4
  96. package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
  97. package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js +1 -1
  98. package/lib/components/editor/editor-group/uml-editor/PropertyEditor.js.map +1 -1
  99. package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.d.ts.map +1 -1
  100. package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js +2 -2
  101. package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js.map +1 -1
  102. package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.d.ts.map +1 -1
  103. package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js +2 -2
  104. package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js.map +1 -1
  105. package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +3 -3
  106. package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
  107. package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
  108. package/lib/components/editor/side-bar/CreateNewElementModal.js +8 -2
  109. package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
  110. package/lib/components/editor/side-bar/Explorer.js +2 -2
  111. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  112. package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
  113. package/lib/components/editor/side-bar/ProjectOverview.js +3 -1
  114. package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
  115. package/lib/components/lazy-text-editor/LazyTextEditor.d.ts.map +1 -1
  116. package/lib/components/lazy-text-editor/LazyTextEditor.js +1 -1
  117. package/lib/components/lazy-text-editor/LazyTextEditor.js.map +1 -1
  118. package/lib/components/project-reviewer/ProjectReviewer.d.ts.map +1 -1
  119. package/lib/components/project-reviewer/ProjectReviewer.js +3 -2
  120. package/lib/components/project-reviewer/ProjectReviewer.js.map +1 -1
  121. package/lib/index.css +2 -2
  122. package/lib/index.css.map +1 -1
  123. package/lib/package.json +6 -6
  124. package/lib/stores/LegendStudioBaseStore.d.ts.map +1 -1
  125. package/lib/stores/LegendStudioBaseStore.js +12 -7
  126. package/lib/stores/LegendStudioBaseStore.js.map +1 -1
  127. package/lib/stores/editor/EditorStore.d.ts +1 -1
  128. package/lib/stores/editor/EditorStore.d.ts.map +1 -1
  129. package/lib/stores/editor/EditorStore.js +1 -1
  130. package/lib/stores/editor/EditorStore.js.map +1 -1
  131. package/lib/stores/showcase/ShowcaseViewerStore.js +1 -1
  132. package/lib/stores/showcase/ShowcaseViewerStore.js.map +1 -1
  133. package/package.json +18 -18
  134. package/src/__lib__/LegendStudioNavigation.ts +5 -5
  135. package/src/components/LegendStudioWebApplication.tsx +127 -106
  136. package/src/components/editor/Editor.tsx +2 -1
  137. package/src/components/editor/QuickInput.tsx +3 -2
  138. package/src/components/editor/__test-utils__/EditorComponentTestUtils.tsx +29 -30
  139. package/src/components/editor/command-center/ProjectSearchCommand.tsx +4 -3
  140. package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +7 -2
  141. package/src/components/editor/editor-group/RuntimeEditor.tsx +16 -12
  142. package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +7 -13
  143. package/src/components/editor/editor-group/data-editor/EmbeddedDataEditor.tsx +10 -9
  144. package/src/components/editor/editor-group/database/IsolatedQueryDatabase.tsx +5 -1
  145. package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +1 -1
  146. package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +20 -14
  147. package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +11 -8
  148. package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +0 -1
  149. package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +11 -7
  150. package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx +1 -1
  151. package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +4 -4
  152. package/src/components/editor/editor-group/mapping-editor/FlatDataPropertyMappingEditor.tsx +9 -2
  153. package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +7 -6
  154. package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +3 -3
  155. package/src/components/editor/editor-group/mapping-editor/MappingExecutionQueryBuilder.tsx +3 -0
  156. package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +2 -2
  157. package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +9 -5
  158. package/src/components/editor/editor-group/mapping-editor/OperationSetImplementationEditor.tsx +3 -2
  159. package/src/components/editor/editor-group/mapping-editor/PurePropertyMappingEditor.tsx +9 -2
  160. package/src/components/editor/editor-group/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +9 -2
  161. package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +7 -3
  162. package/src/components/editor/editor-group/service-editor/BulkServiceRegistrationEditor.tsx +1 -1
  163. package/src/components/editor/editor-group/service-editor/ServiceEditor.tsx +0 -2
  164. package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +5 -5
  165. package/src/components/editor/editor-group/service-editor/ServicePostValidationEditor.tsx +2 -2
  166. package/src/components/editor/editor-group/service-editor/ServiceRegistrationEditor.tsx +1 -1
  167. package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +3 -3
  168. package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +3 -3
  169. package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +10 -7
  170. package/src/components/editor/editor-group/uml-editor/PropertyEditor.tsx +1 -1
  171. package/src/components/editor/editor-group/uml-editor/StereotypeSelector.tsx +5 -3
  172. package/src/components/editor/editor-group/uml-editor/TaggedValueEditor.tsx +4 -3
  173. package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +4 -4
  174. package/src/components/editor/side-bar/CreateNewElementModal.tsx +12 -4
  175. package/src/components/editor/side-bar/Explorer.tsx +3 -3
  176. package/src/components/editor/side-bar/ProjectOverview.tsx +5 -1
  177. package/src/components/lazy-text-editor/LazyTextEditor.tsx +2 -1
  178. package/src/components/project-reviewer/ProjectReviewer.tsx +3 -2
  179. package/src/stores/LegendStudioBaseStore.ts +12 -7
  180. package/src/stores/editor/EditorStore.ts +2 -2
  181. package/src/stores/showcase/ShowcaseViewerStore.ts +1 -1
@@ -550,9 +550,9 @@ export const ServicePostValidationsEditor = observer(
550
550
  <ResizablePanel>
551
551
  <Panel className="service-test-editor">
552
552
  <PanelTabs
553
- tabTitles={Object.keys(POST_VALIDATION_TAB)}
553
+ tabs={Object.keys(POST_VALIDATION_TAB)}
554
554
  selectedTab={selectedTab}
555
- changeTheTab={(tab) => () =>
555
+ changeTab={(tab) => () =>
556
556
  setSelectedTab(
557
557
  POST_VALIDATION_TAB[
558
558
  tab as keyof typeof POST_VALIDATION_TAB
@@ -68,7 +68,7 @@ export const ServiceRegistrationEditor = observer(() => {
68
68
  }
69
69
  : null;
70
70
  const onServiceTypeSelectionChange = (
71
- val: { label: ServiceExecutionMode; value: ServiceExecutionMode } | null,
71
+ val: { label: string; value: ServiceExecutionMode } | null,
72
72
  ): void => {
73
73
  registrationState.updateType(val?.value);
74
74
  };
@@ -127,7 +127,7 @@ export const NewParameterModal = observer(
127
127
  !applicationStore.layoutService
128
128
  .TEMPORARY__isLightColorThemeEnabled
129
129
  }
130
- disable={isReadOnly}
130
+ disabled={isReadOnly}
131
131
  />
132
132
  <div className="search-modal__actions">
133
133
  <button className="btn btn--dark" disabled={isReadOnly}>
@@ -374,7 +374,7 @@ const ServiceTestSetupEditor = observer(
374
374
  !applicationStore.layoutService
375
375
  .TEMPORARY__isLightColorThemeEnabled
376
376
  }
377
- disable={isReadOnly}
377
+ disabled={isReadOnly}
378
378
  />
379
379
  </div>
380
380
  {setupState.testState.testable.execution instanceof
@@ -399,7 +399,7 @@ const ServiceTestSetupEditor = observer(
399
399
  .TEMPORARY__isLightColorThemeEnabled
400
400
  }
401
401
  isMulti={true}
402
- disable={isReadOnly}
402
+ disabled={isReadOnly}
403
403
  placeholder="Choose keys..."
404
404
  />
405
405
  </div>
@@ -148,13 +148,13 @@ const AssociationPropertyBasicEditor = observer(
148
148
  const filterOption = createFilter({
149
149
  ignoreCase: true,
150
150
  ignoreAccents: false,
151
- stringify: (option: PackageableElementOption<Class>): string =>
152
- option.value.path,
151
+ stringify: (option: { data: PackageableElementOption<Class> }): string =>
152
+ option.data.value.path,
153
153
  });
154
154
  const selectedPropertyType = {
155
155
  value: propertyType,
156
156
  label: propertyType.name,
157
- };
157
+ } as PackageableElementOption<Class>;
158
158
  const changePropertyType = (val: PackageableElementOption<Class>): void => {
159
159
  association_changePropertyType(
160
160
  association,
@@ -183,8 +183,8 @@ const PropertyBasicEditor = observer(
183
183
  const filterOption = createFilter({
184
184
  ignoreCase: true,
185
185
  ignoreAccents: false,
186
- stringify: (option: PackageableElementOption<Type>): string =>
187
- option.value.path,
186
+ stringify: (option: { data: PackageableElementOption<Type> }): string =>
187
+ option.data.value.path,
188
188
  });
189
189
  const selectedPropertyType = {
190
190
  value: propertyType,
@@ -530,8 +530,8 @@ const DerivedPropertyBasicEditor = observer(
530
530
  const filterOption = createFilter({
531
531
  ignoreCase: true,
532
532
  ignoreAccents: false,
533
- stringify: (option: PackageableElementOption<Type>): string =>
534
- option.value.path,
533
+ stringify: (option: { data: PackageableElementOption<Type> }): string =>
534
+ option.data.value.path,
535
535
  });
536
536
  const selectedPropertyType = {
537
537
  value: propertyType,
@@ -1103,10 +1103,13 @@ const SuperTypeEditor = observer(
1103
1103
  const filterOption = createFilter({
1104
1104
  ignoreCase: true,
1105
1105
  ignoreAccents: false,
1106
- stringify: (option: PackageableElementOption<Class>): string =>
1107
- option.value.path,
1106
+ stringify: (option: { data: PackageableElementOption<Class> }): string =>
1107
+ option.data.value.path,
1108
1108
  });
1109
- const selectedType = { value: rawType, label: rawType.name };
1109
+ const selectedType = {
1110
+ value: rawType,
1111
+ label: rawType.name,
1112
+ } as PackageableElementOption<Class>;
1110
1113
  const changeType = (val: PackageableElementOption<Class>): void =>
1111
1114
  setGenericTypeReferenceValue(superType, new GenericType(val.value));
1112
1115
  const visitDerivationSource = (): void =>
@@ -271,7 +271,7 @@ export const PropertyEditor = observer(
271
271
  }
272
272
  escapeClearsValue={true}
273
273
  isClearable={true}
274
- disable={isReadOnly}
274
+ disabled={isReadOnly}
275
275
  />
276
276
  </PanelFormSection>
277
277
  </PanelForm>
@@ -92,8 +92,9 @@ export const StereotypeSelector = observer(
92
92
  const filterOption = createFilter({
93
93
  ignoreCase: true,
94
94
  ignoreAccents: false,
95
- stringify: (option: PackageableElementOption<Profile>): string =>
96
- option.value.path,
95
+ stringify: (option: {
96
+ data: PackageableElementOption<Profile>;
97
+ }): string => option.data.value.path,
97
98
  });
98
99
  const [selectedProfile, setSelectedProfile] = useState<
99
100
  PackageableElementOption<Profile>
@@ -118,7 +119,8 @@ export const StereotypeSelector = observer(
118
119
  const stereotypeFilterOption = createFilter({
119
120
  ignoreCase: true,
120
121
  ignoreAccents: false,
121
- stringify: (option: StereotypeOption): string => option.label,
122
+ stringify: (option: { data: StereotypeOption }): string =>
123
+ option.data.label,
122
124
  });
123
125
  const selectedStereotype = {
124
126
  value: stereotype.value,
@@ -99,8 +99,9 @@ export const TaggedValueEditor = observer(
99
99
  const profileFilterOption = createFilter({
100
100
  ignoreCase: true,
101
101
  ignoreAccents: false,
102
- stringify: (option: PackageableElementOption<Profile>): string =>
103
- option.value.path,
102
+ stringify: (option: {
103
+ data: PackageableElementOption<Profile>;
104
+ }): string => option.data.value.path,
104
105
  });
105
106
  const [selectedProfile, setSelectedProfile] = useState<
106
107
  PackageableElementOption<Profile>
@@ -125,7 +126,7 @@ export const TaggedValueEditor = observer(
125
126
  const tagFilterOption = createFilter({
126
127
  ignoreCase: true,
127
128
  ignoreAccents: false,
128
- stringify: (option: TagOption): string => option.label,
129
+ stringify: (option: { data: TagOption }): string => option.data.label,
129
130
  });
130
131
  const selectedTag = {
131
132
  value: inferableTag.value,
@@ -574,8 +574,8 @@ export const SQLPlaygroundPanel = observer(() => {
574
574
  const connectionFilterOption = createFilter({
575
575
  ignoreCase: true,
576
576
  ignoreAccents: false,
577
- stringify: (option: RelationalDatabaseConnectionOption): string =>
578
- option.value.path,
577
+ stringify: (option: { data: RelationalDatabaseConnectionOption }): string =>
578
+ option.data.value.path,
579
579
  });
580
580
  const connectionOptions = editorStore.graphManagerState.usableConnections
581
581
  .filter(
@@ -691,7 +691,7 @@ export const SQLPlaygroundPanel = observer(() => {
691
691
  <PURE_ConnectionIcon />
692
692
  </div>
693
693
  <CustomSelectorInput
694
- ref={connectionSelectorRef}
694
+ inputRef={connectionSelectorRef}
695
695
  className="sql-playground__config__connection-selector__input"
696
696
  options={connectionOptions}
697
697
  onChange={changeConnection}
@@ -709,7 +709,7 @@ export const SQLPlaygroundPanel = observer(() => {
709
709
  <PURE_DatabaseIcon />
710
710
  </div>
711
711
  <CustomSelectorInput
712
- ref={connectionSelectorRef}
712
+ inputRef={connectionSelectorRef}
713
713
  className="sql-playground__config__database-selector__input"
714
714
  options={connectionOptions}
715
715
  onChange={changeConnection}
@@ -179,7 +179,9 @@ const NewRuntimeDriverEditor = observer(() => {
179
179
  const mapping = newRuntimeDriver.mapping;
180
180
  const mappingOptions =
181
181
  editorStore.graphManagerState.usableMappings.map(buildElementOption);
182
- const selectedMappingOption = { label: mapping?.path ?? '', value: mapping };
182
+ const selectedMappingOption = mapping
183
+ ? { label: mapping.path, value: mapping }
184
+ : null;
183
185
  const onMappingSelectionChange = (
184
186
  val: PackageableElementOption<Mapping>,
185
187
  ): void => {
@@ -312,7 +314,7 @@ const NewConnectionDriverEditor = observer(() => {
312
314
 
313
315
  // store
314
316
  const store = newConnectionDriver.store;
315
- let storeOptions: { label: string; value?: Store | undefined }[] = [
317
+ let storeOptions: { label: string; value: Store | undefined }[] = [
316
318
  { label: 'ModelStore', value: undefined },
317
319
  ];
318
320
  // TODO: we should think more about this and filter the store by the connection type
@@ -329,8 +331,14 @@ const NewConnectionDriverEditor = observer(() => {
329
331
  label: store.path,
330
332
  value: store,
331
333
  };
332
- const onStoreSelectionChange = (val: { label: string; value: Store }): void =>
333
- newConnectionDriver.setStore(val.value);
334
+ const onStoreSelectionChange = (val: {
335
+ label: string;
336
+ value: Store | undefined;
337
+ }): void => {
338
+ if (val.value) {
339
+ newConnectionDriver.setStore(val.value);
340
+ }
341
+ };
334
342
 
335
343
  return (
336
344
  <>
@@ -317,8 +317,8 @@ const SampleDataGenerator = observer(() => {
317
317
  const elementFilterOption = createFilter({
318
318
  ignoreCase: true,
319
319
  ignoreAccents: false,
320
- stringify: (option: PackageableElementOption<Class>): string =>
321
- option.value.path,
320
+ stringify: (option: { data: PackageableElementOption<Class> }): string =>
321
+ option.data.value.path,
322
322
  });
323
323
  const classOptions = editorStore.graphManagerState.usableClasses.map(
324
324
  (_class) => ({
@@ -381,7 +381,7 @@ const SampleDataGenerator = observer(() => {
381
381
  <PURE_ClassIcon />
382
382
  </div>
383
383
  <CustomSelectorInput
384
- ref={classSelectorRef}
384
+ inputRef={classSelectorRef}
385
385
  className="sample-data-generator__controller__class-selector"
386
386
  options={classOptions}
387
387
  onChange={changeClass}
@@ -753,7 +753,11 @@ const PatchEditor = observer(() => {
753
753
  label: p.patchReleaseVersionId.id,
754
754
  value: p,
755
755
  }))}
756
- onChange={onPatchOptionChange}
756
+ onChange={(val: PatchOption | null) => {
757
+ onPatchOptionChange(val).catch(
758
+ applicationStore.alertUnhandledError,
759
+ );
760
+ }}
757
761
  value={selectedPatchOption}
758
762
  placeholder={'Select patch you want to release'}
759
763
  isClearable={true}
@@ -311,7 +311,7 @@ const LazyStatusBar = observer((props: { actionsDisabled: boolean }) => {
311
311
  export const LazyTextEditor = withEditorStore(
312
312
  observer(() => {
313
313
  const params = useParams<WorkspaceEditorPathParams>();
314
- const projectId = params.projectId;
314
+ const projectId = guaranteeNonNullable(params.projectId);
315
315
  const patchReleaseVersionId = params.patchReleaseVersionId;
316
316
  const workspaceType = params.groupWorkspaceId
317
317
  ? WorkspaceType.GROUP
@@ -367,6 +367,7 @@ export const LazyTextEditor = withEditorStore(
367
367
  useEffect(() => {
368
368
  editorStore.internalizeEntityPath(params);
369
369
  }, [editorStore, params]);
370
+
370
371
  useEffect(() => {
371
372
  flowResult(
372
373
  editorStore.lazyTextEditorStore.init(
@@ -46,6 +46,7 @@ import {
46
46
  } from '../editor/EditorStoreProvider.js';
47
47
  import { useApplicationStore } from '@finos/legend-application';
48
48
  import { useParams } from '@finos/legend-application/browser';
49
+ import { guaranteeNonNullable } from '@finos/legend-shared';
49
50
 
50
51
  const ProjectReviewerStatusBar = observer(() => {
51
52
  const reviewStore = useProjectReviewerStore();
@@ -185,8 +186,8 @@ export const ProjectReviewer = withEditorStore(
185
186
  withProjectReviewerStore(
186
187
  observer(() => {
187
188
  const params = useParams<ProjectReviewerPathParams>();
188
- const projectId = params.projectId;
189
- const reviewId = params.reviewId;
189
+ const projectId = guaranteeNonNullable(params.projectId);
190
+ const reviewId = guaranteeNonNullable(params.reviewId);
190
191
  const reviewStore = useProjectReviewerStore();
191
192
  const editorStore = useEditorStore();
192
193
  const changeActivity =
@@ -31,7 +31,7 @@ import {
31
31
  LegendApplicationTelemetryHelper,
32
32
  APPLICATION_EVENT,
33
33
  } from '@finos/legend-application';
34
- import { matchPath } from '@finos/legend-application/browser';
34
+ import { matchRoutes } from '@finos/legend-application/browser';
35
35
  import {
36
36
  action,
37
37
  computed,
@@ -118,14 +118,19 @@ export class LegendStudioBaseStore {
118
118
 
119
119
  // authorize SDLC, unless navigation location match SDLC-bypassed patterns
120
120
  if (
121
- !matchPath(
122
- this.applicationStore.navigationService.navigator.getCurrentLocation(),
121
+ !matchRoutes(
123
122
  [
124
- LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV,
125
- LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV_ENTITY,
126
- LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.PREVIEW_BY_GAV_ENTITY,
127
- LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.SHOWCASE_PROJECT,
123
+ { path: LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV },
124
+ {
125
+ path: LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.VIEW_BY_GAV_ENTITY,
126
+ },
127
+ {
128
+ path: LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.PREVIEW_BY_GAV_ENTITY,
129
+ },
130
+ { path: LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.SHOWCASE },
131
+ { path: LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN.PCT_REPORT },
128
132
  ],
133
+ this.applicationStore.navigationService.navigator.getCurrentLocation(),
129
134
  )
130
135
  ) {
131
136
  // setup SDLC server client
@@ -538,7 +538,7 @@ export class EditorStore implements CommandRegistrar {
538
538
  this.explorerTreeState = new ExplorerTreeState(this);
539
539
  }
540
540
 
541
- internalizeEntityPath(params: WorkspaceEditorPathParams): void {
541
+ internalizeEntityPath(params: Partial<WorkspaceEditorPathParams>): void {
542
542
  const { projectId, entityPath } = params;
543
543
  const workspaceType = params.groupWorkspaceId
544
544
  ? WorkspaceType.GROUP
@@ -551,7 +551,7 @@ export class EditorStore implements CommandRegistrar {
551
551
  this.initialEntityPath = entityPath;
552
552
  this.applicationStore.navigationService.navigator.updateCurrentLocation(
553
553
  generateEditorRoute(
554
- projectId,
554
+ guaranteeNonNullable(projectId),
555
555
  params.patchReleaseVersionId,
556
556
  workspaceId,
557
557
  workspaceType,
@@ -82,7 +82,7 @@ export class ShowcaseViewerStore {
82
82
  return;
83
83
  }
84
84
 
85
- const showcasePath = params[0];
85
+ const showcasePath = params.showcasePath;
86
86
  this.editorStore.initState.inProgress();
87
87
  const onLeave = (hasBuildSucceeded: boolean): void => {
88
88
  this.editorStore.initState.complete(hasBuildSucceeded);