@finos/legend-application-studio 28.15.3 → 28.15.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/lib/__lib__/LegendStudioNavigation.d.ts +1 -1
  2. package/lib/components/LegendStudioWebApplication.js +2 -2
  3. package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.d.ts +22 -0
  4. package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.d.ts.map +1 -0
  5. package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.js +26 -0
  6. package/lib/components/editor/editor-group/diff-editor/ProjectConfigDiffView.js.map +1 -0
  7. package/lib/components/{workspace-review/WorkspaceReviewSideBar.d.ts → project-reviewer/ProjectReviewSideBar.d.ts} +2 -2
  8. package/lib/components/project-reviewer/ProjectReviewSideBar.d.ts.map +1 -0
  9. package/lib/components/{workspace-review/WorkspaceReviewSideBar.js → project-reviewer/ProjectReviewSideBar.js} +34 -18
  10. package/lib/components/project-reviewer/ProjectReviewSideBar.js.map +1 -0
  11. package/lib/components/{workspace-review/WorkspaceReviewStoreProvider.d.ts → project-reviewer/ProjectReviewStoreProvider.d.ts} +5 -5
  12. package/lib/components/project-reviewer/ProjectReviewStoreProvider.d.ts.map +1 -0
  13. package/lib/components/{workspace-review/WorkspaceReviewStoreProvider.js → project-reviewer/ProjectReviewStoreProvider.js} +9 -9
  14. package/lib/components/project-reviewer/ProjectReviewStoreProvider.js.map +1 -0
  15. package/lib/components/{workspace-review/WorkspaceReview.d.ts → project-reviewer/ProjectReviewer.d.ts} +2 -2
  16. package/lib/components/project-reviewer/ProjectReviewer.d.ts.map +1 -0
  17. package/lib/components/{workspace-review/WorkspaceReview.js → project-reviewer/ProjectReviewer.js} +19 -28
  18. package/lib/components/project-reviewer/ProjectReviewer.js.map +1 -0
  19. package/lib/components/{workspace-review/WorkspaceReviewPanel.d.ts → project-reviewer/ProjectReviewerPanel.d.ts} +2 -2
  20. package/lib/components/project-reviewer/ProjectReviewerPanel.d.ts.map +1 -0
  21. package/lib/components/{workspace-review/WorkspaceReviewPanel.js → project-reviewer/ProjectReviewerPanel.js} +26 -10
  22. package/lib/components/project-reviewer/ProjectReviewerPanel.js.map +1 -0
  23. package/lib/index.css +1 -1
  24. package/lib/package.json +1 -1
  25. package/lib/stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.d.ts +24 -0
  26. package/lib/stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.d.ts.map +1 -0
  27. package/lib/stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.js +26 -0
  28. package/lib/stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.js.map +1 -0
  29. package/lib/stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.d.ts +31 -0
  30. package/lib/stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.d.ts.map +1 -0
  31. package/lib/stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.js +39 -0
  32. package/lib/stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.js.map +1 -0
  33. package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.d.ts.map +1 -1
  34. package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.js +2 -2
  35. package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.js.map +1 -1
  36. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts +1 -1
  37. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts.map +1 -1
  38. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js +5 -4
  39. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js.map +1 -1
  40. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js +1 -1
  41. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js.map +1 -1
  42. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.d.ts +2 -2
  43. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.d.ts.map +1 -1
  44. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js +2 -2
  45. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js.map +1 -1
  46. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.d.ts +0 -2
  47. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.d.ts.map +1 -1
  48. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.js +1 -3
  49. package/lib/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.js.map +1 -1
  50. package/lib/stores/project-reviewer/ProjectReviewerStore.d.ts +73 -0
  51. package/lib/stores/project-reviewer/ProjectReviewerStore.d.ts.map +1 -0
  52. package/lib/stores/project-reviewer/ProjectReviewerStore.js +303 -0
  53. package/lib/stores/project-reviewer/ProjectReviewerStore.js.map +1 -0
  54. package/package.json +5 -5
  55. package/src/__lib__/LegendStudioNavigation.ts +1 -1
  56. package/src/components/LegendStudioWebApplication.tsx +2 -2
  57. package/src/components/editor/editor-group/diff-editor/ProjectConfigDiffView.tsx +60 -0
  58. package/src/components/{workspace-review/WorkspaceReviewSideBar.tsx → project-reviewer/ProjectReviewSideBar.tsx} +91 -11
  59. package/src/components/{workspace-review/WorkspaceReviewStoreProvider.tsx → project-reviewer/ProjectReviewStoreProvider.tsx} +13 -13
  60. package/src/components/{workspace-review/WorkspaceReview.tsx → project-reviewer/ProjectReviewer.tsx} +25 -55
  61. package/src/components/{workspace-review/WorkspaceReviewPanel.tsx → project-reviewer/ProjectReviewerPanel.tsx} +54 -36
  62. package/src/stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.ts +34 -0
  63. package/src/stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.ts +56 -0
  64. package/src/stores/editor/editor-state/element-editor-state/FunctionActivatorState.ts +2 -1
  65. package/src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts +6 -3
  66. package/src/stores/editor/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts +1 -1
  67. package/src/stores/editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts +2 -2
  68. package/src/stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +1 -3
  69. package/src/stores/{workspace-review/WorkspaceReviewStore.ts → project-reviewer/ProjectReviewerStore.ts} +235 -57
  70. package/tsconfig.json +8 -5
  71. package/lib/components/workspace-review/WorkspaceReview.d.ts.map +0 -1
  72. package/lib/components/workspace-review/WorkspaceReview.js.map +0 -1
  73. package/lib/components/workspace-review/WorkspaceReviewPanel.d.ts.map +0 -1
  74. package/lib/components/workspace-review/WorkspaceReviewPanel.js.map +0 -1
  75. package/lib/components/workspace-review/WorkspaceReviewSideBar.d.ts.map +0 -1
  76. package/lib/components/workspace-review/WorkspaceReviewSideBar.js.map +0 -1
  77. package/lib/components/workspace-review/WorkspaceReviewStoreProvider.d.ts.map +0 -1
  78. package/lib/components/workspace-review/WorkspaceReviewStoreProvider.js.map +0 -1
  79. package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts +0 -47
  80. package/lib/stores/workspace-review/WorkspaceReviewStore.d.ts.map +0 -1
  81. package/lib/stores/workspace-review/WorkspaceReviewStore.js +0 -207
  82. package/lib/stores/workspace-review/WorkspaceReviewStore.js.map +0 -1
