@finos/legend-application-query 13.3.3 → 13.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryWebApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgHH,eAAO,MAAM,yBAAyB,WAC5B;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;CAW5B,CAAC"}
1
+ {"version":3,"file":"LegendQueryWebApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2HH,eAAO,MAAM,yBAAyB,WAC5B;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;CAW5B,CAAC"}
@@ -24,12 +24,20 @@ import { EditExistingQuerySetup } from './EditExistingQuerySetup.js';
24
24
  import { CreateMappingQuerySetup } from './CreateMappingQuerySetup.js';
25
25
  import { useEffect } from 'react';
26
26
  import { flowResult } from 'mobx';
27
+ import { guaranteeNonNullable, isNonNullable } from '@finos/legend-shared';
27
28
  const LegendQueryWebApplicationRouter = observer(() => {
28
29
  const applicationStore = useLegendQueryApplicationStore();
29
30
  const baseStore = useLegendQueryBaseStore();
30
31
  const extraApplicationPageEntries = applicationStore.pluginManager
31
32
  .getApplicationPlugins()
32
33
  .flatMap((plugin) => plugin.getExtraApplicationPageEntries?.() ?? []);
34
+ const setupRoot = applicationStore.pluginManager
35
+ .getApplicationPlugins()
36
+ .flatMap((plugin) => plugin.getExtraRootAppRedirectPath?.())
37
+ .filter(isNonNullable);
38
+ const rootRedirect = setupRoot.length === 1
39
+ ? generateExtensionUrlPattern(guaranteeNonNullable(setupRoot[0]))
40
+ : LEGEND_QUERY_ROUTE_PATTERN.SETUP;
33
41
  useEffect(() => {
34
42
  flowResult(baseStore.initialize()).catch(applicationStore.alertUnhandledError);
35
43
  }, [applicationStore, baseStore]);
@@ -47,7 +55,7 @@ const LegendQueryWebApplicationRouter = observer(() => {
47
55
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
48
56
  MappingQueryCreator }), extraApplicationPageEntries.map((entry) => (_jsx(Route, { exact: true, path: entry.addressPatterns.map(generateExtensionUrlPattern), component:
49
57
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
50
- entry.renderer }, entry.key))), _jsx(Redirect, { to: LEGEND_QUERY_ROUTE_PATTERN.SETUP })] })) }));
58
+ entry.renderer }, entry.key))), _jsx(Redirect, { to: rootRedirect })] })) }));
51
59
  });
