@finos/legend-application-studio 28.13.13 → 28.13.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/lib/__lib__/LegendStudioEvent.d.ts +3 -0
  2. package/lib/__lib__/LegendStudioEvent.d.ts.map +1 -1
  3. package/lib/__lib__/LegendStudioEvent.js +4 -2
  4. package/lib/__lib__/LegendStudioEvent.js.map +1 -1
  5. package/lib/__lib__/LegendStudioNavigation.d.ts +7 -0
  6. package/lib/__lib__/LegendStudioNavigation.d.ts.map +1 -1
  7. package/lib/__lib__/LegendStudioNavigation.js +2 -0
  8. package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
  9. package/lib/__lib__/LegendStudioTelemetryHelper.d.ts +10 -0
  10. package/lib/__lib__/LegendStudioTelemetryHelper.d.ts.map +1 -1
  11. package/lib/__lib__/LegendStudioTelemetryHelper.js +10 -0
  12. package/lib/__lib__/LegendStudioTelemetryHelper.js.map +1 -1
  13. package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
  14. package/lib/components/LegendStudioWebApplication.js +7 -1
  15. package/lib/components/LegendStudioWebApplication.js.map +1 -1
  16. package/lib/components/editor/ActivityBar.d.ts.map +1 -1
  17. package/lib/components/editor/ActivityBar.js +23 -14
  18. package/lib/components/editor/ActivityBar.js.map +1 -1
  19. package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
  20. package/lib/components/editor/editor-group/GrammarTextEditor.js +11 -6
  21. package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
  22. package/lib/components/lazy-text-editor/LazyTextEditor.d.ts +18 -0
  23. package/lib/components/lazy-text-editor/LazyTextEditor.d.ts.map +1 -0
  24. package/lib/components/lazy-text-editor/LazyTextEditor.js +170 -0
  25. package/lib/components/lazy-text-editor/LazyTextEditor.js.map +1 -0
  26. package/lib/components/workspace-setup/WorkspaceSetup.js +13 -13
  27. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  28. package/lib/index.css +2 -2
  29. package/lib/index.css.map +1 -1
  30. package/lib/package.json +1 -1
  31. package/lib/stores/ShowcaseManagerState.d.ts +3 -1
  32. package/lib/stores/ShowcaseManagerState.d.ts.map +1 -1
  33. package/lib/stores/ShowcaseManagerState.js +29 -8
  34. package/lib/stores/ShowcaseManagerState.js.map +1 -1
  35. package/lib/stores/editor/EditorConfig.d.ts +2 -1
  36. package/lib/stores/editor/EditorConfig.d.ts.map +1 -1
  37. package/lib/stores/editor/EditorConfig.js +1 -0
  38. package/lib/stores/editor/EditorConfig.js.map +1 -1
  39. package/lib/stores/editor/EditorGraphState.d.ts +1 -0
  40. package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
  41. package/lib/stores/editor/EditorGraphState.js +17 -0
  42. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  43. package/lib/stores/editor/EditorStore.d.ts +4 -0
  44. package/lib/stores/editor/EditorStore.d.ts.map +1 -1
  45. package/lib/stores/editor/EditorStore.js +69 -6
  46. package/lib/stores/editor/EditorStore.js.map +1 -1
  47. package/lib/stores/editor/GraphEditGrammarModeState.d.ts +6 -1
  48. package/lib/stores/editor/GraphEditGrammarModeState.d.ts.map +1 -1
  49. package/lib/stores/editor/GraphEditGrammarModeState.js +6 -1
  50. package/lib/stores/editor/GraphEditGrammarModeState.js.map +1 -1
  51. package/lib/stores/editor/GraphEditorMode.d.ts +6 -1
  52. package/lib/stores/editor/GraphEditorMode.d.ts.map +1 -1
  53. package/lib/stores/editor/GraphEditorMode.js +3 -0
  54. package/lib/stores/editor/GraphEditorMode.js.map +1 -1
  55. package/lib/stores/lazy-text-editor/LazyTextEditorStore.d.ts +30 -0
  56. package/lib/stores/lazy-text-editor/LazyTextEditorStore.d.ts.map +1 -0
  57. package/lib/stores/lazy-text-editor/LazyTextEditorStore.js +66 -0
  58. package/lib/stores/lazy-text-editor/LazyTextEditorStore.js.map +1 -0
  59. package/lib/stores/showcase/ShowcaseViewerStore.d.ts.map +1 -1
  60. package/lib/stores/showcase/ShowcaseViewerStore.js +3 -0
  61. package/lib/stores/showcase/ShowcaseViewerStore.js.map +1 -1
  62. package/package.json +6 -6
  63. package/src/__lib__/LegendStudioEvent.ts +4 -2
  64. package/src/__lib__/LegendStudioNavigation.ts +8 -0
  65. package/src/__lib__/LegendStudioTelemetryHelper.ts +32 -0
  66. package/src/components/LegendStudioWebApplication.tsx +13 -1
  67. package/src/components/editor/ActivityBar.tsx +118 -111
  68. package/src/components/editor/editor-group/GrammarTextEditor.tsx +14 -7
  69. package/src/components/lazy-text-editor/LazyTextEditor.tsx +458 -0
  70. package/src/components/workspace-setup/WorkspaceSetup.tsx +21 -21
  71. package/src/stores/ShowcaseManagerState.ts +41 -11
  72. package/src/stores/editor/EditorConfig.ts +1 -0
  73. package/src/stores/editor/EditorGraphState.ts +25 -0
  74. package/src/stores/editor/EditorStore.ts +123 -8
  75. package/src/stores/editor/GraphEditGrammarModeState.ts +14 -2
  76. package/src/stores/editor/GraphEditorMode.ts +9 -1
  77. package/src/stores/lazy-text-editor/LazyTextEditorStore.ts +99 -0
  78. package/src/stores/showcase/ShowcaseViewerStore.ts +6 -0
  79. package/tsconfig.json +2 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyTextEditorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/lazy-text-editor/LazyTextEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,qBAAa,mBAAmB;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;gBAEtB,WAAW,EAAE,WAAW;IAOnC,IAAI,CACH,SAAS,EAAE,MAAM,EACjB,qBAAqB,EAAE,MAAM,GAAG,SAAS,EACzC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,aAAa,GAC3B,WAAW,CAAC,IAAI,CAAC;CAWrB;AAED,qBAAa,6BAA8B,SAAQ,yBAAyB;IAC1E,IAAa,gBAAgB,IAAI,OAAO,CAEvC;IAED,IAAa,WAAW,IAAI,MAAM,CAEjC;IAES,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC;CAiCvC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { flow, flowResult, makeObservable } from 'mobx';