@@ -20,23 +20,74 @@ import {
20
20
  assertErrorThrown,
21
21
  LogEvent,
22
22
  guaranteeNonNullable,
23
+ ActionState,
24
+ assertNonEmptyString,
23
25
  } from '@finos/legend-shared';
24
26
  import {
25
27
  makeObservable,
26
28
  action,
27
- flowResult,
28
29
  observable,
29
30
  flow,
30
31
  computed,
32
+ flowResult,
31
33
  } from 'mobx';
32
34
  import type { EditorStore } from '../editor/EditorStore.js';
33
35
  import { ACTIVITY_MODE } from '../editor/EditorConfig.js';
34
- import type { Entity } from '@finos/legend-storage';
35
- import { Project, Review, type Patch } from '@finos/legend-server-sdlc';
36
+ import {
37
+ EntityDiff,
38
+ type ProjectConfiguration,
39
+ Comparison,
40
+ reprocessEntityDiffs,
41
+ Project,
42
+ Review,
43
+ type Patch,
44
+ ReviewApproval,
45
+ } from '@finos/legend-server-sdlc';
36
46
  import { LEGEND_STUDIO_APP_EVENT } from '../../__lib__/LegendStudioEvent.js';
37
47
  import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
48
+ import type { Entity } from '@finos/legend-storage';
49
+ import { EntityDiffViewState } from '../editor/editor-state/entity-diff-editor-state/EntityDiffViewState.js';
50
+ import { SPECIAL_REVISION_ALIAS } from '../editor/editor-state/entity-diff-editor-state/EntityDiffEditorState.js';
51
+
52
+ export class ProjectReviewReport {
53
+ diffs: EntityDiff[];
54
+ fromEntities: Entity[] = [];
55
+ toEntities: Entity[] = [];
56
+ fromToProjectConfig:
57
+ | [PlainObject<ProjectConfiguration>, PlainObject<ProjectConfiguration>]
58
+ | undefined;
59
+
60
+ constructor(diffs: EntityDiff[]) {
61
+ this.diffs = diffs;
62
+ }
63
+
64
+ findFromEntity(entityPath: string): Entity | undefined {
65
+ return this.fromEntities.find((e) => e.path === entityPath);
66
+ }
67
+
68
+ findToEntity(entityPath: string): Entity | undefined {
69
+ return this.toEntities.find((e) => e.path === entityPath);
70
+ }
71
+
72
+ withFromEntities(val: Entity[]): ProjectReviewReport {
73
+ this.fromEntities = val;
74
+ return this;
75
+ }
76
+
77
+ withToEntities(val: Entity[]): ProjectReviewReport {
78
+ this.toEntities = val;
79
+ return this;
80
+ }
81
+
82
+ withProjectConfigChange(
83
+ val: [PlainObject<ProjectConfiguration>, PlainObject<ProjectConfiguration>],
84
+ ): ProjectReviewReport {
85
+ this.fromToProjectConfig = val;
86
+ return this;
87
+ }
88
+ }
38
89
 