52
60
  export const LegendQueryWebApplication = observer((props) => {
53
61
  const { baseUrl } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryWebApplication.js","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0BAA0B,EAC1B,QAAQ,EACR,KAAK,EACL,MAAM,EACN,2BAA2B,GAE5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,+BAA+B,GAAG,QAAQ,CAAC,GAAG,EAAE;IACpD,MAAM,gBAAgB,GAAG,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AAI,EAAE,0BAA0B,CAAC,yBAAyB,EAC1D,SAAS;oBACP,mEAAmE;oBACnE,mBAA0D,GAE5D,EACD,2BAA2B,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC1C,KAAC,KAAK,IAEJ,KAAK,EAAE,IAAI,EACX,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,2BAA2B,CAAC,EAC5D,SAAS;oBACP,mEAAmE;oBACnE,KAAK,CAAC,QAA+C,IALlD,KAAK,CAAC,GAAG,CAOd,CACH,CAAC,EACF,KAAC,QAAQ,IAAC,EAAE,EAAE,0BAA0B,CAAC,KAAK,GAAI,IAC3C,CACV,GACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAC/C,CAAC,KAA0B,EAAE,EAAE;IAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,KAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,YAC1C,KAAC,4BAA4B,cAC3B,KAAC,+BAA+B,KAAG,GACN,GACJ,CAC9B,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"LegendQueryWebApplication.js","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0BAA0B,EAC1B,QAAQ,EACR,KAAK,EACL,MAAM,EACN,2BAA2B,GAE5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,4BA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AC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAC/C,CAAC,KAA0B,EAAE,EAAE;IAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,KAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,YAC1C,KAAC,4BAA4B,cAC3B,KAAC,+BAA+B,KAAG,GACN,GACJ,CAC9B,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuzBH,eAAO,MAAM,WAAW;;CA2HtB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAS9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAmB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAe9B,CAAC"}
1
+ {"version":3,"file":"QueryEditor.d.ts","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAu2BH,eAAO,MAAM,WAAW;;CA2HtB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAS9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAmB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAe9B,CAAC"}
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
17
17
  import { Dialog, PanelLoadingIndicator, BlankPanelContent, DropdownMenu, MenuContent, MenuContentItem, CaretDownIcon, MenuIcon, MenuContentDivider, MenuContentItemIcon, CheckIcon, MenuContentItemLabel, Modal, ModalHeader, ModalBody, ModalFooter, ModalTitle, ModalFooterButton, ManageSearchIcon, LightBulbIcon, EmptyLightBulbIcon, SaveCurrIcon, SaveAsIcon, ExclamationTriangleIcon, PanelListItem, Button, clsx, ModalHeaderActions, TimesIcon, Panel, PanelFullContent, CustomSelectorInput, } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { Fragment, useEffect, useMemo, useRef, useState } from 'react';
20
- import { LEGEND_QUERY_QUERY_PARAM_TOKEN, LEGEND_QUERY_ROUTE_PATTERN_TOKEN, generateQuerySetupRoute, generateExistingQueryEditorRoute, } from '../__lib__/LegendQueryNavigation.js';
20
+ import { LEGEND_QUERY_QUERY_PARAM_TOKEN, LEGEND_QUERY_ROUTE_PATTERN_TOKEN, generateQuerySetupRoute, generateExistingQueryEditorRoute, generateMappingQueryCreatorRoute, } from '../__lib__/LegendQueryNavigation.js';
21
21
  import { createViewProjectHandler, createViewSDLCProjectHandler, ExistingQueryEditorStore, } from '../stores/QueryEditorStore.js';
22
22
  import { LEGEND_APPLICATION_COLOR_THEME, useApplicationStore, } from '@finos/legend-application';
23
23
  import { useParams } from '@finos/legend-application/browser';
@@ -26,7 +26,7 @@ import { flowResult } from 'mobx';
26
26
  import { useLegendQueryApplicationStore } from './LegendQueryFrameworkProvider.js';
27
27
  import { QueryBuilder, QueryBuilderNavigationBlocker, QueryLoaderDialog, QueryBuilderDiffViewPanel, } from '@finos/legend-query-builder';
28
28
  import { QUERY_DOCUMENTATION_KEY } from '../application/LegendQueryDocumentation.js';
29
- import { debounce } from '@finos/legend-shared';
29
+ import { debounce, guaranteeNonNullable, isNonNullable, } from '@finos/legend-shared';
30
30
  import { LegendQueryTelemetryHelper } from '../__lib__/LegendQueryTelemetryHelper.js';
31
31
  import { QUERY_EDITOR_TEST_ID } from '../__lib__/LegendQueryTesting.js';
32
32
  import { compareSemVerVersions, generateGAVCoordinates, } from '@finos/legend-storage';
@@ -213,6 +213,24 @@ const QueryEditorHeaderContent = observer((props) => {
213
213
  editorStore.updateState.showSaveModal();
214
214
  }
215
215
  };
216
+ const handleNewQuery = () => {
217
+ if (editorStore instanceof ExistingQueryEditorStore) {
218
+ const query = editorStore.query;
219
+ if (query) {
220
+ const paths = applicationStore.pluginManager
221
+ .getApplicationPlugins()
222
+ .flatMap((plugin) => plugin.getExtraNewQueryNavigationPaths?.() ?? [])
223
+ .map((callback) => callback(query, editorStore))
224
+ .filter(isNonNullable);
225
+ if (paths.length) {
226
+ editorStore.applicationStore.navigationService.navigator.goToLocation(guaranteeNonNullable(paths[0]));
227
+ }
228
+ else {
229
+ editorStore.applicationStore.navigationService.navigator.goToLocation(generateMappingQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, query.mapping.value.path, query.runtime.value.path));
230
+ }
231
+ }
232
+ }
233
+ };
216
234
  const toggleAssistant = () => applicationStore.assistantService.toggleAssistant();
