@finos/legend-application-studio 22.4.4 → 22.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendStudioApplicationPlugin.js +1 -0
- package/lib/components/Core_LegendStudioApplicationPlugin.js.map +1 -1
- package/lib/components/editor/edit-panel/RuntimeEditor.js +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +6 -4
- package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +6 -2
- package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +4 -4
- package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +1 -1
- package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js +3 -3
- package/lib/components/editor/edit-panel/mapping-editor/ClassMappingEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +2 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +2 -0
- package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js +7 -7
- package/lib/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +2 -0
- package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js +2 -0
- package/lib/components/editor/edit-panel/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js +2 -2
- package/lib/components/editor/side-bar/ProjectDependantsEditor.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +7 -7
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceReview.js +4 -4
- package/lib/components/editor/side-bar/WorkspaceReview.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/ChangeDetectionEvent.d.ts +11 -11
- package/lib/stores/ChangeDetectionEvent.d.ts.map +1 -1
- package/lib/stores/ChangeDetectionEvent.js +11 -11
- package/lib/stores/ChangeDetectionEvent.js.map +1 -1
- package/lib/stores/ChangeDetectionState.d.ts.map +1 -1
- package/lib/stores/ChangeDetectionState.js +12 -12
- package/lib/stores/ChangeDetectionState.js.map +1 -1
- package/lib/stores/EditorGraphState.d.ts +2 -2
- package/lib/stores/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/EditorGraphState.js +41 -18
- package/lib/stores/EditorGraphState.js.map +1 -1
- package/lib/stores/EditorSDLCState.js +3 -3
- package/lib/stores/EditorSDLCState.js.map +1 -1
- package/lib/stores/EditorStore.d.ts.map +1 -1
- package/lib/stores/EditorStore.js +4 -4
- package/lib/stores/EditorStore.js.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.d.ts +1 -0
- package/lib/stores/EmbeddedQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/EmbeddedQueryBuilderState.js.map +1 -1
- package/lib/stores/LegendStudioAppEvent.d.ts +8 -2
- package/lib/stores/LegendStudioAppEvent.d.ts.map +1 -1
- package/lib/stores/LegendStudioAppEvent.js +8 -2
- package/lib/stores/LegendStudioAppEvent.js.map +1 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts +7 -0
- package/lib/stores/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/stores/LegendStudioApplicationNavigationContext.js +7 -0
- package/lib/stores/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/stores/LegendStudioBaseStore.js +2 -2
- package/lib/stores/LegendStudioBaseStore.js.map +1 -1
- package/lib/stores/LegendStudioEventService.js +1 -1
- package/lib/stores/LegendStudioEventService.js.map +1 -1
- package/lib/stores/LegendStudioTelemetry.d.ts +33 -0
- package/lib/stores/LegendStudioTelemetry.d.ts.map +1 -0
- package/lib/stores/LegendStudioTelemetry.js +37 -0
- package/lib/stores/LegendStudioTelemetry.js.map +1 -0
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js +38 -6
- package/lib/stores/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js +27 -5
- package/lib/stores/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js +38 -6
- package/lib/stores/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +16 -6
- package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts +2 -2
- package/lib/stores/project-viewer/ProjectViewerStore.d.ts.map +1 -1
- package/lib/stores/project-viewer/ProjectViewerStore.js +21 -18
- package/lib/stores/project-viewer/ProjectViewerStore.js.map +1 -1
- package/lib/stores/shared/testable/TestableUtils.d.ts +2 -2
- package/lib/stores/shared/testable/TestableUtils.d.ts.map +1 -1
- package/lib/stores/shared/testable/TestableUtils.js +3 -3
- package/lib/stores/shared/testable/TestableUtils.js.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/LocalChangesState.js +6 -6
- package/lib/stores/sidebar-state/LocalChangesState.js.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/ProjectOverviewState.js +3 -3
- package/lib/stores/sidebar-state/ProjectOverviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js +1 -1
- package/lib/stores/sidebar-state/WorkspaceReviewState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js +1 -1
- package/lib/stores/sidebar-state/WorkspaceSyncState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js +4 -4
- package/lib/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.js.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.d.ts.map +1 -1
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js +2 -2
- package/lib/stores/sidebar-state/WorkspaceUpdaterState.js.map +1 -1
- package/lib/stores/workspace-review/WorkspaceReviewStore.js +2 -2
- package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +1 -1
- package/package.json +12 -12
- package/src/components/Core_LegendStudioApplicationPlugin.tsx +1 -0
- package/src/components/editor/edit-panel/RuntimeEditor.tsx +1 -1
- package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +13 -6
- package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +64 -17
- package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +1 -1
- package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +1 -1
- package/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +5 -4
- package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +3 -0
- package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +3 -0
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +1 -2
- package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx +33 -36
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +1 -2
- package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +3 -0
- package/src/components/editor/edit-panel/uml-editor/ClassQueryBuilder.tsx +3 -0
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +3 -2
- package/src/components/editor/side-bar/ProjectDependantsEditor.tsx +23 -26
- package/src/components/editor/side-bar/WorkflowManager.tsx +4 -6
- package/src/components/editor/side-bar/WorkspaceReview.tsx +2 -3
- package/src/stores/ChangeDetectionEvent.ts +11 -11
- package/src/stores/ChangeDetectionState.ts +14 -12
- package/src/stores/EditorGraphState.ts +108 -45
- package/src/stores/EditorSDLCState.ts +3 -3
- package/src/stores/EditorStore.ts +6 -4
- package/src/stores/EmbeddedQueryBuilderState.ts +1 -0
- package/src/stores/LegendStudioAppEvent.ts +10 -2
- package/src/stores/LegendStudioApplicationNavigationContext.ts +9 -0
- package/src/stores/LegendStudioBaseStore.ts +2 -2
- package/src/stores/LegendStudioEventService.ts +1 -1
- package/src/stores/LegendStudioTelemetry.ts +83 -0
- package/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +76 -1
- package/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +50 -1
- package/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +75 -2
- package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +27 -5
- package/src/stores/project-viewer/ProjectViewerStore.ts +47 -41
- package/src/stores/shared/testable/TestableUtils.ts +3 -3
- package/src/stores/sidebar-state/LocalChangesState.ts +10 -6
- package/src/stores/sidebar-state/ProjectOverviewState.ts +3 -4
- package/src/stores/sidebar-state/WorkspaceReviewState.ts +3 -1
- package/src/stores/sidebar-state/WorkspaceSyncState.ts +1 -1
- package/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +8 -4
- package/src/stores/sidebar-state/WorkspaceUpdaterState.ts +4 -2
- package/src/stores/workspace-review/WorkspaceReviewStore.ts +2 -2
- package/tsconfig.json +1 -0
|
@@ -67,7 +67,7 @@ const RelationalTableIdentifierModal = observer(
|
|
|
67
67
|
<div className="modal__title">
|
|
68
68
|
{editableTable
|
|
69
69
|
? 'Rename Relational Data Table'
|
|
70
|
-
: 'Add Relational Data Table'}
|
|
70
|
+
: 'Add Relational Data Table'}
|
|
71
71
|
</div>
|
|
72
72
|
<div className="relational-data-editor__identifier">
|
|
73
73
|
<div className="relational-data-editor__identifier__values">
|
|
@@ -397,7 +397,7 @@ export const ModelUnitEditor = observer(
|
|
|
397
397
|
</div>
|
|
398
398
|
<div className="panel__content__form__section__header__prompt">
|
|
399
399
|
Specifies the list of models excluded
|
|
400
|
-
</div>
|
|
400
|
+
</div>
|
|
401
401
|
<ModelUnitPackageElementEditor
|
|
402
402
|
elements={modelUnit.packageableElementExcludes}
|
|
403
403
|
addElement={addExclusion}
|
|
@@ -195,10 +195,11 @@ export const ClassMappingEditor = observer(
|
|
|
195
195
|
)}
|
|
196
196
|
>
|
|
197
197
|
<div className="mapping-element-editor__metadata__sub-chunk">
|
|
198
|
-
with{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
{`with ${
|
|
199
|
+
sourceName
|
|
200
|
+
? `source ${sourceType.toLowerCase()}`
|
|
201
|
+
: `no source`
|
|
202
|
+
}`}
|
|
202
203
|
</div>
|
|
203
204
|
{sourceName && (
|
|
204
205
|
<div className="mapping-element-editor__metadata__sub-chunk mapping-element-editor__metadata__source">
|
|
@@ -90,6 +90,7 @@ import {
|
|
|
90
90
|
} from '../../../../stores/shared/modifier/STO_Relational_GraphModifierHelper.js';
|
|
91
91
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
92
92
|
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
|
93
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
93
94
|
|
|
94
95
|
interface ClassMappingSelectOption {
|
|
95
96
|
label: string;
|
|
@@ -243,6 +244,8 @@ const MappingExecutionQueryEditor = observer(
|
|
|
243
244
|
disableCompile: isStubbed_RawLambda(
|
|
244
245
|
executionState.queryState.query,
|
|
245
246
|
),
|
|
247
|
+
applicationContext:
|
|
248
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MAPPING_EXECUTION_EDITOR,
|
|
246
249
|
}),
|
|
247
250
|
);
|
|
248
251
|
},
|
|
@@ -96,6 +96,7 @@ import {
|
|
|
96
96
|
QueryBuilderTextEditorMode,
|
|
97
97
|
} from '@finos/legend-query-builder';
|
|
98
98
|
import { MappingExecutionQueryBuilderState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionQueryBuilderState.js';
|
|
99
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
99
100
|
|
|
100
101
|
const MappingTestQueryEditor = observer(
|
|
101
102
|
(props: { testState: MappingTestState; isReadOnly: boolean }) => {
|
|
@@ -165,6 +166,8 @@ const MappingTestQueryEditor = observer(
|
|
|
165
166
|
},
|
|
166
167
|
],
|
|
167
168
|
disableCompile: isStubbed_RawLambda(testState.queryState.query),
|
|
169
|
+
applicationContext:
|
|
170
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MAPPING_TEST_EDITOR,
|
|
168
171
|
}),
|
|
169
172
|
);
|
|
170
173
|
});
|
package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx
CHANGED
|
@@ -87,8 +87,7 @@ const ProjectStructureEditor = observer(
|
|
|
87
87
|
)}
|
|
88
88
|
</div>
|
|
89
89
|
<div className="project-configuration-editor__project__structure__version__label__text">
|
|
90
|
-
PROJECT STRUCTURE VERSION{
|
|
91
|
-
{` ${projectConfig.projectStructureVersion.fullVersion}`}
|
|
90
|
+
{`PROJECT STRUCTURE VERSION ${projectConfig.projectStructureVersion.fullVersion}`}
|
|
92
91
|
</div>
|
|
93
92
|
</div>
|
|
94
93
|
{isVersionOutdated && (
|
package/src/components/editor/edit-panel/project-configuration-editor/ProjectDependencyEditor.tsx
CHANGED
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
clsx,
|
|
24
24
|
CustomSelectorInput,
|
|
25
25
|
TimesIcon,
|
|
26
|
-
ExternalLinkSquareIcon,
|
|
27
26
|
Dialog,
|
|
28
27
|
DropdownMenu,
|
|
29
28
|
CaretDownIcon,
|
|
@@ -889,41 +888,39 @@ const ProjectVersionDependencyEditor = observer(
|
|
|
889
888
|
}
|
|
890
889
|
darkMode={true}
|
|
891
890
|
/>
|
|
892
|
-
<
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
</DropdownMenu>
|
|
926
|
-
</div>
|
|
891
|
+
<DropdownMenu
|
|
892
|
+
className="project-dependency-editor__visit-project-btn__dropdown-trigger btn--medium"
|
|
893
|
+
content={
|
|
894
|
+
<MenuContent>
|
|
895
|
+
<MenuContentItem
|
|
896
|
+
disabled={
|
|
897
|
+
projectDependency.isLegacyDependency ||
|
|
898
|
+
!selectedProject ||
|
|
899
|
+
!selectedVersionOption
|
|
900
|
+
}
|
|
901
|
+
onClick={viewProject}
|
|
902
|
+
title="View project"
|
|
903
|
+
>
|
|
904
|
+
Project
|
|
905
|
+
</MenuContentItem>
|
|
906
|
+
<MenuContentItem
|
|
907
|
+
title="View SDLC project"
|
|
908
|
+
disabled={
|
|
909
|
+
projectDependency.isLegacyDependency ||
|
|
910
|
+
!selectedProject ||
|
|
911
|
+
!selectedVersionOption ||
|
|
912
|
+
!projectDependencyData
|
|
913
|
+
}
|
|
914
|
+
onClick={viewSDLCProject}
|
|
915
|
+
>
|
|
916
|
+
SDLC project
|
|
917
|
+
</MenuContentItem>
|
|
918
|
+
</MenuContent>
|
|
919
|
+
}
|
|
920
|
+
>
|
|
921
|
+
Go to... <CaretDownIcon title="Show more options..." />
|
|
922
|
+
</DropdownMenu>
|
|
923
|
+
|
|
927
924
|
<button
|
|
928
925
|
className="project-dependency-editor__remove-btn btn--dark btn--caution"
|
|
929
926
|
disabled={isReadOnly}
|
|
@@ -413,8 +413,7 @@ export const ChangeExecutionModal = observer(
|
|
|
413
413
|
className="modal modal--dark search-modal"
|
|
414
414
|
>
|
|
415
415
|
<div className="modal__title">
|
|
416
|
-
Change to {
|
|
417
|
-
execution
|
|
416
|
+
{`Change to ${isChangingToMulti ? 'multi' : 'single'} execution`}
|
|
418
417
|
</div>
|
|
419
418
|
<div className="service-execution-editor__change__modal">
|
|
420
419
|
{renderChangeExecution()}
|
|
@@ -71,6 +71,7 @@ import { useLegendStudioApplicationStore } from '../../../LegendStudioBaseStoreP
|
|
|
71
71
|
import { WorkspaceType } from '@finos/legend-server-sdlc';
|
|
72
72
|
import { SNAPSHOT_VERSION_ALIAS } from '@finos/legend-server-depot';
|
|
73
73
|
import type { ProjectGAVCoordinates } from '@finos/legend-storage';
|
|
74
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
74
75
|
|
|
75
76
|
const ServiceExecutionResultViewer = observer(
|
|
76
77
|
(props: { executionState: ServicePureExecutionState }) => {
|
|
@@ -340,6 +341,8 @@ export const ServiceExecutionQueryEditor = observer(
|
|
|
340
341
|
disableCompile: isStubbed_RawLambda(
|
|
341
342
|
executionState.queryState.query,
|
|
342
343
|
),
|
|
344
|
+
applicationContext:
|
|
345
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.MAPPING_TEST_EDITOR,
|
|
343
346
|
}),
|
|
344
347
|
);
|
|
345
348
|
executionState.setOpeningQueryEditor(false);
|
|
@@ -30,6 +30,7 @@ import { observer } from 'mobx-react-lite';
|
|
|
30
30
|
import { useState } from 'react';
|
|
31
31
|
import type { EditorStore } from '../../../../stores/EditorStore.js';
|
|
32
32
|
import type { EmbeddedQueryBuilderState } from '../../../../stores/EmbeddedQueryBuilderState.js';
|
|
33
|
+
import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY } from '../../../../stores/LegendStudioApplicationNavigationContext.js';
|
|
33
34
|
import {
|
|
34
35
|
service_initNewService,
|
|
35
36
|
service_setExecution,
|
|
@@ -154,6 +155,8 @@ export const queryClass = async (
|
|
|
154
155
|
),
|
|
155
156
|
},
|
|
156
157
|
],
|
|
158
|
+
applicationContext:
|
|
159
|
+
LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY.EDITOR,
|
|
157
160
|
}),
|
|
158
161
|
);
|
|
159
162
|
};
|
|
@@ -504,8 +504,9 @@ export const CreateNewElementModal = observer(() => {
|
|
|
504
504
|
className="modal modal--dark search-modal"
|
|
505
505
|
>
|
|
506
506
|
<div className="modal__title">
|
|
507
|
-
Create a New{
|
|
508
|
-
|
|
507
|
+
{`Create a New ${
|
|
508
|
+
getElementTypeLabel(editorStore, newElementState.type) ?? 'element'
|
|
509
|
+
}`}
|
|
509
510
|
</div>
|
|
510
511
|
<div>
|
|
511
512
|
{newElementState.showType && (
|
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
PanelListItem,
|
|
24
24
|
Badge,
|
|
25
|
-
ExternalLinkSquareIcon,
|
|
26
25
|
DropdownMenu,
|
|
27
26
|
MenuContent,
|
|
28
27
|
MenuContentItem,
|
|
@@ -113,32 +112,30 @@ const ProjectDependantEditor = observer(
|
|
|
113
112
|
</div>
|
|
114
113
|
</div>
|
|
115
114
|
</div>
|
|
115
|
+
<DropdownMenu
|
|
116
|
+
className="project-dependency-editor__visit-project-btn__dropdown-trigger btn--medium"
|
|
117
|
+
content={
|
|
118
|
+
<MenuContent>
|
|
119
|
+
<MenuContentItem
|
|
120
|
+
onClick={() => viewProject(dependant)}
|
|
121
|
+
title="View project"
|
|
122
|
+
>
|
|
123
|
+
Project
|
|
124
|
+
</MenuContentItem>
|
|
116
125
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<MenuContentItem
|
|
131
|
-
disabled={!dependant.projectId || !dependant.versionId}
|
|
132
|
-
onClick={() => viewSDLCProject(dependant)}
|
|
133
|
-
>
|
|
134
|
-
View SDLC project
|
|
135
|
-
</MenuContentItem>
|
|
136
|
-
</MenuContent>
|
|
137
|
-
}
|
|
138
|
-
>
|
|
139
|
-
<CaretDownIcon title="Show more options..." />
|
|
140
|
-
</DropdownMenu>
|
|
141
|
-
</div>
|
|
126
|
+
<MenuContentItem
|
|
127
|
+
title="View SDLC project"
|
|
128
|
+
disabled={!dependant.projectId || !dependant.versionId}
|
|
129
|
+
onClick={() => viewSDLCProject(dependant)}
|
|
130
|
+
>
|
|
131
|
+
SDLC project
|
|
132
|
+
</MenuContentItem>
|
|
133
|
+
</MenuContent>
|
|
134
|
+
}
|
|
135
|
+
>
|
|
136
|
+
Go to...
|
|
137
|
+
<CaretDownIcon title="Show more options..." />
|
|
138
|
+
</DropdownMenu>
|
|
142
139
|
</PanelListItem>
|
|
143
140
|
</div>
|
|
144
141
|
);
|
|
@@ -383,11 +383,10 @@ const WorkflowTreeNodeContainer: React.FC<
|
|
|
383
383
|
#{node.label}
|
|
384
384
|
</span>
|
|
385
385
|
<span className="workflow-manager__item__link__content__created-at">
|
|
386
|
-
created{
|
|
387
|
-
{formatDistanceToNow(node.workflow.createdAt, {
|
|
386
|
+
{`created ${formatDistanceToNow(node.workflow.createdAt, {
|
|
388
387
|
includeSeconds: true,
|
|
389
388
|
addSuffix: true,
|
|
390
|
-
})}
|
|
389
|
+
})}`}
|
|
391
390
|
</span>
|
|
392
391
|
</div>
|
|
393
392
|
</a>
|
|
@@ -405,11 +404,10 @@ const WorkflowTreeNodeContainer: React.FC<
|
|
|
405
404
|
{node.workflowJob.name}
|
|
406
405
|
</span>
|
|
407
406
|
<span className="workflow-manager__item__link__content__created-at">
|
|
408
|
-
created{
|
|
409
|
-
{formatDistanceToNow(node.workflowJob.createdAt, {
|
|
407
|
+
{`created ${formatDistanceToNow(node.workflowJob.createdAt, {
|
|
410
408
|
includeSeconds: true,
|
|
411
409
|
addSuffix: true,
|
|
412
|
-
})}
|
|
410
|
+
})}`}
|
|
413
411
|
</span>
|
|
414
412
|
</div>
|
|
415
413
|
</a>
|
|
@@ -299,11 +299,10 @@ export const WorkspaceReview = observer(() => {
|
|
|
299
299
|
</button>
|
|
300
300
|
</div>
|
|
301
301
|
<div className="workspace-review__title__content__review-status">
|
|
302
|
-
created{
|
|
303
|
-
{formatDistanceToNow(workspaceReview.createdAt, {
|
|
302
|
+
{`created ${formatDistanceToNow(workspaceReview.createdAt, {
|
|
304
303
|
includeSeconds: true,
|
|
305
304
|
addSuffix: true,
|
|
306
|
-
})}
|
|
305
|
+
})}`}
|
|
307
306
|
</div>
|
|
308
307
|
</>
|
|
309
308
|
)}
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
|
|
17
17
|
export enum CHANGE_DETECTION_EVENT {
|
|
18
18
|
// TODO: split this into specific events
|
|
19
|
-
|
|
19
|
+
CHANGE_DETECTION__FAILURE = 'change-detection.failure',
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
CHANGE_DETECTION_RESTART__SUCCESS = 'change-detection.restart.success',
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
CHANGE_DETECTION_COMPUTE_CHANGES__SUCCESS = 'change-detection.computation.changes.success',
|
|
24
|
+
CHANGE_DETECTION_COMPUTE_CONFLICT_RESOLUTION_CONFLICTS__SUCCESS = 'change-detection.computation.conflicts.success',
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
CHANGE_DETECTION_BUILD_GRAPH_HASHES_INDEX__SUCCESS = 'change-detection.hash-indexing.graph.success',
|
|
27
|
+
CHANGE_DETECTION_BUILD_LOCAL_HASHES_INDEX__SUCCESS = 'change-detection.hash-indexing.local.success',
|
|
28
|
+
CHANGE_DETECTION_BUILD_WORKSPACE_HASHES_INDEX__SUCCESS = 'change-detection.hash-indexing.workspace.success',
|
|
29
|
+
CHANGE_DETECTION_BUILD_PROJECT_LATEST_HASHES_INDEX__SUCCESS = 'change-detection.hash-indexing.project-latest.success',
|
|
30
|
+
CHANGE_DETECTION_COMPUTE_WORKSPACE_UPDATE_CONFLICTS__SUCCESS = 'change-detection.hash-indexing.workspace-update.success',
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
CHANGE_DETECTION_PRECOMPUTE_GRAPH_HASHES__SUCCESS = 'change-detection.graph.pre-hash.success',
|
|
33
|
+
CHANGE_DETECTION_OBSERVE_GRAPH__SUCCESS = 'change-detection.graph.observation.success',
|
|
34
34
|
}
|
|
@@ -138,7 +138,7 @@ class RevisionChangeDetectionState {
|
|
|
138
138
|
if (!quiet) {
|
|
139
139
|
this.editorStore.applicationStore.log.info(
|
|
140
140
|
LogEvent.create(
|
|
141
|
-
CHANGE_DETECTION_EVENT.
|
|
141
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_CHANGES__SUCCESS,
|
|
142
142
|
),
|
|
143
143
|
Date.now() - startTime,
|
|
144
144
|
'ms',
|
|
@@ -227,7 +227,7 @@ class RevisionChangeDetectionState {
|
|
|
227
227
|
if (!quiet) {
|
|
228
228
|
this.editorStore.applicationStore.log.info(
|
|
229
229
|
LogEvent.create(
|
|
230
|
-
CHANGE_DETECTION_EVENT.
|
|
230
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_CHANGES__SUCCESS,
|
|
231
231
|
),
|
|
232
232
|
Date.now() - startTime,
|
|
233
233
|
'ms',
|
|
@@ -263,7 +263,7 @@ class RevisionChangeDetectionState {
|
|
|
263
263
|
} catch (error) {
|
|
264
264
|
assertErrorThrown(error);
|
|
265
265
|
this.editorStore.applicationStore.log.error(
|
|
266
|
-
LogEvent.create(CHANGE_DETECTION_EVENT.
|
|
266
|
+
LogEvent.create(CHANGE_DETECTION_EVENT.CHANGE_DETECTION__FAILURE),
|
|
267
267
|
`Can't build hashes index`,
|
|
268
268
|
);
|
|
269
269
|
this.setEntityHashesIndex(new Map<string, string>());
|
|
@@ -548,7 +548,7 @@ export class ChangeDetectionState {
|
|
|
548
548
|
if (!quiet) {
|
|
549
549
|
this.editorStore.applicationStore.log.info(
|
|
550
550
|
LogEvent.create(
|
|
551
|
-
CHANGE_DETECTION_EVENT.
|
|
551
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_BUILD_GRAPH_HASHES_INDEX__SUCCESS,
|
|
552
552
|
),
|
|
553
553
|
Date.now() - startTime,
|
|
554
554
|
'ms',
|
|
@@ -606,7 +606,7 @@ export class ChangeDetectionState {
|
|
|
606
606
|
if (!quiet) {
|
|
607
607
|
this.editorStore.applicationStore.log.info(
|
|
608
608
|
LogEvent.create(
|
|
609
|
-
CHANGE_DETECTION_EVENT.
|
|
609
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_CHANGES__SUCCESS,
|
|
610
610
|
),
|
|
611
611
|
Date.now() - startTime,
|
|
612
612
|
'ms',
|
|
@@ -686,7 +686,7 @@ export class ChangeDetectionState {
|
|
|
686
686
|
if (!quiet) {
|
|
687
687
|
this.editorStore.applicationStore.log.info(
|
|
688
688
|
LogEvent.create(
|
|
689
|
-
CHANGE_DETECTION_EVENT.
|
|
689
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_WORKSPACE_UPDATE_CONFLICTS__SUCCESS,
|
|
690
690
|
),
|
|
691
691
|
Date.now() - startTime,
|
|
692
692
|
'ms',
|
|
@@ -718,7 +718,7 @@ export class ChangeDetectionState {
|
|
|
718
718
|
if (!quiet) {
|
|
719
719
|
this.editorStore.applicationStore.log.info(
|
|
720
720
|
LogEvent.create(
|
|
721
|
-
CHANGE_DETECTION_EVENT.
|
|
721
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_CONFLICT_RESOLUTION_CONFLICTS__SUCCESS,
|
|
722
722
|
),
|
|
723
723
|
Date.now() - startTime,
|
|
724
724
|
'ms',
|
|
@@ -847,7 +847,7 @@ export class ChangeDetectionState {
|
|
|
847
847
|
if (!quiet) {
|
|
848
848
|
this.editorStore.applicationStore.log.info(
|
|
849
849
|
LogEvent.create(
|
|
850
|
-
CHANGE_DETECTION_EVENT.
|
|
850
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_CHANGES__SUCCESS,
|
|
851
851
|
),
|
|
852
852
|
Date.now() - startTime,
|
|
853
853
|
'ms',
|
|
@@ -869,7 +869,7 @@ export class ChangeDetectionState {
|
|
|
869
869
|
if (!quiet) {
|
|
870
870
|
this.editorStore.applicationStore.log.info(
|
|
871
871
|
LogEvent.create(
|
|
872
|
-
CHANGE_DETECTION_EVENT.
|
|
872
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_COMPUTE_CHANGES__SUCCESS,
|
|
873
873
|
),
|
|
874
874
|
Date.now() - startTime,
|
|
875
875
|
'ms',
|
|
@@ -884,7 +884,7 @@ export class ChangeDetectionState {
|
|
|
884
884
|
`Can't observe graph: change detection must be stopped first`,
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
|
-
if (this.editorStore.graphManagerState.graph.
|
|
887
|
+
if (this.editorStore.graphManagerState.graph.origin) {
|
|
888
888
|
throw new IllegalStateError(
|
|
889
889
|
`Can't observe graph: can't change graph with sdlc pointer`,
|
|
890
890
|
);
|
|
@@ -901,7 +901,9 @@ export class ChangeDetectionState {
|
|
|
901
901
|
this.editorStore.changeDetectionState.observerContext,
|
|
902
902
|
);
|
|
903
903
|
this.editorStore.applicationStore.log.info(
|
|
904
|
-
LogEvent.create(
|
|
904
|
+
LogEvent.create(
|
|
905
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_OBSERVE_GRAPH__SUCCESS,
|
|
906
|
+
),
|
|
905
907
|
'[ASYNC]',
|
|
906
908
|
Date.now() - startTime,
|
|
907
909
|
'ms',
|
|
@@ -942,7 +944,7 @@ export class ChangeDetectionState {
|
|
|
942
944
|
this.graphElementHashCodeKeepAliveComputationDisposers = disposers;
|
|
943
945
|
this.editorStore.applicationStore.log.info(
|
|
944
946
|
LogEvent.create(
|
|
945
|
-
CHANGE_DETECTION_EVENT.
|
|
947
|
+
CHANGE_DETECTION_EVENT.CHANGE_DETECTION_PRECOMPUTE_GRAPH_HASHES__SUCCESS,
|
|
946
948
|
),
|
|
947
949
|
'[ASYNC]',
|
|
948
950
|
Date.now() - startTime,
|