39
- export class WorkspaceReviewStore {
90
+ export class ProjectReviewerStore {
40
91
  readonly editorStore: EditorStore;
41
92
 
42
93
  currentProjectId?: string | undefined;
@@ -44,12 +95,18 @@ export class WorkspaceReviewStore {
44
95
  currentPatch?: Patch | undefined;
45
96
  currentReviewId?: string | undefined;
46
97
  currentReview?: Review | undefined;
47
- isFetchingCurrentReview = false;
48
- isFetchingComparison = false;
49
- isApprovingReview = false;
50
- isClosingReview = false;
51
- isCommittingReview = false;
52
- isReopeningReview = false;
98
+ // comparison
99
+ fetchComparisonState = ActionState.create();
100
+ reviewComparison?: Comparison | undefined;
101
+ reviewReport?: ProjectReviewReport | undefined;
102
+
103
+ fetchCurrentReviewState = ActionState.create();
104
+ approveState = ActionState.create();
105
+ reviewApproval: ReviewApproval | undefined;
106
+
107
+ closeState = ActionState.create();
108
+ commitState = ActionState.create();
109
+ reOpenState = ActionState.create();
53
110
 
54
111
  constructor(editorStore: EditorStore) {
55
112
  makeObservable(this, {
@@ -58,21 +115,25 @@ export class WorkspaceReviewStore {
58
115
  currentPatch: observable,
59
116
  currentReviewId: observable,
60
117
  currentReview: observable,
61
- isFetchingCurrentReview: observable,
62
- isFetchingComparison: observable,
63
- isApprovingReview: observable,
64
- isClosingReview: observable,
65
- isCommittingReview: observable,
66
- isReopeningReview: observable,
118
+ fetchCurrentReviewState: observable,
119
+ fetchComparisonState: observable,
120
+ approveState: observable,
121
+ closeState: observable,
122
+ commitState: observable,
123
+ reOpenState: observable,
124
+ reviewReport: observable,
125
+ reviewApproval: observable,
67
126
  projectId: computed,
68
127
  patchReleaseVersionId: computed,
69
128
  reviewId: computed,
70
129
  review: computed,
71
130
  setProjectIdAndReviewId: action,
72
- initialize: flow,
131
+ refresh: action,
132
+ initializeEngine: flow,
73
133
  fetchReviewComparison: flow,
74
134
  fetchProject: flow,
75
- getReview: flow,
135
+ fetchReviewApprovals: flow,
136
+ fetchReview: flow,
76
137
  approveReview: flow,
77
138
  commitReview: flow,
78
139
  reOpenReview: flow,
@@ -99,14 +160,47 @@ export class WorkspaceReviewStore {
99
160
  return guaranteeNonNullable(this.currentReview, 'Review must exist');
100
161
  }
101
162
 
163
+ get comparison(): Comparison {
164
+ return guaranteeNonNullable(
165
+ this.reviewComparison,
166
+ 'review Comparison must exist',
167
+ );
168
+ }
169
+
170
+ get approvalString(): string | undefined {
171
+ const approvals = this.reviewApproval?.approvedBy;
172
+ if (approvals?.length) {
173
+ return `Approved by ${approvals.map((e) => e.name).join(',')}.`;
174
+ }
175
+ return undefined;
176
+ }
177
+
102
178
  setProjectIdAndReviewId(projectId: string, reviewId: string): void {
103
179
  this.currentProjectId = projectId;
104
180
  this.currentReviewId = reviewId;
105
181
  }
106
182
 
107
- *initialize(): GeneratorFn<void> {
183
+ initialize(): void {
184
+ flowResult(this.initializeEngine()).catch(
185
+ this.editorStore.applicationStore.alertUnhandledError,
186
+ );
187
+ flowResult(this.fetchReview()).catch(
188
+ this.editorStore.applicationStore.alertUnhandledError,
189
+ );
190
+ flowResult(this.fetchProject()).catch(
191
+ this.editorStore.applicationStore.alertUnhandledError,
192
+ );
193
+ flowResult(this.fetchReviewApprovals()).catch(
194
+ this.editorStore.applicationStore.alertUnhandledError,
195
+ );
196
+ flowResult(this.fetchReviewComparison()).catch(
197
+ this.editorStore.applicationStore.alertUnhandledError,
198
+ );
199
+ }
200
+
201
+ *initializeEngine(): GeneratorFn<void> {
108
202
  try {
109
- // setup engine
203
+ // setup engine used for to/from grammar transfomation
110
204
  yield this.editorStore.graphManagerState.graphManager.initialize(
111
205
  {
112
206
  env: this.editorStore.applicationStore.config.env,
@@ -132,44 +226,105 @@ export class WorkspaceReviewStore {
132
226
  }
133
227
  }
134
228
 
229
+ openReviewChange(diff: EntityDiff): void {
230
+ const fromEntityGetter = (
231
+ entityPath: string | undefined,
232
+ ): Entity | undefined =>
233
+ entityPath ? this.reviewReport?.findFromEntity(entityPath) : undefined;
234
+ const toEntityGetter = (
235
+ entityPath: string | undefined,
236
+ ): Entity | undefined =>
237
+ entityPath ? this.reviewReport?.findToEntity(entityPath) : undefined;
238
+ const fromEntity = EntityDiff.shouldOldEntityExist(diff)
239
+ ? guaranteeNonNullable(
240
+ fromEntityGetter(diff.getValidatedOldPath()),
241
+ `Can't find entity with path '${diff.oldPath}'`,
242
+ )
243
+ : undefined;
244
+ const toEntity = EntityDiff.shouldNewEntityExist(diff)
245
+ ? guaranteeNonNullable(
246
+ toEntityGetter(diff.getValidatedNewPath()),
247
+ `Can't find entity with path '${diff.newPath}'`,
248
+ )
249
+ : undefined;
250
+ const diffState = new EntityDiffViewState(
251
+ this.editorStore,
252
+ SPECIAL_REVISION_ALIAS.WORKSPACE_BASE,
253
+ SPECIAL_REVISION_ALIAS.WORKSPACE_HEAD,
254
+ diff.oldPath,
255
+ diff.newPath,
256
+ fromEntity,
257
+ toEntity,
258
+ fromEntityGetter,
259
+ toEntityGetter,
260
+ );
261
+
262
+ this.editorStore.tabManagerState.openTab(
263
+ this.editorStore.tabManagerState.tabs.find((t) => t.match(diffState)) ??
264
+ diffState,
265
+ );
266
+ }
267
+
268
+ refresh(): void {
269
+ this.editorStore.tabManagerState.closeAllTabs();
270
+ this.reviewComparison = undefined;
271
+ this.reviewReport = undefined;
272
+ flowResult(this.fetchReviewComparison()).catch(
273
+ this.editorStore.applicationStore.alertUnhandledError,
274
+ );
275
+ }
276
+
277
+ /**
278
+ * To save load time, this function will levergae the reviewId coming from the URl and doesn't
279
+ * assume the review has completed been fetched
280
+ */
135
281
  *fetchReviewComparison(): GeneratorFn<void> {
136
- this.isFetchingComparison = true;
282
+ this.fetchComparisonState.inProgress();
137
283
  try {
138
- const [fromEntities, toEntities] = (yield Promise.all([
284
+ const [comparison, fromEntities, toEntities] = (yield Promise.all([
285
+ this.editorStore.sdlcServerClient.getReviewComparision(
286
+ this.projectId,
287
+ this.patchReleaseVersionId,
288
+ this.reviewId,
289
+ ),
139
290
  this.editorStore.sdlcServerClient.getReviewFromEntities(
140
291
  this.projectId,
141
292
  this.patchReleaseVersionId,
142
- this.review.id,
293
+ this.reviewId,
143
294
  ),
144
295
  this.editorStore.sdlcServerClient.getReviewToEntities(
145
296
  this.projectId,
146
297
  this.patchReleaseVersionId,
147
- this.review.id,
298
+ this.reviewId,
148
299
  ),
149
- ])) as [Entity[], Entity[]];
150
- this.editorStore.changeDetectionState.workspaceBaseRevisionState.setEntities(
151
- fromEntities,
152
- );
153
- this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.setEntities(
154
- toEntities,
300
+ ])) as [PlainObject<Comparison>, Entity[], Entity[]];
301
+ const resolvedComparison = Comparison.serialization.fromJson(comparison);
302
+ this.reviewComparison = resolvedComparison;
303
+ const report = new ProjectReviewReport(
304
+ reprocessEntityDiffs(resolvedComparison.entityDiffs),
155
305
  );
156
- yield Promise.all([
157
- this.editorStore.changeDetectionState.workspaceBaseRevisionState.buildEntityHashesIndex(
158
- fromEntities,
159
- LogEvent.create(
160
- LEGEND_STUDIO_APP_EVENT.CHANGE_DETECTION_BUILD_WORKSPACE_HASHES_INDEX__SUCCESS,
306
+ report.withFromEntities(fromEntities).withToEntities(toEntities);
307
+ this.reviewReport = report;
308
+ if (comparison.projectConfigurationUpdated) {
309
+ const [fromConfig, toConfig] = (yield Promise.all([
310
+ this.editorStore.sdlcServerClient.getReviewFromConfiguration(
311
+ this.projectId,
312
+ this.patchReleaseVersionId,
313
+ this.reviewId,
161
314
  ),
162
- ),
163
- this.editorStore.changeDetectionState.workspaceLocalLatestRevisionState.buildEntityHashesIndex(
164
- toEntities,
165
- LogEvent.create(
166
- LEGEND_STUDIO_APP_EVENT.CHANGE_DETECTION_BUILD_LOCAL_HASHES_INDEX__SUCCESS,
315
+ this.editorStore.sdlcServerClient.getReviewToConfiguration(
316
+ this.projectId,
317
+ this.patchReleaseVersionId,
318
+ this.reviewId,
167
319
  ),
168
- ),
169
- ]);
170
- yield flowResult(
171
- this.editorStore.changeDetectionState.computeAggregatedWorkspaceChanges(),
172
- );
320
+ ])) as [
321
+ PlainObject<ProjectConfiguration> | undefined,
322
+ PlainObject<ProjectConfiguration> | undefined,
323
+ ];
324
+ if (fromConfig && toConfig) {
325
+ report.withProjectConfigChange([fromConfig, toConfig]);
326
+ }
327
+ }
173
328
  } catch (error) {
174
329
  assertErrorThrown(error);
175
330
  this.editorStore.applicationStore.logService.error(
@@ -178,7 +333,7 @@ export class WorkspaceReviewStore {
178
333
  );
179
334
  this.editorStore.applicationStore.notificationService.notifyError(error);
180
335
  } finally {
181
- this.isFetchingComparison = false;
336
+ this.fetchComparisonState.complete();
182
337
  }
183
338
  }
184
339
 
@@ -199,9 +354,32 @@ export class WorkspaceReviewStore {
199
354
  }
200
355
  }
201
356
 
202
- *getReview(): GeneratorFn<void> {
357
+ *fetchReviewApprovals(): GeneratorFn<void> {
203
358
  try {
204
- this.isFetchingCurrentReview = true;
359
+ this.reviewApproval = ReviewApproval.serialization.fromJson(
360
+ (yield this.editorStore.sdlcServerClient.getReviewApprovals(
361
+ this.projectId,
362
+ this.patchReleaseVersionId,
363
+ this.reviewId,
364
+ )) as PlainObject<ReviewApproval>,
365
+ );
366
+ } catch (error) {
367
+ assertErrorThrown(error);
368
+ this.editorStore.applicationStore.logService.error(
369
+ LogEvent.create(LEGEND_STUDIO_APP_EVENT.SDLC_MANAGER_FAILURE),
370
+ error,
371
+ );
372
+ }
373
+ }
374
+
375
+ *fetchReview(): GeneratorFn<void> {
376
+ try {
377
+ // TODO: can we assume review also an integer ?
378
+ assertNonEmptyString(
379
+ this.currentReviewId,
380
+ 'Review ID provided must be a valid non empty string',
381
+ );
382
+ this.fetchCurrentReviewState.inProgress();
205
383
  this.currentReview = Review.serialization.fromJson(
206
384
  (yield this.editorStore.sdlcServerClient.getReview(
207
385
  this.projectId,
@@ -217,12 +395,12 @@ export class WorkspaceReviewStore {
217
395
  );
218
396
  this.editorStore.applicationStore.notificationService.notifyError(error);
219
397
  } finally {
220
- this.isFetchingCurrentReview = false;
398
+ this.fetchCurrentReviewState.complete();
221
399
  }
222
400
  }
223
401
 
224
402
  *approveReview(): GeneratorFn<void> {
225
- this.isApprovingReview = true;
403
+ this.approveState.inProgress();
226
404
  try {
227
405
  this.currentReview = Review.serialization.fromJson(
228
406
  (yield this.editorStore.sdlcServerClient.approveReview(
@@ -239,12 +417,12 @@ export class WorkspaceReviewStore {
239
417
  );
240
418
  this.editorStore.applicationStore.notificationService.notifyError(error);
241
419
  } finally {
242
- this.isApprovingReview = false;
420
+ this.approveState.complete();
243
421
  }
244
422
  }
245
423
 
246
424
  *commitReview(): GeneratorFn<void> {
247
- this.isCommittingReview = true;
425
+ this.commitState.inProgress();
248
426
  try {
249
427
  this.currentReview = Review.serialization.fromJson(
250
428
  (yield this.editorStore.sdlcServerClient.commitReview(
@@ -262,12 +440,12 @@ export class WorkspaceReviewStore {
262
440
  );
263
441
  this.editorStore.applicationStore.notificationService.notifyError(error);
264
442
  } finally {
265
- this.isCommittingReview = false;
443
+ this.commitState.complete();
266
444
  }
267
445
  }
268
446
 
269
447
  *reOpenReview(): GeneratorFn<void> {
270
- this.isReopeningReview = true;
448
+ this.reOpenState.inProgress();
271
449
  try {
272
450
  this.currentReview = Review.serialization.fromJson(
273
451
  (yield this.editorStore.sdlcServerClient.reopenReview(
@@ -284,12 +462,12 @@ export class WorkspaceReviewStore {
284
462
  );
285
463
  this.editorStore.applicationStore.notificationService.notifyError(error);
286
464
  } finally {
287
- this.isReopeningReview = false;
465
+ this.reOpenState.complete();
288
466
  }
289
467
  }
290
468
 
291
469
  *closeReview(): GeneratorFn<void> {
292
- this.isClosingReview = true;
470
+ this.closeState.inProgress();
293
471
  try {
294
472
  this.currentReview = Review.serialization.fromJson(
295
473
  (yield this.editorStore.sdlcServerClient.closeReview(
@@ -306,7 +484,7 @@ export class WorkspaceReviewStore {
306
484
  );
307
485
  this.editorStore.applicationStore.notificationService.notifyError(error);
308
486
  } finally {
309
- this.isClosingReview = false;
487
+ this.closeState.complete();
310
488
  }
311
489
  }
312
490
  }
package/tsconfig.json CHANGED
@@ -83,6 +83,8 @@
83
83
  "./src/stores/editor/editor-state/GraphGenerationState.ts",
84
84
  "./src/stores/editor/editor-state/ModelImporterState.ts",
85
85
  "./src/stores/editor/editor-state/UnsupportedElementEditorState.ts",
86
+ "./src/stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.ts",
87
+ "./src/stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.ts",
86
88
  "./src/stores/editor/editor-state/element-editor-state/ClassEditorState.ts",
87
89
  "./src/stores/editor/editor-state/element-editor-state/ClassState.ts",
88
90
  "./src/stores/editor/editor-state/element-editor-state/ElementEditorState.ts",
@@ -175,11 +177,11 @@
175
177
  "./src/stores/graph-modifier/STO_Relational_GraphModifierHelper.ts",
176
178
  "./src/stores/graph-modifier/Testable_GraphModifierHelper.ts",
177
179
  "./src/stores/lazy-text-editor/LazyTextEditorStore.ts",
180
+ "./src/stores/project-reviewer/ProjectReviewerStore.ts",
178
181
  "./src/stores/project-view/ProjectViewerEditorMode.ts",
179
182
  "./src/stores/project-view/ProjectViewerStore.ts",
180
183
  "./src/stores/showcase/ShowcaseViewerEditorMode.ts",
181
184
  "./src/stores/showcase/ShowcaseViewerStore.ts",
182
- "./src/stores/workspace-review/WorkspaceReviewStore.ts",
183
185
  "./src/stores/workspace-setup/ProjectConfigurationStatus.ts",
184
186
  "./src/stores/workspace-setup/WorkspaceSetupStore.ts",
185
187
  "./src/application/LegendStudio.tsx",
@@ -219,6 +221,7 @@
219
221
  "./src/components/editor/editor-group/database/IsolatedQueryDatabase.tsx",
220
222
  "./src/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.tsx",
221
223
  "./src/components/editor/editor-group/diff-editor/EntityDiffView.tsx",
224
+ "./src/components/editor/editor-group/diff-editor/ProjectConfigDiffView.tsx",
222
225
  "./src/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.tsx",
223
226
  "./src/components/editor/editor-group/element-generation-editor/ElementNativeView.tsx",
224
227
  "./src/components/editor/editor-group/element-generation-editor/ElementXTGenerationEditor.tsx",
@@ -298,14 +301,14 @@
298
301
  "./src/components/extensions/Core_LegendStudioApplicationPlugin.tsx",
299
302
  "./src/components/extensions/DSL_ExternalFormat_LegendStudioApplicationPlugin.tsx",
300
303
  "./src/components/lazy-text-editor/LazyTextEditor.tsx",
304
+ "./src/components/project-reviewer/ProjectReviewSideBar.tsx",
305
+ "./src/components/project-reviewer/ProjectReviewStoreProvider.tsx",
306
+ "./src/components/project-reviewer/ProjectReviewer.tsx",
307
+ "./src/components/project-reviewer/ProjectReviewerPanel.tsx",
301
308
  "./src/components/project-view/ProjectViewer.tsx",
302
309
  "./src/components/project-view/ProjectViewerStoreProvider.tsx",
303
310
  "./src/components/showcase/ShowcaseViewer.tsx",
304
311
  "./src/components/showcase/ShowcaseViewerStoreProvider.tsx",
305
- "./src/components/workspace-review/WorkspaceReview.tsx",
306
- "./src/components/workspace-review/WorkspaceReviewPanel.tsx",
307
- "./src/components/workspace-review/WorkspaceReviewSideBar.tsx",
308
- "./src/components/workspace-review/WorkspaceReviewStoreProvider.tsx",
309
312
  "./src/components/workspace-setup/CreateProjectModal.tsx",
310
313
  "./src/components/workspace-setup/CreateWorkspaceModal.tsx",
311
314
  "./src/components/workspace-setup/ProjectSelectorUtils.tsx",
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReview.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAoLH,eAAO,MAAM,eAAe,wBAwE3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReview.js","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,O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AC,KAAK,CAC1C,gBAAgB,CAAC,mBAAmB,CACrC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEzD,OAAO,CACL,cAAK,SAAS,EAAC,WAAW,YACxB,eAAK,SAAS,EAAC,kBAAkB,aAC/B,KAAC,qBAAqB,IACpB,SAAS,EAAE,WAAW,CAAC,uBAAuB,GAC9C,EACD,WAAW,CAAC,aAAa,IAAI,CAC5B,8BACE,eAAK,SAAS,EAAC,wBAAwB,aACrC,eAAK,SAAS,EAAC,cAAc,aAC3B,cAAK,SAAS,EAAC,qBAAqB,YAClC,iBAEE,SAAS,EAAC,2FAA2F,EACrG,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,cAAc,CAAC,aAAa,CAAC,MAAM,CAAC,YAE7C,KAAC,aAAa,KAAG,IANZ,aAAa,CAAC,MAAM,CAOlB,GACL,EACN,cAAK,SAAS,EAAC,uBAAuB,YACpC,iBACE,SAAS,EAAC,oBAAoB,EAC9B,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,aAAa,YAEnB,KAAC,OAAO,KAAG,GACJ,GACL,IACF,EACN,cAAK,SAAS,EAAC,qCAAqC,YAClD,cAAK,SAAS,EAAC,2BAA2B,YACxC,KAAC,uBAAuB,KAAG,GACvB,GACF,IACF,EACN,KAAC,wBAAwB,KAAG,IAC3B,CACJ,IACG,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CACH,CACF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewPanel.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReviewPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqDH,eAAO,MAAM,oBAAoB;;CA2G/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewPanel.js","sourceRoot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EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;6BAC1D,YAED,cAAK,SAAS,EAAC,mDAAmD,YAC/D,eAAe,CAAC,QAAQ,GACrB,GACO,GACX,IACF,EACN,cAAK,SAAS,EAAC,gDAAgD,YAC7D,KAAC,cAAc,IAAC,mBAAmB,EAAE,eAAe,GAAI,GACpD,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewSideBar.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReviewSideBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAwBH,eAAO,MAAM,sBAAsB;;CAoNjC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewSideBar.js","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReviewSideBar.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACT,WAAW,EACX,SAAS,EACT,cAAc,EACd,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kFAAkF,CAAC;AACvH,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAmB,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,mBAA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AAE,EAAE,CAAC,CACb,KAAC,qBAAqB,IAEpB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,cAAc,CAAC,IAAI,CAAC,EAChC,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,IAHrB,IAAI,CAAC,GAAG,CAIb,CACH,CAAC,GACS,IACX,IACF,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewStoreProvider.d.ts","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReviewStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAS7F,eAAO,MAAM,4BAA4B;cAG7B,MAAM,SAAS;MACvB,MAAM,YAST,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO,oBAIxC,CAAC;AAEJ,eAAO,MAAM,wBAAwB,qBACjB,MAAM,EAAE,KACzB,MAAM,EAON,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewStoreProvider.js","sourceRoot":"","sources":["../../../src/components/workspace-review/WorkspaceReviewStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uDAAuD,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,2BAA2B,GAAG,aAAa,CAE/C,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,EAC3C,QAAQ,GAGT,EAAsB,EAAE;IACvB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9E,OAAO,CACL,KAAC,2BAA2B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAC/C,QAAQ,GAC4B,CACxC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAyB,EAAE,CAChE,oBAAoB,CAClB,UAAU,CAAC,2BAA2B,CAAC,EACvC,8CAA8C,CAC/C,CAAC;AAEJ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,gBAA0B,EAChB,EAAE,CACZ,SAAS,wBAAwB;IAC/B,OAAO,CACL,KAAC,4BAA4B,cAC3B,KAAC,gBAAgB,KAAG,GACS,CAChC,CAAC;AACJ,CAAC,CAAC"}
@@ -1,47 +0,0 @@
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 { type GeneratorFn } from '@finos/legend-shared';
17
- import type { EditorStore } from '../editor/EditorStore.js';
18
- import { Project, Review, type Patch } from '@finos/legend-server-sdlc';
19
- export declare class WorkspaceReviewStore {
20
- readonly editorStore: EditorStore;
21
- currentProjectId?: string | undefined;
22
- currentProject?: Project | undefined;
23
- currentPatch?: Patch | undefined;
24
- currentReviewId?: string | undefined;
25
- currentReview?: Review | undefined;
26
- isFetchingCurrentReview: boolean;
27
- isFetchingComparison: boolean;
28
- isApprovingReview: boolean;
29
- isClosingReview: boolean;
30
- isCommittingReview: boolean;
31
- isReopeningReview: boolean;
32
- constructor(editorStore: EditorStore);
33
- get projectId(): string;
34
- get patchReleaseVersionId(): string | undefined;
35
- get reviewId(): string;
36
- get review(): Review;
37
- setProjectIdAndReviewId(projectId: string, reviewId: string): void;
38
- initialize(): GeneratorFn<void>;
39
- fetchReviewComparison(): GeneratorFn<void>;
40
- fetchProject(): GeneratorFn<void>;
41
- getReview(): GeneratorFn<void>;
42
- approveReview(): GeneratorFn<void>;
43
- commitReview(): GeneratorFn<void>;
44
- reOpenReview(): GeneratorFn<void>;
45
- closeReview(): GeneratorFn<void>;
46
- }
47
- //# sourceMappingURL=WorkspaceReviewStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkspaceReviewStore.d.ts","sourceRoot":"","sources":["../../../src/stores/workspace-review/WorkspaceReviewStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIxE,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAElC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,uBAAuB,UAAS;IAChC,oBAAoB,UAAS;IAC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