217
235
  const queryDocEntry = applicationStore.documentationService.getDocEntry(QUERY_DOCUMENTATION_KEY.TUTORIAL_QUERY_BUILDER);
218
236
  const openQueryTutorial = () => {
@@ -244,7 +262,7 @@ const QueryEditorHeaderContent = observer((props) => {
244
262
  .getApplicationPlugins()
245
263
  .flatMap((plugin) => plugin.getExtraQueryEditorActionConfigurations?.(editorStore) ??
246
264
  [])
247
- .map((actionConfig) => (_jsx(Fragment, { children: actionConfig.renderer(editorStore, queryBuilderState) }, actionConfig.key))), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: openQueryLoader, title: "Load query...", children: [_jsx(ManageSearchIcon, { className: "query-editor__header__action__icon--load" }), _jsx("div", { className: "query-editor__header__action__label", children: "Load Query" })] }), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: !isExistingQuery || editorStore.isPerformingBlockingAction, onClick: openSaveQueryModal, title: "Save query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save" })] }), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleQuerySaveAs, title: "Save as new query", children: [_jsx(SaveAsIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save As..." })] }), _jsxs(DropdownMenu, { className: "query-editor__header__action btn--dark", disabled: editorStore.isViewProjectActionDisabled, content: _jsxs(MenuContent, { children: [extraHelpMenuContentItems, queryDocEntry && (_jsxs(MenuContentItem, { onClick: openQueryTutorial, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { children: "Open Documentation" })] })), _jsxs(MenuContentItem, { onClick: toggleAssistant, children: [_jsx(MenuContentItemIcon, { children: !applicationStore.assistantService.isHidden ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Virtual Assistant" })] })] }), children: [_jsx("div", { className: "query-editor__header__action__label", title: "See more options", children: "Help..." }), _jsx(CaretDownIcon, { className: "query-editor__header__action__dropdown-trigger" })] }), editorStore.queryLoaderState.isQueryLoaderDialogOpen && (_jsx(QueryLoaderDialog, { queryLoaderState: editorStore.queryLoaderState, title: "Load query" })), _jsx("button", { title: "Toggle light/dark mode", onClick: TEMPORARY__toggleLightDarkMode, className: "query-editor__header__action query-editor__header__action__theme-toggler", children: applicationStore.layoutService
265
+ .map((actionConfig) => (_jsx(Fragment, { children: actionConfig.renderer(editorStore, queryBuilderState) }, actionConfig.key))), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: openQueryLoader, title: "Load query...", children: [_jsx(ManageSearchIcon, { className: "query-editor__header__action__icon--load" }), _jsx("div", { className: "query-editor__header__action__label", children: "Load Query" })] }), isExistingQuery && (_jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleNewQuery, title: "New query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "New Query" })] })), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: !isExistingQuery || editorStore.isPerformingBlockingAction, onClick: openSaveQueryModal, title: "Save query", children: [_jsx(SaveCurrIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save" })] }), _jsxs(Button, { className: "query-editor__header__action btn--dark", disabled: editorStore.isPerformingBlockingAction, onClick: handleQuerySaveAs, title: "Save as new query", children: [_jsx(SaveAsIcon, {}), _jsx("div", { className: "query-editor__header__action__label", children: "Save As..." })] }), _jsxs(DropdownMenu, { className: "query-editor__header__action btn--dark", disabled: editorStore.isViewProjectActionDisabled, content: _jsxs(MenuContent, { children: [extraHelpMenuContentItems, queryDocEntry && (_jsxs(MenuContentItem, { onClick: openQueryTutorial, children: [_jsx(MenuContentItemIcon, { children: null }), _jsx(MenuContentItemLabel, { children: "Open Documentation" })] })), _jsxs(MenuContentItem, { onClick: toggleAssistant, children: [_jsx(MenuContentItemIcon, { children: !applicationStore.assistantService.isHidden ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Virtual Assistant" })] })] }), children: [_jsx("div", { className: "query-editor__header__action__label", title: "See more options", children: "Help..." }), _jsx(CaretDownIcon, { className: "query-editor__header__action__dropdown-trigger" })] }), editorStore.queryLoaderState.isQueryLoaderDialogOpen && (_jsx(QueryLoaderDialog, { queryLoaderState: editorStore.queryLoaderState, title: "Load query" })), _jsx("button", { title: "Toggle light/dark mode", onClick: TEMPORARY__toggleLightDarkMode, className: "query-editor__header__action query-editor__header__action__theme-toggler", children: applicationStore.layoutService
248
266
  .TEMPORARY__isLightColorThemeEnabled ? (_jsx(_Fragment, { children: _jsx(LightBulbIcon, { className: "query-editor__header__action__icon--bulb--light" }) })) : (_jsx(_Fragment, { children: _jsx(EmptyLightBulbIcon, { className: "query-editor__header__action__icon--bulb--dark" }) })) }), _jsxs(DropdownMenu, { className: "query-editor__header__action btn--medium", disabled: editorStore.isViewProjectActionDisabled, content: _jsxs(MenuContent, { children: [isExistingQuery && (_jsx(MenuContentItem, { className: "query-editor__header__action__options", onClick: renameQuery, disabled: !isExistingQuery, children: "Rename Query" })), isExistingQuery && (_jsx(MenuContentItem, { className: "query-editor__header__action__options", onClick: showQueryInfo, disabled: !isExistingQuery, children: "Get Query Info" })), _jsx(MenuContentItem, { className: "query-editor__header__action__options", disabled: editorStore.isViewProjectActionDisabled, onClick: viewProject, children: "Go to Project" }), _jsx(MenuContentItem, { className: "query-editor__header__action__options", disabled: editorStore.isViewProjectActionDisabled, onClick: viewSDLCProject, children: "Go to SDLC project" })] }), children: [_jsx("div", { className: "query-editor__header__action__label", title: "See more options", children: "More Actions..." }), _jsx(CaretDownIcon, { className: "query-editor__header__action__dropdown-trigger" })] }), editorStore.queryCreatorState.showCreateModal && (_jsx(CreateQueryDialog, {})), isExistingQuery &&
249
267
  editorStore.updateState.showQueryInfo &&
250
268
  editorStore.query && (_jsx(QueryEditorExistingQueryInfoModal, { existingEditorStore: editorStore, query: editorStore.query }))] })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"QueryEditor.js","sourceRoot":"","sources":["../../src/components/QueryEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,uBAAuB,EACvB,aAAa,EACb,MAAM,EACN,IAAI,EACJ,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAIL,8BAA8B,EAC9B,gCAAgC,EAChC,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,GAC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AAG,QAAQ,CAAC,GAAG,EAAE;IAC/C,MAAM,MAAM,GAAG,SAAS,EAAiC,CAAC;IAC1D,MAAM,GAAG,GAAG,MAAM,CAAC,gCAAgC,CAAC,GAAG,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,MAAM,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAC1E,MAAM,WAAW,GAAG,MAAM,CAAC,gCAAgC,CAAC,YAAY,CAAC,CAAC;IAE1E,OAAO,CACL,KAAC,gCAAgC,IAC/B,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,YAExB,KAAC,WAAW,KAAG,GACkB,CACpC,CAAC;AACJ,CAAC,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-query v13.3.3
1
+ /** @license @finos/legend-application-query v13.4.0
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.3.3",
3
+ "version": "13.4.0",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -40,6 +40,7 @@ export type QuerySetupActionConfiguration = {
40
40
  action: (setupStore: QuerySetupLandingPageStore) => Promise<void>;
41
41
  };
42
42
  export type ExistingQueryEditorStateBuilder = (query: Query, editorStore: ExistingQueryEditorStore) => Promise<QueryBuilderState | undefined>;
43
+ export type NewQueryNavigationPath = (query: Query, editorStore: ExistingQueryEditorStore) => string | undefined;
43
44
  export type QueryEditorActionConfiguration = {
44
45
  key: string;
45
46
  renderer: (editorStore: QueryEditorStore, queryBuilderState: QueryBuilderState) => React.ReactNode | undefined;
@@ -58,6 +59,10 @@ export declare abstract class LegendQueryApplicationPlugin extends LegendApplica
58
59
  */
59
60
  private readonly _$nominalTypeBrand;
60
61
  install(pluginManager: LegendQueryPluginManager): void;
62
+ /**
63
+ * Get Redirect path for root application path
64
+ */
65
+ getExtraRootAppRedirectPath?(): string | undefined;
61
66
  /**
62
67
  * Get the list of actions (configurations) for query setup.
63
68
  */
@@ -78,5 +83,9 @@ export declare abstract class LegendQueryApplicationPlugin extends LegendApplica
78
83
  * Get the list of query headers
79
84
  */
80
85
  getExtraQueryHeaders?(): ((editorStore: QueryEditorStore) => React.ReactNode | undefined)[];
86
+ /**
87
+ * Get list of new query navigation paths
88
+ */
89
+ getExtraNewQueryNavigationPaths?(): NewQueryNavigationPath[];
81
90
  }
82
91
  //# sourceMappingURL=LegendQueryApplicationPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendQueryApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,EACV,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAEvE,oBAAY,mBAAmB;IAC7B,iBAAiB,sBAAsB;CACxC;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KA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cG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAWpE,MAAM,CAAN,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,8DAAuC,CAAA;AACzC,CAAC,EAFW,mBAAmB,KAAnB,mBAAmB,QAE9B;AA6CD,MAAM,OAAgB,4BAA6B,SAAQ,uBAAuB;IAChF;;;OAGG;IACc,kBAAkB,CAAkC;IAErE,OAAO,CAAC,aAAuC;QAC7C,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CA8BF"}
1
+ {"version":3,"file":"LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendQueryApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAWpE,MAAM,CAAN,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,8DAAuC,CAAA;AACzC,CAAC,EAFW,mBAAmB,KAAnB,mBAAmB,QAE9B;AAkDD,MAAM,OAAgB,4BAA6B,SAAQ,uBAAuB;IAChF;;;OAGG;IACc,kBAAkB,CAAkC;IAErE,OAAO,CAAC,aAAuC;QAC7C,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CAwCF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.3.3",
3
+ "version": "13.4.0",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -39,6 +39,7 @@ import { EditExistingQuerySetup } from './EditExistingQuerySetup.js';
39
39
  import { CreateMappingQuerySetup } from './CreateMappingQuerySetup.js';
40
40
  import { useEffect } from 'react';
41
41
  import { flowResult } from 'mobx';
42
+ import { guaranteeNonNullable, isNonNullable } from '@finos/legend-shared';
42
43
 
43
44
  const LegendQueryWebApplicationRouter = observer(() => {
44
45
  const applicationStore = useLegendQueryApplicationStore();
@@ -48,6 +49,16 @@ const LegendQueryWebApplicationRouter = observer(() => {
48
49
  .getApplicationPlugins()
49
50
  .flatMap((plugin) => plugin.getExtraApplicationPageEntries?.() ?? []);
50
51
 
52
+ const setupRoot = applicationStore.pluginManager
53
+ .getApplicationPlugins()
54
+ .flatMap((plugin) => plugin.getExtraRootAppRedirectPath?.())
55
+ .filter(isNonNullable);
56
+
57
+ const rootRedirect =
58
+ setupRoot.length === 1
59
+ ? generateExtensionUrlPattern(guaranteeNonNullable(setupRoot[0]))
60
+ : LEGEND_QUERY_ROUTE_PATTERN.SETUP;
61
+
51
62
  useEffect(() => {
52
63
  flowResult(baseStore.initialize()).catch(
53
64
  applicationStore.alertUnhandledError,
@@ -117,7 +128,7 @@ const LegendQueryWebApplicationRouter = observer(() => {
117
128
  }
118
129
  />
119
130
  ))}
120
- <Redirect to={LEGEND_QUERY_ROUTE_PATTERN.SETUP} />
131
+ <Redirect to={rootRedirect} />
121
132
  </Switch>
122
133
  )}
123
134
  </div>
@@ -58,6 +58,7 @@ import {
58
58
  LEGEND_QUERY_ROUTE_PATTERN_TOKEN,
59
59
  generateQuerySetupRoute,
60
60
  generateExistingQueryEditorRoute,
61
+ generateMappingQueryCreatorRoute,
61
62
  } from '../__lib__/LegendQueryNavigation.js';
62
63
  import {
63
64
  createViewProjectHandler,
@@ -85,7 +86,11 @@ import {
85
86
  type QueryBuilderState,
86
87
  } from '@finos/legend-query-builder';
87
88
  import { QUERY_DOCUMENTATION_KEY } from '../application/LegendQueryDocumentation.js';
88
- import { debounce } from '@finos/legend-shared';
89
+ import {
90
+ debounce,
91
+ guaranteeNonNullable,
92
+ isNonNullable,
93
+ } from '@finos/legend-shared';
89
94
  import { LegendQueryTelemetryHelper } from '../__lib__/LegendQueryTelemetryHelper.js';
90
95
  import { QUERY_EDITOR_TEST_ID } from '../__lib__/LegendQueryTesting.js';
91
96
  import {
@@ -593,6 +598,36 @@ const QueryEditorHeaderContent = observer(
593
598
  }
594
599
  };
595
600
 
601
+ const handleNewQuery = (): void => {
602
+ if (editorStore instanceof ExistingQueryEditorStore) {
603
+ const query = editorStore.query;
604
+ if (query) {
605
+ const paths = applicationStore.pluginManager
606
+ .getApplicationPlugins()
607
+ .flatMap(
608
+ (plugin) => plugin.getExtraNewQueryNavigationPaths?.() ?? [],
609
+ )
610
+ .map((callback) => callback(query, editorStore))
611
+ .filter(isNonNullable);
612
+ if (paths.length) {
613
+ editorStore.applicationStore.navigationService.navigator.goToLocation(
614
+ guaranteeNonNullable(paths[0]),
615
+ );
616
+ } else {
617
+ editorStore.applicationStore.navigationService.navigator.goToLocation(
618
+ generateMappingQueryCreatorRoute(
619
+ query.groupId,
620
+ query.artifactId,
621
+ query.versionId,
622
+ query.mapping.value.path,
623
+ query.runtime.value.path,
624
+ ),
625
+ );
626
+ }
627
+ }
628
+ }
629
+ };
630
+
596
631
  const toggleAssistant = (): void =>
597
632
  applicationStore.assistantService.toggleAssistant();
598
633
 
@@ -688,6 +723,19 @@ const QueryEditorHeaderContent = observer(
688
723
  </div>
689
724
  </Button>
690
725
 
726
+ {isExistingQuery && (
727
+ <Button
728
+ className="query-editor__header__action btn--dark"
729
+ disabled={editorStore.isPerformingBlockingAction}
730
+ onClick={handleNewQuery}
731
+ title="New query"
732
+ >
733
+ <SaveCurrIcon />
734
+ <div className="query-editor__header__action__label">
735
+ New Query
736
+ </div>
737
+ </Button>
738
+ )}
691
739
  <Button
692
740
  className="query-editor__header__action btn--dark"
693
741
  disabled={
@@ -56,6 +56,11 @@ export type ExistingQueryEditorStateBuilder = (
56
56
  editorStore: ExistingQueryEditorStore,
57
57
  ) => Promise<QueryBuilderState | undefined>;
58
58
 
59
+ export type NewQueryNavigationPath = (
60
+ query: Query,
61
+ editorStore: ExistingQueryEditorStore,
62
+ ) => string | undefined;
63
+
59
64
  export type QueryEditorActionConfiguration = {
60
65
  key: string;
61
66
  renderer: (
@@ -83,6 +88,11 @@ export abstract class LegendQueryApplicationPlugin extends LegendApplicationPlug
83
88
  pluginManager.registerApplicationPlugin(this);
84
89
  }
85
90
 
91
+ /**
92
+ * Get Redirect path for root application path
93
+ */
94
+ getExtraRootAppRedirectPath?(): string | undefined;
95
+
86
96
  /**
87
97
  * Get the list of actions (configurations) for query setup.
88
98
  */
@@ -111,4 +121,9 @@ export abstract class LegendQueryApplicationPlugin extends LegendApplicationPlug
111
121
  getExtraQueryHeaders?(): ((
112
122
  editorStore: QueryEditorStore,
113
123
  ) => React.ReactNode | undefined)[];
124
+
125
+ /**
126
+ * Get list of new query navigation paths
127
+ */
128
+ getExtraNewQueryNavigationPaths?(): NewQueryNavigationPath[];
114
129
  }