17
+ import { EDITOR_MODE } from '../editor/EditorConfig.js';
18
+ import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
19
+ import { generateEditorRoute } from '../../__lib__/LegendStudioNavigation.js';
20
+ import { GraphEditGrammarModeState } from '../editor/GraphEditGrammarModeState.js';
21
+ export class LazyTextEditorStore {
22
+ editorStore;
23
+ constructor(editorStore) {
24
+ this.editorStore = editorStore;
25
+ makeObservable(this, {
26
+ init: flow,
27
+ });
28
+ }
29
+ *init(projectId, patchReleaseVersionId, workspaceId, workspaceType) {
30
+ this.editorStore.setMode(EDITOR_MODE.LAZY_TEXT_EDITOR);
31
+ yield flowResult(this.editorStore.initialize(projectId, patchReleaseVersionId, workspaceId, workspaceType));
32
+ }
33
+ }
34
+ export class GraphEditLazyGrammarModeState extends GraphEditGrammarModeState {
35
+ get disableLeaveMode() {
36
+ return true;
37
+ }
38
+ get headerLabel() {
39
+ return 'Strict Text Mode (BETA)';
40
+ }
41
+ *onLeave() {
42
+ this.editorStore.applicationStore.alertService.setBlockingAlert(undefined);
43
+ this.editorStore.applicationStore.alertService.setActionAlertInfo({
44
+ message: `Form Mode Not Supported in Text Studio`,
45
+ prompt: `Text Studio only provides a light weight editor for editing studio projects to improve performance. If you want to do more actions, please open full edit mode`,
46
+ type: ActionAlertType.CAUTION,
47
+ actions: [
48
+ {
49
+ label: 'Open Studio Full Edit Mode',
50
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
51
+ default: true,
52
+ handler: () => {
53
+ this.editorStore.applicationStore.navigationService.navigator.visitAddress(this.editorStore.applicationStore.navigationService.navigator.generateAddress(generateEditorRoute(this.editorStore.sdlcState.activeProject.projectId, this.editorStore.sdlcState.activePatch?.patchReleaseVersionId
54
+ .id, this.editorStore.sdlcState.activeWorkspace.workspaceId, this.editorStore.sdlcState.activeWorkspace.workspaceType)));
55
+ },
56
+ },
57
+ {
58
+ label: 'Cancel',
59
+ type: ActionAlertActionType.PROCEED,
60
+ default: true,
61
+ },
62
+ ],
63
+ });
64
+ }
65
+ }
66
+ //# sourceMappingURL=LazyTextEditorStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyTextEditorStore.js","sourceRoot":"","sources":["../../../src/stores/lazy-text-editor/LazyTextEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,OAAO,mBAAmB;IACr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AM,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC;CAwHtD"}
1
+ {"version":3,"file":"ShowcaseViewerStore.d.ts","sourceRoot":"","sources":["../../../src/stores/showcase/ShowcaseViewerStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAExF,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAYvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,qBAAa,mBAAmB;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAA+B;IACrE,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;gBAEpB,WAAW,EAAE,WAAW;IAcpC,OAAO,KAAK,MAAM,GAKjB;IAED,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,WAAW,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI;IAI/B,UAAU,CAAC,MAAM,EAAE,wBAAwB,GAAG,WAAW,CAAC,IAAI,CAAC;IA8F/D,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC;CAwHtD"}
@@ -63,6 +63,9 @@ export class ShowcaseViewerStore {
63
63
  // fetch showcase
64
64
  this.editorStore.initState.setMessage(`Fetching Showcase Data...`);
65
65
  this._showcase = (yield this.client.getShowcase(showcasePath));
66
+ LegendStudioTelemetryHelper.logEvent_ShowcaseManagerShowcaseProjectLaunch(this.editorStore.applicationStore.telemetryService, {
67
+ showcasePath: showcasePath,
68
+ });
66
69
  // initialize graph manager
67
70
  yield this.editorStore.graphManagerState.graphManager.initialize({
68
71
  env: this.editorStore.applicationStore.config.env,
@@ -1 +1 @@
1
- {"version":3,"file":"ShowcaseViewerStore.js","sourceRoot":"","sources":["../../../src/stores/showcase/ShowcaseViewerStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EACL,4BAA4B,GAE7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,MAAM,OAAO,mBAAmB;IACrB,WAAW,CAAc;IACjB,oBAAoB,CAAgC;IACrE,SAAS,CAAuB;IAEhC,YAAY,WAAwB;QAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,cAAc,CAAC,IAAI,EAAE;YACnB,SAAS,EAAE,UAAU;YACrB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,MAAM,CAAC,iBAAiB,EAAE;YAC9D,IAAI,CAAC,oBAAoB,GAAG,IAAI,4BAA4B,CAAC;gBAC3D,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC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AC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAC/D,KAAK,CACN,CAAC;aACH;YACD,OAAO,KAAK,CAAC;SACd;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-studio",
3
- "version": "28.13.13",
3
+ "version": "28.13.15",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -45,11 +45,11 @@
45
45
  "test:watch": "jest --watch"
46
46
  },
47
47
  "dependencies": {
48
- "@finos/legend-application": "15.0.60",
49
- "@finos/legend-art": "7.1.13",
50
- "@finos/legend-graph": "31.6.0",
51
- "@finos/legend-lego": "1.1.63",
52
- "@finos/legend-query-builder": "4.13.4",
48
+ "@finos/legend-application": "15.0.61",
49
+ "@finos/legend-art": "7.1.14",
50
+ "@finos/legend-graph": "31.6.2",
51
+ "@finos/legend-lego": "1.1.65",
52
+ "@finos/legend-query-builder": "4.13.6",
53
53
  "@finos/legend-server-depot": "6.0.33",
54
54
  "@finos/legend-server-sdlc": "5.3.2",
55
55
  "@finos/legend-server-showcase": "0.2.2",
@@ -41,9 +41,11 @@ export enum LEGEND_STUDIO_APP_EVENT {
41
41
  // TODO: consider to split this generic errors into more specific events
42
42
  SDLC_MANAGER_FAILURE = 'sdlc.manager.failure',
43
43
 
44
- // Showcase
45
- // TODO: consider to split this generic errors into more specific events
46
44
  SHOWCASE_MANAGER_FAILURE = 'showcase.manager.failure',
45
+ // showcase manager
46
+ SHOWCASE_MANAGER_LAUNCH = 'showcase.manager.launch',
47
+ SHOWCASE_MANAGER_SHOWCASE_PROJECT_LAUNCH = 'showcase.manager.showcase.project.launch',
48
+ SHOWCASE_VIEWER_LAUNCH = 'showcase.viewer.launch',
47
49
 
48
50
  UPDATE_WORKSPACE__SUCCESS = 'sdlc.workspace-update.success',
49
51
  PUSH_LOCAL_CHANGES__SUCCESS = 'sdlc.local-changes-push.success',
@@ -53,6 +53,8 @@ export const LEGEND_STUDIO_ROUTE_PATTERN = Object.freeze({
53
53
  SETUP_PATCH_WORKSPACE: `/setup/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID}/patches/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PATCH_RELEASE_VERSION_ID}?/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.WORKSPACE_ID}?`,
54
54
  SETUP_GROUP_WORKSPACE: `/setup/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID}/groupWorkspace/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GROUP_WORKSPACE_ID}/`,
55
55
  SETUP_PATCH_GROUP_WORKSPACE: `/setup/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID}/patches/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PATCH_RELEASE_VERSION_ID}?/groupWorkspace/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GROUP_WORKSPACE_ID}/`,
56
+ TEXT_GROUP_WORKSPACE: `/text/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID}/groupWorkspace/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GROUP_WORKSPACE_ID}/`,
57
+ TEXT_WORKSPACE: `/text/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID}/:${LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.WORKSPACE_ID}/`,
56
58
  });
57
59
 
58
60
  export const LEGEND_STUDIO_SDLC_BYPASSED_ROUTE_PATTERN = Object.freeze({
@@ -87,6 +89,12 @@ export type WorkspaceEditorPathParams = {
87
89
  [LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.ENTITY_PATH]?: string;
88
90
  };
89
91
 
92
+ export type LazyTextEditorPathParams = {
93
+ [LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID]: string;
94
+ [LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.WORKSPACE_ID]?: string;
95
+ [LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.GROUP_WORKSPACE_ID]?: string;
96
+ };
97
+
90
98
  export type WorkspaceSetupPathParams = {
91
99
  [LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PROJECT_ID]?: string;
92
100
  [LEGEND_STUDIO_ROUTE_PATTERN_TOKEN.PATCH_RELEASE_VERSION_ID]?: string;
@@ -30,6 +30,15 @@ type TestDataGeneration_TelemetryData = GraphManagerOperationReport & {
30
30
  dependenciesCount: number;
31
31
  };
32
32
 
33
+ export type ShowcaseMetadata_TelemetryData = {
34
+ showcasesTotalCount: number;
35
+ showcasesDevelopmentCount: number;
36
+ };
37
+
38
+ export type ShowcaseProject_TelemetryData = {
39
+ showcasePath: string;
40
+ };
41
+
33
42
  export class LegendStudioTelemetryHelper {
34
43
  static logEvent_GraphCompilationLaunched(service: TelemetryService): void {
35
44
  service.logEvent(LEGEND_STUDIO_APP_EVENT.COMPILE_GRAPH__LAUNCH, {});
@@ -79,4 +88,27 @@ export class LegendStudioTelemetryHelper {
79
88
  ): void {
80
89
  service.logEvent(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS, data);
81
90
  }
91
+
92
+ // showcase manager
93
+ static logEvent_ShowcaseManagerLaunch(
94
+ service: TelemetryService,
95
+ data: ShowcaseMetadata_TelemetryData,
96
+ ): void {
97
+ service.logEvent(LEGEND_STUDIO_APP_EVENT.SHOWCASE_MANAGER_LAUNCH, data);
98
+ }
99
+ static logEvent_ShowcaseManagerShowcaseProjectLaunch(
100
+ service: TelemetryService,
101
+ data: ShowcaseProject_TelemetryData,
102
+ ): void {
103
+ service.logEvent(
104
+ LEGEND_STUDIO_APP_EVENT.SHOWCASE_MANAGER_SHOWCASE_PROJECT_LAUNCH,
105
+ data,
106
+ );
107
+ }
108
+ static logEvent_ShowcaseViewerLaunch(
109
+ service: TelemetryService,
110
+ data: ShowcaseProject_TelemetryData,
111
+ ): void {
112
+ service.logEvent(LEGEND_STUDIO_APP_EVENT.SHOWCASE_VIEWER_LAUNCH, data);
113
+ }
82
114
  }
@@ -41,6 +41,7 @@ import {
41
41
  } from '@finos/legend-application/browser';
42
42
  import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../__lib__/LegendStudioDocumentation.js';
43
43
  import { ShowcaseViewer } from './showcase/ShowcaseViewer.js';
44
+ import { LazyTextEditor } from './lazy-text-editor/LazyTextEditor.js';
44
45
 
45
46
  const NotFoundPage = observer(() => {
46
47
  const applicationStore = useApplicationStore();
@@ -51,7 +52,6 @@ const NotFoundPage = observer(() => {
51
52
  const documentation = applicationStore.documentationService.getDocEntry(
52
53
  LEGEND_STUDIO_DOCUMENTATION_KEY.NOT_FOUND_HELP,
53
54
  );
54
-
55
55
  return (
56
56
  <div className="app__page">
57
57
  <div
@@ -193,6 +193,18 @@ export const LegendStudioWebApplicationRouter = observer(() => {
193
193
  Editor as TEMPORARY__ReactRouterComponentType
194
194
  }
195
195
  />
196
+ <Route
197
+ exact={true}
198
+ strict={true}
199
+ path={[
200
+ LEGEND_STUDIO_ROUTE_PATTERN.TEXT_GROUP_WORKSPACE,
201
+ LEGEND_STUDIO_ROUTE_PATTERN.TEXT_WORKSPACE,
202
+ ]}
203
+ component={
204
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
205
+ LazyTextEditor as TEMPORARY__ReactRouterComponentType
206
+ }
207
+ />
196
208
  <Route
197
209
  exact={true}
198
210
  path={[
@@ -17,6 +17,7 @@
17
17
  import { observer } from 'mobx-react-lite';
18
18
  import {
19
19
  ACTIVITY_MODE,
20
+ EDITOR_MODE,
20
21
  PANEL_MODE,
21
22
  USER_JOURNEYS,
22
23
  } from '../../stores/editor/EditorConfig.js';
@@ -266,119 +267,125 @@ export const ActivityBar = observer(() => {
266
267
  data-testid={LEGEND_STUDIO_TEST_ID.ACTIVITY_BAR_ITEM_ICON_INDICATOR}
267
268
  ></div>
268
269
  );
270
+ const lazyTextModeEnabled = editorStore.mode === EDITOR_MODE.LAZY_TEXT_EDITOR;
269
271
  // tabs
270
- const activities: ActivityBarItemConfig[] = (
271
- [
272
- {
273
- mode: ACTIVITY_MODE.EXPLORER,
274
- title: 'Explorer (Ctrl + Shift + X)',
275
- icon: <FileTrayIcon className="activity-bar__explorer-icon" />,
276
- },
277
- !editorStore.isInConflictResolutionMode && {
278
- mode: ACTIVITY_MODE.TEST_RUNNER,
279
- title: 'Test Runner',
280
- icon: <FlaskIcon />,
281
- },
282
- !editorStore.isInConflictResolutionMode && {
283
- mode: ACTIVITY_MODE.LOCAL_CHANGES,
284
- title: `Local Changes (Ctrl + Shift + G)${
285
- localChanges ? ` - ${localChanges} unpushed changes` : ''
286
- }`,
287
- icon: (
288
- <div className="activity-bar__local-change-icon activity-bar__item__icon-with-indicator">
289
- <CodeBranchIcon />
290
- {localChangesIndicatorStatusIcon}
291
- </div>
292
- ),
293
- },
294
- !editorStore.isInConflictResolutionMode && {
295
- mode: ACTIVITY_MODE.WORKSPACE_UPDATER,
296
- title: `Update Workspace (Ctrl + Shift + U)${
297
- workspaceUpdateChanges
298
- ? ` - Update available${
299
- workspaceUpdatePotentialConflicts
300
- ? ' with potential conflicts'
301
- : ''
302
- }`
303
- : ''
304
- }`,
305
- icon: (
306
- <div className="activity-bar__workspace-updater-icon activity-bar__item__icon-with-indicator">
307
- <CloudDownloadIcon />
308
- {projectLatestChangesIndicatorStatusIcon}
309
- </div>
310
- ),
311
- },
312
- !editorStore.isInConflictResolutionMode && {
313
- mode: ACTIVITY_MODE.WORKSPACE_REVIEW,
314
- title: `Review (Ctrl + Shift + M)${
315
- reviewChanges ? ` - ${reviewChanges} changes` : ''
316
- }`,
317
- icon: (
318
- <div className="activity-bar__review-icon activity-bar__item__icon-with-indicator">
319
- <GitPullRequestIcon />
320
- {reviewChangesIndicatorStatusIcon}
321
- </div>
322
- ),
323
- },
324
- editorStore.isInConflictResolutionMode && {
325
- mode: ACTIVITY_MODE.CONFLICT_RESOLUTION,
326
- title: `Conflict Resolution${
327
- conflictResolutionChanges
328
- ? ` - ${conflictResolutionChanges} changes${
329
- conflictResolutionConflicts
330
- ? ` (${conflictResolutionConflicts} unresolved conflicts)`
331
- : ''
332
- }`
333
- : ''
334
- }`,
335
- icon: (
336
- <div className="activity-bar__conflict-resolution-icon activity-bar__item__icon-with-indicator">
337
- <GitMergeIcon />
338
- {conflictResolutionChangesIndicatorStatusIcon}
339
- </div>
340
- ),
341
- },
342
- !editorStore.isInConflictResolutionMode && {
343
- mode: ACTIVITY_MODE.PROJECT_OVERVIEW,
344
- title: 'Project',
345
- icon: <RepoIcon className="activity-bar__project-overview-icon" />,
346
- },
347
- !editorStore.isInConflictResolutionMode && {
348
- mode: ACTIVITY_MODE.WORKFLOW_MANAGER,
349
- title: 'Workflow Manager',
350
- icon: <WrenchIcon />,
351
- },
352
- !editorStore.isInConflictResolutionMode && {
353
- mode: ACTIVITY_MODE.REGISTER_SERVICES,
354
- title: 'Register Service (Beta)',
355
- icon: (
356
- <>
357
- <RobotIcon className="activity-bar__icon--service-registrar" />
358
- <ActivityBarItemExperimentalBadge />
359
- </>
360
- ),
361
- },
362
- ] as (ActivityBarItemConfig | boolean)[]
363
- ).filter((activity): activity is ActivityBarItemConfig => Boolean(activity));
272
+ const activities: ActivityBarItemConfig[] = [
273
+ {
274
+ mode: ACTIVITY_MODE.EXPLORER,
275
+ title: 'Explorer (Ctrl + Shift + X)',
276
+ icon: <FileTrayIcon className="activity-bar__explorer-icon" />,
277
+ },
278
+ {
279
+ mode: ACTIVITY_MODE.TEST_RUNNER,
280
+ title: 'Test Runner',
281
+ icon: <FlaskIcon />,
282
+ disabled: editorStore.isInConflictResolutionMode || lazyTextModeEnabled,
283
+ },
284
+ {
285
+ mode: ACTIVITY_MODE.LOCAL_CHANGES,
286
+ title: `Local Changes (Ctrl + Shift + G)${
287
+ localChanges ? ` - ${localChanges} unpushed changes` : ''
288
+ }`,
289
+ icon: (
290
+ <div className="activity-bar__local-change-icon activity-bar__item__icon-with-indicator">
291
+ <CodeBranchIcon />
292
+ {localChangesIndicatorStatusIcon}
293
+ </div>
294
+ ),
295
+ disabled: editorStore.isInConflictResolutionMode,
296
+ },
297
+ {
298
+ mode: ACTIVITY_MODE.WORKSPACE_UPDATER,
299
+ title: `Update Workspace (Ctrl + Shift + U)${
300
+ workspaceUpdateChanges
301
+ ? ` - Update available${
302
+ workspaceUpdatePotentialConflicts
303
+ ? ' with potential conflicts'
304
+ : ''
305
+ }`
306
+ : ''
307
+ }`,
308
+ icon: (
309
+ <div className="activity-bar__workspace-updater-icon activity-bar__item__icon-with-indicator">
310
+ <CloudDownloadIcon />
311
+ {projectLatestChangesIndicatorStatusIcon}
312
+ </div>
313
+ ),
314
+ disabled: editorStore.isInConflictResolutionMode,
315
+ },
316
+ {
317
+ mode: ACTIVITY_MODE.WORKSPACE_REVIEW,
318
+ title: `Review (Ctrl + Shift + M)${
319
+ reviewChanges ? ` - ${reviewChanges} changes` : ''
320
+ }`,
321
+ icon: (
322
+ <div className="activity-bar__review-icon activity-bar__item__icon-with-indicator">
323
+ <GitPullRequestIcon />
324
+ {reviewChangesIndicatorStatusIcon}
325
+ </div>
326
+ ),
327
+ disabled: editorStore.isInConflictResolutionMode,
328
+ },
329
+ {
330
+ mode: ACTIVITY_MODE.CONFLICT_RESOLUTION,
331
+ title: `Conflict Resolution${
332
+ conflictResolutionChanges
333
+ ? ` - ${conflictResolutionChanges} changes${
334
+ conflictResolutionConflicts
335
+ ? ` (${conflictResolutionConflicts} unresolved conflicts)`
336
+ : ''
337
+ }`
338
+ : ''
339
+ }`,
340
+ icon: (
341
+ <div className="activity-bar__conflict-resolution-icon activity-bar__item__icon-with-indicator">
342
+ <GitMergeIcon />
343
+ {conflictResolutionChangesIndicatorStatusIcon}
344
+ </div>
345
+ ),
346
+
347
+ disabled: !editorStore.isInConflictResolutionMode || lazyTextModeEnabled,
348
+ },
349
+ {
350
+ mode: ACTIVITY_MODE.PROJECT_OVERVIEW,
351
+ title: 'Project',
352
+ icon: <RepoIcon className="activity-bar__project-overview-icon" />,
353
+ disabled: editorStore.isInConflictResolutionMode,
354
+ },
355
+ {
356
+ mode: ACTIVITY_MODE.WORKFLOW_MANAGER,
357
+ title: 'Workflow Manager',
358
+ icon: <WrenchIcon />,
359
+ disabled: editorStore.isInConflictResolutionMode,
360
+ },
361
+ {
362
+ mode: ACTIVITY_MODE.REGISTER_SERVICES,
363
+ title: 'Register Service (Beta)',
364
+ icon: (
365
+ <>
366
+ <RobotIcon className="activity-bar__icon--service-registrar" />
367
+ <ActivityBarItemExperimentalBadge />
368
+ </>
369
+ ),
370
+ disabled: editorStore.isInConflictResolutionMode || lazyTextModeEnabled,
371
+ },
372
+ ].filter((activity) => !activity.disabled);
364
373
 
365
- const enableEndtoEndWorkflow =
366
- editorStore.applicationStore.config.options.NonProductionFeatureFlag;
367
- const userJourneys: ActivityBarItemConfig[] = (
368
- [
369
- !editorStore.isInConflictResolutionMode &&
370
- enableEndtoEndWorkflow && {
371
- mode: USER_JOURNEYS.END_TO_END_WORKFLOWS,
372
- title: 'End to End Workflows (Beta)',
373
- icon: (
374
- <div>
375
- <WorkflowIcon className="activity-bar__icon--service-registrar" />
376
- <ActivityBarItemExperimentalBadge />
377
- </div>
378
- ),
379
- },
380
- ] as (ActivityBarItemConfig | boolean)[]
381
- ).filter((activity): activity is ActivityBarItemConfig => Boolean(activity));
374
+ const userJourneys: ActivityBarItemConfig[] = [
375
+ {
376
+ mode: USER_JOURNEYS.END_TO_END_WORKFLOWS,
377
+ title: 'End to End Workflows (Beta)',
378
+ icon: (
379
+ <div>
380
+ <WorkflowIcon className="activity-bar__icon--service-registrar" />
381
+ <ActivityBarItemExperimentalBadge />
382
+ </div>
383
+ ),
384
+ disabled:
385
+ editorStore.isInConflictResolutionMode ||
386
+ !editorStore.applicationStore.config.options.NonProductionFeatureFlag,
387
+ },
388
+ ].filter((activity) => !activity.disabled);
382
389
 
383
390
  return (
384
391
  <div className="activity-bar">
@@ -684,9 +684,10 @@ export const GrammarTextEditor = observer(() => {
684
684
  >();
685
685
  const editorStore = useEditorStore();
686
686
  const applicationStore = useApplicationStore();
687
- const grammarTextEditorState = editorStore.getGraphEditorMode(
687
+ const grammarModeState = editorStore.getGraphEditorMode(
688
688
  GraphEditGrammarModeState,
689
- ).grammarTextEditorState;
689
+ );
690
+ const grammarTextEditorState = grammarModeState.grammarTextEditorState;
690
691
  const error = editorStore.graphState.error;
691
692
  const [elementsFolded, setFoldingElements] = useState(false);
692
693
 
@@ -790,8 +791,10 @@ export const GrammarTextEditor = observer(() => {
790
791
  if (editorModel) {
791
792
  editorModel.updateOptions({ tabSize: DEFAULT_TAB_SIZE });
792
793
  if (
793
- !editorStore.graphState.areProblemsStale &&
794
- error?.sourceInformation
794
+ error?.sourceInformation &&
795
+ // We should only calculate if problems are stale if there is an error/warning as
796
+ // calculating staleness takes time
797
+ !editorStore.graphState.areProblemsStale
795
798
  ) {
796
799
  setErrorMarkers(editorModel, [
797
800
  {
@@ -805,8 +808,10 @@ export const GrammarTextEditor = observer(() => {
805
808
  }
806
809
 
807
810
  if (
808
- !editorStore.graphState.areProblemsStale &&
809
- editorStore.graphState.warnings.length
811
+ editorStore.graphState.warnings.length &&
812
+ // We should only calculate if problems are stale if there is an error/warning as
813
+ // calculating staleness takes time
814
+ !editorStore.graphState.areProblemsStale
810
815
  ) {
811
816
  setWarningMarkers(
812
817
  editorModel,
@@ -1185,7 +1190,9 @@ export const GrammarTextEditor = observer(() => {
1185
1190
  className="editor-group__text-mode__tab editor-group__text-mode__tab--active"
1186
1191
  content={<GrammarTextEditorHeaderTabContextMenu />}
1187
1192
  >
1188
- <div className="editor-group__text-mode__tab__label">Text Mode</div>
1193
+ <div className="editor-group__text-mode__tab__label">
1194
+ {grammarModeState.headerLabel}
1195
+ </div>
1189
1196
  </ContextMenu>
1190
1197
  </div>
1191
1198
  <div className="editor-group__header__actions">