@finos/legend-application-studio 28.18.43 → 28.18.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.d.ts +23 -0
  2. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.d.ts.map +1 -0
  3. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.js +34 -0
  4. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.js.map +1 -0
  5. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
  6. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +8 -102
  7. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
  8. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
  9. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +4 -13
  10. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/package.json +1 -1
  13. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts +1 -2
  14. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts.map +1 -1
  15. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js +1 -5
  16. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js.map +1 -1
  17. package/package.json +6 -6
  18. package/src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx +97 -0
  19. package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +5 -349
  20. package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +7 -42
  21. package/src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts +1 -5
  22. package/tsconfig.json +1 -0
@@ -0,0 +1,23 @@
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 FunctionActivator } from '@finos/legend-graph';
17
+ export declare const ActivatorOwnershipForm: ((props: {
18
+ activator: FunctionActivator;
19
+ isReadOnly: boolean;
20
+ }) => import("react/jsx-runtime").JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=ActivatorFormComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivatorFormComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAQ7B,eAAO,MAAM,sBAAsB,WACzB;IAAE,SAAS,EAAE,iBAAiB,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CAkE9D,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ExclamationCircleIcon } from '@finos/legend-art';
18
+ import { DeploymentOwner, UserList, } from '@finos/legend-graph';
19
+ import { observer } from 'mobx-react-lite';
20
+ import { activator_setDeploymentOwner, activator_setOwnership, } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
21
+ import { useState } from 'react';
22
+ export const ActivatorOwnershipForm = observer((props) => {
23
+ const { activator, isReadOnly } = props;
24
+ const ownership = activator.ownership;
25
+ const [ownerInputValue, setOwner] = useState(ownership instanceof DeploymentOwner ? ownership.id : '');
26
+ const updateDeploymentIdentifier = (event) => {
27
+ if (!isReadOnly && ownership instanceof DeploymentOwner) {
28
+ setOwner(event.target.value);
29
+ activator_setDeploymentOwner(ownership, event.target.value);
30
+ }
31
+ };
32
+ return (_jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }) }), ownership instanceof DeploymentOwner && (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__prompt", children: "Provide a deployment identifier that will own the Lambda." }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: isReadOnly, value: ownerInputValue, onChange: updateDeploymentIdentifier })] })), ownership instanceof UserList && (_jsxs("div", { className: "project-configuration-editor__project__structure__version", children: [_jsxs("div", { className: "project-configuration-editor__project__structure__version__label", children: [_jsx("div", { className: "project-configuration-editor__project__structure__version__label__status", children: _jsx(ExclamationCircleIcon, { className: "project-configuration-editor__project__structure__version__label__status--outdated" }) }), _jsx("div", { className: "project-configuration-editor__project__structure__version__label__text", children: `User List Ownership has been deprecated` })] }), _jsx("button", { className: "project-configuration-editor__project__structure__version__update-btn", disabled: isReadOnly, onClick: () => activator_setOwnership(activator, new DeploymentOwner('', activator)), tabIndex: -1, title: `Click to Change to Deployment`, children: "Change to Deployment" })] }))] }));
33
+ });
34
+ //# sourceMappingURL=ActivatorFormComponents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivatorFormComponents.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,QAAQ,GAET,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gFAAgF,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAC5C,CAAC,KAA4D,EAAE,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IAEtC,MAAM,CAAC,eAAe,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAC1C,SAAS,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CACzD,CAAC;IACF,MAAM,0BAA0B,GAE5B,CAAC,KAAK,EAAE,EAAE;QACZ,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,eAAe,EAAE,CAAC;YACxD,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC7B,4BAA4B,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,0BACE,cAAK,SAAS,EAAC,+BAA+B,YAC5C,cAAK,SAAS,EAAC,8CAA8C,0BAEvD,GACF,EACL,SAAS,YAAY,eAAe,IAAI,CACvC,eAAK,SAAS,EAAC,+BAA+B,aAC5C,cAAK,SAAS,EAAC,+CAA+C,0EAExD,EACN,gBACE,SAAS,EAAC,sCAAsC,EAChD,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,0BAA0B,GACpC,IACE,CACP,EACA,SAAS,YAAY,QAAQ,IAAI,CAChC,eAAK,SAAS,EAAC,2DAA2D,aACxE,eAAK,SAAS,EAAC,kEAAkE,aAC/E,cAAK,SAAS,EAAC,0EAA0E,YACvF,KAAC,qBAAqB,IAAC,SAAS,EAAC,oFAAoF,GAAG,GACpH,EACN,cAAK,SAAS,EAAC,wEAAwE,YACpF,yCAAyC,GACtC,IACF,EACN,iBACE,SAAS,EAAC,uEAAuE,EACjF,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,GAAG,EAAE,CACZ,sBAAsB,CACpB,SAAS,EACT,IAAI,eAAe,CAAC,EAAE,EAAE,SAAS,CAAC,CACnC,EAEH,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,+BAA+B,qCAG/B,IACL,CACP,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkFH,eAAO,MAAM,oCAAoC;;CAyuB/C,CAAC"}
1
+ {"version":3,"file":"HostedServiceFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmEH,eAAO,MAAM,oCAAoC;;CAga/C,CAAC"}
@@ -14,17 +14,17 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { Panel, PanelHeader, PanelContent, PanelForm, PURE_FunctionIcon, LongArrowRightIcon, PanelLoadingIndicator, PanelFormBooleanField, PanelFormValidatedTextField, TimesIcon, CustomSelectorInput, PencilIcon, ErrorIcon, clsx, PlusIcon, } from '@finos/legend-art';
18
- import { DeploymentOwner, Profile, StereotypeExplicitReference, UserList, generateFunctionPrettyName, stub_Profile, stub_Stereotype, stub_Tag, stub_TaggedValue, validate_ServicePattern, } from '@finos/legend-graph';
17
+ import { Panel, PanelHeader, PanelContent, PanelForm, PURE_FunctionIcon, LongArrowRightIcon, PanelLoadingIndicator, PanelFormBooleanField, PanelFormValidatedTextField, TimesIcon, clsx, PlusIcon, } from '@finos/legend-art';
18
+ import { Profile, StereotypeExplicitReference, generateFunctionPrettyName, stub_Profile, stub_Stereotype, stub_Tag, stub_TaggedValue, validate_ServicePattern, } from '@finos/legend-graph';
19
19
  import { observer } from 'mobx-react-lite';
20
20
  import { useApplicationStore } from '@finos/legend-application';
21
21
  import { useEditorStore } from '../../EditorStoreProvider.js';
22
- import { HostedServiceFunctionActivatorEditorState, OWNERSHIP_OPTIONS, MINIMUM_HOSTED_SERVICE_OWNERS, ACTIVATOR_EDITOR_TAB, } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
23
- import { hostedService_setAutoActivateUpdates, hostedService_setDocumentation, hostedService_setPattern, hostedService_removePatternParameter, hostedService_setStoreModel, hostedService_setGenerateLineage, activator_setDeploymentOwner, activator_updateUserOwnership, activator_deleteValueFromUserOwnership, activator_addUserOwner, } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
24
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
25
- import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
26
- import { debounce, prettyCONSTName } from '@finos/legend-shared';
22
+ import { HostedServiceFunctionActivatorEditorState, ACTIVATOR_EDITOR_TAB, } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
23
+ import { hostedService_setAutoActivateUpdates, hostedService_setDocumentation, hostedService_setPattern, hostedService_removePatternParameter, hostedService_setStoreModel, } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
24
+ import { useCallback, useEffect, useRef, useState } from 'react';
25
+ import { prettyCONSTName } from '@finos/legend-shared';
27
26
  import { flowResult } from 'mobx';
27
+ import { ActivatorOwnershipForm } from './ActivatorFormComponents.js';
28
28
  import { annotatedElement_addStereotype, annotatedElement_addTaggedValue, annotatedElement_deleteStereotype, annotatedElement_deleteTaggedValue, } from '../../../../stores/graph-modifier/DomainGraphModifierHelper.js';
29
29
  import { CORE_DND_TYPE, } from '../../../../stores/editor/utils/DnDUtils.js';
30
30
  import { useDrop } from 'react-dnd';
@@ -87,7 +87,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
87
87
  const _deleteTaggedValue = (val) => () => annotatedElement_deleteTaggedValue(activatorElement, val);
88
88
  const changeTab = (tab) => () => editorState.setSelectedTab(tab);
89
89
  const activator = editorState.activator;
90
- const ownership = activator.ownership;
91
90
  const visitFunction = () => editorState.editorStore.graphEditorMode.openElement(activator.function.value);
92
91
  const validate = () => {
93
92
  flowResult(editorState.validate()).catch(applicationStore.alertUnhandledError);
@@ -103,9 +102,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
103
102
  const toggleUseStoreModel = () => {
104
103
  hostedService_setStoreModel(activator, !activator.storeModel);
105
104
  };
106
- const toggleGenerateLineage = () => {
107
- hostedService_setGenerateLineage(activator, !activator.generateLineage);
108
- };
109
105
  const toggleAutoActivateUpdates = () => {
110
106
  hostedService_setAutoActivateUpdates(activator, !activator.autoActivateUpdates);
111
107
  };
@@ -115,88 +111,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
115
111
  ? patternValidationResult.messages[0]
116
112
  : undefined;
117
113
  };
118
- //Ownership
119
- const [showOwnerEditInput, setShowOwnerEditInput] = useState(false);
120
- const [ownerInputValue, setOwnerInputValue] = useState('');
121
- const [searchText, setSearchText] = useState('');
122
- const [userOptions, setUserOptions] = useState([]);
123
- const [isLoadingUsers, setIsLoadingUsers] = useState(false);
124
- const [ownerInputs, setOwnerInputs] = useState([]);
125
- const showAddOwnerInput = () => setShowOwnerEditInput(true);
126
- const onOwnershipChange = (val) => {
127
- if (val) {
128
- editorState.setSelectedOwnership(val);
129
- }
130
- };
131
- const updateDeploymentIdentifier = (event) => {
132
- if (!isReadOnly && ownership instanceof DeploymentOwner) {
133
- activator_setDeploymentOwner(ownership, event.target.value);
134
- }
135
- };
136
- const changeUserOwnerInputValue = (event) => setOwnerInputValue(event.target.value);
137
- const updateUser = (idx) => () => {
138
- if (ownerInputValue &&
139
- ownership instanceof UserList &&
140
- !ownership.users.includes(ownerInputValue)) {
141
- activator_updateUserOwnership(ownership, ownerInputValue, idx);
142
- }
143
- };
144
- const showEditOwnerInput = (value, idx) => () => {
145
- setOwnerInputValue(value);
146
- setShowOwnerEditInput(idx);
147
- };
148
- const hideAddOrEditOwnerInput = () => {
149
- setShowOwnerEditInput(false);
150
- setOwnerInputValue('');
151
- };
152
- const deleteUser = (idx) => () => {
153
- if (!isReadOnly && ownership instanceof UserList) {
154
- activator_deleteValueFromUserOwnership(ownership, idx);
155
- if (typeof showOwnerEditInput === 'number' &&
156
- showOwnerEditInput > idx) {
157
- setShowOwnerEditInput(showOwnerEditInput - 1);
158
- }
159
- }
160
- };
161
- const debouncedSearchUsers = useMemo(() => debounce((input) => {
162
- setIsLoadingUsers(true);
163
- flowResult(editorState.searchUsers(input))
164
- .then((users) => setUserOptions(users.map((u) => ({
165
- value: u.userId,
166
- label: u.userId,
167
- }))))
168
- .then(() => setIsLoadingUsers(false))
169
- .catch(editorState.editorStore.applicationStore.alertUnhandledError);
170
- }, 500), [editorState]);
171
- const onSearchTextChange = (value) => {
172
- if (value !== searchText) {
173
- setSearchText(value);
174
- debouncedSearchUsers.cancel();
175
- if (value.length >= 3) {
176
- debouncedSearchUsers(value);
177
- }
178
- else if (value.length === 0) {
179
- setUserOptions([]);
180
- setIsLoadingUsers(false);
181
- }
182
- }
183
- };
184
- const onUserOptionChange = (options) => {
185
- setOwnerInputs(options.map((op) => op.label));
186
- setUserOptions([]);
187
- debouncedSearchUsers.cancel();
188
- setIsLoadingUsers(false);
189
- };
190
- const addUser = () => {
191
- ownerInputs.forEach((value) => {
192
- if (value &&
193
- ownership instanceof UserList &&
194
- !ownership.users.includes(value)) {
195
- activator_addUserOwner(ownership, value);
196
- }
197
- });
198
- hideAddOrEditOwnerInput();
199
- };
200
114
  //Pattern
201
115
  const patternRef = useRef(null);
202
116
  const [pattern, setPattern] = useState(activator.pattern);
@@ -221,15 +135,7 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
221
135
  activator.patternParameters.map((parameter) => (_jsxs("div", { className: "service-editor__parameter", children: [_jsx("div", { className: "service-editor__parameter__text", children: parameter }), _jsx("div", { className: "service-editor__parameter__actions", children: _jsx("button", { className: "service-editor__parameter__action", disabled: isReadOnly, onClick: removePatternParameter(parameter), title: "Remove parameter", tabIndex: -1, children: _jsx(TimesIcon, {}) }) })] }, parameter)))] })] }) }), _jsxs(PanelForm, { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Function" }) }), _jsx("div", { className: "hosted-service-function-activator-editor__configuration__items", children: _jsxs("div", { className: "hosted-service-function-activator-editor__configuration__item", children: [_jsx("div", { className: "btn--sm hosted-service-function-activator-editor__configuration__item__label", children: _jsx(PURE_FunctionIcon, {}) }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: true, value: generateFunctionPrettyName(activator.function.value, {
222
136
  fullPath: true,
223
137
  spacing: false,
224
- }) }), _jsx("button", { className: "btn--dark btn--sm hosted-service-function-activator-editor__configuration__item__btn", onClick: visitFunction, tabIndex: -1, title: "See Function", children: _jsx(LongArrowRightIcon, {}) })] }) })] }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Documentation" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of the service's functionalities and usage` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.documentation, onChange: changeDocumentation })] }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.autoActivateUpdates, name: "Auto Activate Updates", prompt: "Specifies if the new generation should be automatically activated;\n only valid when latest revision is selected upon service\n registration", update: toggleAutoActivateUpdates }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.storeModel, name: "Store Model", prompt: "Use Store Model (slower)", update: toggleUseStoreModel }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.generateLineage, name: "Generate Lineage", prompt: "Generate Lineage (slower)", update: toggleGenerateLineage }) }), _jsx(PanelForm, { children: _jsxs("div", { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The ownership model you want to use to control your service." }), _jsx(CustomSelectorInput, { options: OWNERSHIP_OPTIONS, onChange: onOwnershipChange, value: editorState.selectedOwnership, darkMode: !applicationStore.layoutService
225
- .TEMPORARY__isLightColorThemeEnabled })] }), ownership instanceof DeploymentOwner && (_jsx("div", { className: "panel__content__form__section", children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Deployment Identifier :" }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: isReadOnly, value: ownership.id, onChange: updateDeploymentIdentifier })] }) })), ownership instanceof UserList && (_jsx("div", { className: "panel__content__form__section", children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Users :" }), _jsxs("div", { className: "panel__content__form__section__list", children: [_jsxs("div", { className: "panel__content__form__section__list__items", "data-testid": LEGEND_STUDIO_TEST_ID.PANEL_CONTENT_FORM_SECTION_LIST_ITEMS, children: [ownership.users.map((value, idx) => (_jsx("div", { className: showOwnerEditInput === idx
226
- ? 'panel__content__form__section__list__new-item'
227
- : 'panel__content__form__section__list__item', children: showOwnerEditInput === idx ? (_jsxs(_Fragment, { children: [_jsx("input", { className: "panel__content__form__section__input panel__content__form__section__list__new-item__input", spellCheck: false, disabled: isReadOnly, value: ownerInputValue, onChange: changeUserOwnerInputValue }), _jsxs("div", { className: "panel__content__form__section__list__new-item__actions", children: [_jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: isReadOnly ||
228
- ownership.users.includes(ownerInputValue), onClick: updateUser(idx), tabIndex: -1, children: "Save" }), _jsx("button", { className: "panel__content__form__section__list__new-item__cancel-btn btn btn--dark", disabled: isReadOnly, onClick: hideAddOrEditOwnerInput, tabIndex: -1, children: "Cancel" })] })] })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "panel__content__form__section__list__item__value", children: value }), _jsxs("div", { className: "panel__content__form__section__list__item__actions", children: [_jsx("button", { className: "panel__content__form__section__list__item__edit-btn", disabled: isReadOnly, onClick: showEditOwnerInput(value, idx), tabIndex: -1, children: _jsx(PencilIcon, {}) }), _jsx("button", { className: "panel__content__form__section__list__item__remove-btn", disabled: isReadOnly, onClick: deleteUser(idx), tabIndex: -1, children: _jsx(TimesIcon, {}) })] })] })) }, value))), showOwnerEditInput === true && (_jsxs("div", { className: "panel__content__form__section__list__new-item", children: [_jsx(CustomSelectorInput, { className: "service-editor__owner__selector", placeholder: "Enter an owner...", inputValue: searchText, options: userOptions, allowCreating: true, isLoading: isLoadingUsers, disabled: isReadOnly, darkMode: !applicationStore.layoutService
229
- .TEMPORARY__isLightColorThemeEnabled, onInputChange: onSearchTextChange, onChange: onUserOptionChange, isMulti: true }), _jsxs("div", { className: "panel__content__form__section__list__new-item__actions", children: [_jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark service-editor__owner__action", disabled: isReadOnly ||
230
- ownerInputs.some((i) => ownership.users.includes(i)), onClick: addUser, tabIndex: -1, children: "Save" }), _jsx("button", { className: "panel__content__form__section__list__new-item__cancel-btn btn btn--dark service-editor__owner__action", disabled: isReadOnly, onClick: hideAddOrEditOwnerInput, tabIndex: -1, children: "Cancel" })] })] }))] }), ownership.users.length <
231
- MINIMUM_HOSTED_SERVICE_OWNERS &&
232
- showOwnerEditInput !== true && (_jsxs("div", { className: "service-editor__owner__validation", title: `${MINIMUM_HOSTED_SERVICE_OWNERS} owners required`, children: [_jsx(ErrorIcon, {}), _jsxs("div", { className: "service-editor__owner__validation-label", children: ["Service requires at least", ' ', MINIMUM_HOSTED_SERVICE_OWNERS, " owners"] })] })), showOwnerEditInput !== true && (_jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: isReadOnly, onClick: showAddOwnerInput, tabIndex: -1, title: "Add owner", children: "Add Value" }) }))] })] }) }))] }) })] })), selectedTab === ACTIVATOR_EDITOR_TAB.TAGGED_VALUES && (_jsxs("div", { ref: dropTaggedValueRef, className: clsx('panel__content__lists', {
138
+ }) }), _jsx("button", { className: "btn--dark btn--sm hosted-service-function-activator-editor__configuration__item__btn", onClick: visitFunction, tabIndex: -1, title: "See Function", children: _jsx(LongArrowRightIcon, {}) })] }) })] }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Documentation" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of the service's functionalities and usage` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.documentation, onChange: changeDocumentation })] }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.autoActivateUpdates, name: "Auto Activate Updates", prompt: "Specifies if the new generation should be automatically activated;\n only valid when latest revision is selected upon service\n registration", update: toggleAutoActivateUpdates }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.storeModel, name: "Store Model", prompt: "Use Store Model (slower)", update: toggleUseStoreModel }) }), _jsx(PanelForm, { children: _jsx(ActivatorOwnershipForm, { activator: activator, isReadOnly: isReadOnly }) })] })), selectedTab === ACTIVATOR_EDITOR_TAB.TAGGED_VALUES && (_jsxs("div", { ref: dropTaggedValueRef, className: clsx('panel__content__lists', {
233
139
  'panel__content__lists--dnd-over': isTaggedValueDragOver && !isReadOnly,
234
140
  }), children: [_jsx(TaggedValueDragPreviewLayer, {}), activatorElement.taggedValues.map((taggedValue) => (_jsx(TaggedValueEditor, { annotatedElement: activatorElement, taggedValue: taggedValue, deleteValue: _deleteTaggedValue(taggedValue), isReadOnly: isReadOnly, darkTheme: true }, taggedValue._UUID)))] })), selectedTab === ACTIVATOR_EDITOR_TAB.STEREOTYPES && (_jsxs("div", { ref: dropStereotypeRef, className: clsx('panel__content__lists', {
235
141
  'panel__content__lists--dnd-over': isStereotypeDragOver && !isReadOnly,
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,OAAO,EACP,2BAA2B,EAG3B,QAA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AAoB,CAAC,aAAa,IAAI,CACrD,eACE,GAAG,EAAE,kBAAkB,EACvB,SAAS,EAAE,IAAI,CAAC,uBAAuB,EAAE;gCACvC,iCAAiC,EAC/B,qBAAqB,IAAI,CAAC,UAAU;6BACvC,CAAC,aAEF,KAAC,2BAA2B,KAAG,EAC9B,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAClD,KAAC,iBAAiB,IAChB,gBAAgB,EAAE,gBAAgB,EAElC,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,kBAAkB,CAAC,WAAW,CAAC,EAC5C,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,IAAI,IAJV,WAAW,CAAC,KAAK,CAKtB,CACH,CAAC,IACE,CACP,EACA,WAAW,KAAK,oBAAoB,CAAC,WAAW,IAAI,CACnD,eACE,GAAG,EAAE,iBAAiB,EACtB,SAAS,EAAE,IAAI,CAAC,uBAAuB,EAAE;gCACvC,iCAAiC,EAC/B,oBAAoB,IAAI,CAAC,UAAU;6BACtC,CAAC,aAEF,KAAC,0BAA0B,KAAG,EAC7B,gBAAgB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAChD,KAAC,kBAAkB,IAEjB,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,iBAAiB,CAAC,UAAU,CAAC,EAC/C,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,IAAI,IALV,UAAU,CAAC,KAAK,CAAC,KAAK,CAM3B,CACH,CAAC,IACE,CACP,IACY,IACT,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"HostedServiceFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL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ourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqCH,eAAO,MAAM,mCAAmC;;CAyT9C,CAAC"}
1
+ {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoCH,eAAO,MAAM,mCAAmC;;CAuR9C,CAAC"}
@@ -15,22 +15,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { Panel, PanelHeader, PanelContent, PanelForm, PanelFormTextField, PURE_FunctionIcon, LongArrowRightIcon, PanelLoadingIndicator, PURE_ConnectionIcon, CustomSelectorInput, createFilter, DataAccessIcon, } from '@finos/legend-art';
18
- import { generateFunctionPrettyName, RelationalDatabaseConnection, DatabaseType, DeploymentOwner, SnowflakePermissionScheme, } from '@finos/legend-graph';
18
+ import { generateFunctionPrettyName, RelationalDatabaseConnection, DatabaseType, SnowflakePermissionScheme, } from '@finos/legend-graph';
19
19
  import { observer } from 'mobx-react-lite';
20
20
  import { useApplicationStore } from '@finos/legend-application';
21
21
  import { useEditorStore } from '../../EditorStoreProvider.js';
22
22
  import { SnowflakeAppFunctionActivatorEdtiorState } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js';
23
23
  import { flowResult } from 'mobx';
24
- import { useRef, useState } from 'react';
24
+ import { useRef } from 'react';
25
25
  import { buildRelationalDatabaseConnectionOption, } from '../connection-editor/RelationalDatabaseConnectionEditor.js';
26
- import { activator_setDeploymentOwner } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
26
+ import { ActivatorOwnershipForm } from './ActivatorFormComponents.js';
27
27
  export const SnowflakeAppFunctionActivatorEditor = observer(() => {
28
28
  const editorStore = useEditorStore();
29
29
  const applicationStore = useApplicationStore();
30
30
  const editorState = editorStore.tabManagerState.getCurrentEditorState(SnowflakeAppFunctionActivatorEdtiorState);
31
31
  const isReadOnly = editorState.isReadOnly;
32
32
  const activator = editorState.activator;
33
- const ownership = activator.ownership;
34
33
  const connectionSelectorRef = useRef(null);
35
34
  const connectionFilterOption = createFilter({
36
35
  ignoreCase: true,
@@ -88,14 +87,6 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
88
87
  const deploy = () => {
89
88
  flowResult(editorState.deployToSandbox()).catch(applicationStore.alertUnhandledError);
90
89
  };
91
- //Ownership
92
- const [ownerInputValue, setOwner] = useState(activator.ownership.id);
93
- const updateDeploymentIdentifier = (event) => {
94
- if (!isReadOnly) {
95
- setOwner(event.target.value);
96
- activator_setDeploymentOwner(ownership, event.target.value);
97
- }
98
- };
99
90
  return (_jsx("div", { className: "snowflake-app-function-activator-editor", children: _jsxs(Panel, { children: [_jsx(PanelHeader, { title: "Snowflake Application" }), _jsx(PanelLoadingIndicator, { isLoading: Boolean(editorState.validateState.isInProgress ||
100
91
  editorState.deployState.isInProgress) }), _jsxs(PanelContent, { children: [_jsxs("div", { className: "snowflake-app-function-activator-editor__header", children: [_jsx("div", { className: "snowflake-app-function-activator-editor__header__label", children: "Snowflake Activator Metadata" }), _jsxs("div", { className: "snowflake-app-function-activator-editor__header__actions", children: [_jsx("button", { className: "snowflake-app-function-activator-editor__header__actions__action snowflake-app-function-activator-editor__header__actions__action--primary", onClick: validate, disabled: editorState.validateState.isInProgress, tabIndex: -1, title: "Click Validate to verify your activator before deployment", children: "Validate" }), _jsx("button", { className: "snowflake-app-function-activator-editor__header__actions__action snowflake-app-function-activator-editor__header__actions__action--primary", onClick: deploy, disabled: editorState.deployState.isInProgress, title: "Deploy to sandbox", tabIndex: -1, children: "Deploy to Sandbox" })] })] }), _jsxs(PanelForm, { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Function" }) }), _jsx("div", { className: "snowflake-app-function-activator-editor__configuration__items", children: _jsxs("div", { className: "snowflake-app-function-activator-editor__configuration__item", children: [_jsx("div", { className: "btn--sm snowflake-app-function-activator-editor__configuration__item__label", children: _jsx(PURE_FunctionIcon, {}) }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: true, value: generateFunctionPrettyName(activator.function.value, {
101
92
  fullPath: true,
@@ -109,6 +100,6 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
109
100
  value: activator.permissionScheme,
110
101
  }
111
102
  : null, darkMode: !applicationStore.layoutService
112
- .TEMPORARY__isLightColorThemeEnabled, placeholder: "Choose a Permission Scheme" })] }) })] }), _jsx(PanelForm, { children: _jsx(PanelFormTextField, { value: activator.usageRole, isReadOnly: isReadOnly, name: "Usage Role", placeholder: "Specify the usage role (optional)", update: (value) => editorState.updateUsageRole(value) }) }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Description" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of Snowflake App` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.description, onChange: changeDescription })] }) }), _jsx(PanelForm, { children: _jsxs("div", { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The ownership model you want to use to control your snowflake app." })] }), ownership instanceof DeploymentOwner && (_jsx("div", { className: "panel__content__form__section", children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Deployment Identifier :" }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: isReadOnly, value: ownerInputValue, onChange: updateDeploymentIdentifier })] }) }))] }) })] })] }) }));
103
+ .TEMPORARY__isLightColorThemeEnabled, placeholder: "Choose a Permission Scheme" })] }) })] }), _jsx(PanelForm, { children: _jsx(PanelFormTextField, { value: activator.usageRole, isReadOnly: isReadOnly, name: "Usage Role", placeholder: "Specify the usage role (optional)", update: (value) => editorState.updateUsageRole(value) }) }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Description" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of Snowflake App` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.description, onChange: changeDescription })] }) }), _jsx(PanelForm, { children: _jsx(ActivatorOwnershipForm, { activator: activator, isReadOnly: isReadOnly }) })] })] }) }));
113
104
  });
114
105
  //# sourceMappingURL=SnowflakeAppFunctionActivatorEditor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,wCAAwC,EAAE,MAAM,4HAA4H,CAAC;AACtL,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,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C;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,wCAAwC,EAAE,MAAM,4HAA4H,CAAC;AACtL,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,uCAAuC,GACxC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,MAAM,CAAC,MAAM,mCAAmC,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC/D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,WAAW,CAAC,eAAe,CAAC,qBAAqB,CACnE,wCAAwC,CACzC,CAAC;IACF,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAC1C,MAAM,SAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IAExC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C,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-studio v28.18.43
1
+ /** @license @finos/legend-application-studio v28.18.44
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-studio",
3
- "version": "28.18.43",
3
+ "version": "28.18.44",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -18,7 +18,7 @@ import { type GeneratorFn, ActionState } from '@finos/legend-shared';
18
18
  import type { EditorStore } from '../../../EditorStore.js';
19
19
  import { ElementEditorState } from '../ElementEditorState.js';
20
20
  import { User } from '@finos/legend-server-sdlc';
21
- declare enum HostedServiceOwnershipType {
21
+ export declare enum HostedServiceOwnershipType {
22
22
  DEPLOYMENT_OWNERSHIP = "deploymentOwnership",
23
23
  USERLIST_OWNERSHIP = "userListOwnership"
24
24
  }
@@ -55,5 +55,4 @@ export declare class HostedServiceFunctionActivatorEditorState extends ElementEd
55
55
  searchUsers(name: string): GeneratorFn<User[]>;
56
56
  reprocess(newElement: HostedService, editorStore: EditorStore): HostedServiceFunctionActivatorEditorState;
57
57
  }
58
- export {};
59
58
  //# sourceMappingURL=HostedServiceFunctionActivatorEditorState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBA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EAAE,aAAa,EACzB,WAAW,EAAE,WAAW,GACvB,yCAAyC;CAM7C"}
1
+ {"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,oBAAY,0BAA0B;IACpC,oBAAoB,wBAAwB;IAC5C,kBAAkB,sBAAsB;CACzC;AACD,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;GAK7B,CAAC;AAEF,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;CAC5B;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,yCAA0C,SAAQ,kBAAkB;IAC/E,QAAQ,CAAC,aAAa,cAAwB;IAC9C,QAAQ,CAAC,WAAW,cAAwB;IAE5C,WAAW,EAAE,oBAAoB,CAAC;gBAEtB,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa;IAqB5D,cAAc,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI;IAI/C,IAAI,SAAS,IAAI,aAAa,CAQ7B;IAED,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAItC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,IAAI,iBAAiB,IAAI,wBAAwB,GAAG,SAAS,CAc5D;IAED,oBAAoB,CAAC,CAAC,EAAE,wBAAwB,GAAG,IAAI;IA2BtD,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;IAkB7B,eAAe,IAAI,WAAW,CAAC,IAAI,CAAC;IAkBpC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAc/C,SAAS,CACP,UAAU,EAAE,aAAa,EACzB,WAAW,EAAE,WAAW,GACvB,yCAAyC;CAM7C"}
@@ -20,7 +20,7 @@ import { ElementEditorState } from '../ElementEditorState.js';
20
20
  import { activator_setOwnership } from '../../../../graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
21
21
  import { User } from '@finos/legend-server-sdlc';
22
22
  //Ownership
23
- var HostedServiceOwnershipType;
23
+ export var HostedServiceOwnershipType;
24
24
  (function (HostedServiceOwnershipType) {
25
25
  HostedServiceOwnershipType["DEPLOYMENT_OWNERSHIP"] = "deploymentOwnership";
26
26
  HostedServiceOwnershipType["USERLIST_OWNERSHIP"] = "userListOwnership";
@@ -33,10 +33,6 @@ export const OWNERSHIP_OPTIONS = [
33
33
  label: DeploymentOwnershipLabel,
34
34
  value: HostedServiceOwnershipType.DEPLOYMENT_OWNERSHIP,
35
35
  },
36
- {
37
- label: UserlistOwnershipLabel,
38
- value: HostedServiceOwnershipType.USERLIST_OWNERSHIP,
39
- },
40
36
  ];
41
37
  export var ACTIVATOR_EDITOR_TAB;
42
38
  (function (ACTIVATOR_EDITOR_TAB) {
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionAct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a,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACzE,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAED,SAAS,CACP,UAAyB,EACzB,WAAwB;QAExB,OAAO,IAAI,yCAAyC,CAClD,WAAW,EACX,UAAU,CACX,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"HostedServiceFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,aAAa,GAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yEAAyE,CAAC;AACjH,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,WAAW;AACX,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,0EAA4C,CAAA;IAC5C,sEAAwC,CAAA;AAC1C,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC;AACD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC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AiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC3E,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,CAAC,WAAW,CAAC,IAAY;QACvB,IAAI,CAAC;YACH,OACE,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAC/C,IAAI,CACL,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACzE,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAED,SAAS,CACP,UAAyB,EACzB,WAAwB;QAExB,OAAO,IAAI,yCAAyC,CAClD,WAAW,EACX,UAAU,CACX,CAAC;IACJ,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-studio",
3
- "version": "28.18.43",
3
+ "version": "28.18.44",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -47,11 +47,11 @@
47
47
  "dependencies": {
48
48
  "@finos/legend-application": "16.0.3",
49
49
  "@finos/legend-art": "7.1.62",
50
- "@finos/legend-code-editor": "2.0.4",
51
- "@finos/legend-graph": "31.10.38",
52
- "@finos/legend-lego": "2.0.6",
53
- "@finos/legend-query-builder": "4.15.3",
54
- "@finos/legend-server-depot": "6.0.62",
50
+ "@finos/legend-code-editor": "2.0.5",
51
+ "@finos/legend-graph": "31.10.39",
52
+ "@finos/legend-lego": "2.0.7",
53
+ "@finos/legend-query-builder": "4.15.4",
54
+ "@finos/legend-server-depot": "6.0.63",
55
55
  "@finos/legend-server-sdlc": "5.3.33",
56
56
  "@finos/legend-server-showcase": "0.2.30",
57
57
  "@finos/legend-shared": "10.0.57",
@@ -0,0 +1,97 @@
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
+
17
+ import { ExclamationCircleIcon } from '@finos/legend-art';
18
+ import {
19
+ DeploymentOwner,
20
+ UserList,
21
+ type FunctionActivator,
22
+ } from '@finos/legend-graph';
23
+ import { observer } from 'mobx-react-lite';
24
+ import {
25
+ activator_setDeploymentOwner,
26
+ activator_setOwnership,
27
+ } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
28
+ import { useState } from 'react';
29
+
30
+ export const ActivatorOwnershipForm = observer(
31
+ (props: { activator: FunctionActivator; isReadOnly: boolean }) => {
32
+ const { activator, isReadOnly } = props;
33
+ const ownership = activator.ownership;
34
+
35
+ const [ownerInputValue, setOwner] = useState<string>(
36
+ ownership instanceof DeploymentOwner ? ownership.id : '',
37
+ );
38
+ const updateDeploymentIdentifier: React.ChangeEventHandler<
39
+ HTMLInputElement
40
+ > = (event) => {
41
+ if (!isReadOnly && ownership instanceof DeploymentOwner) {
42
+ setOwner(event.target.value);
43
+ activator_setDeploymentOwner(ownership, event.target.value);
44
+ }
45
+ };
46
+
47
+ return (
48
+ <div>
49
+ <div className="panel__content__form__section">
50
+ <div className="panel__content__form__section__header__label">
51
+ Ownership
52
+ </div>
53
+ </div>
54
+ {ownership instanceof DeploymentOwner && (
55
+ <div className="panel__content__form__section">
56
+ <div className="panel__content__form__section__header__prompt">
57
+ Provide a deployment identifier that will own the Lambda.
58
+ </div>
59
+ <input
60
+ className="panel__content__form__section__input"
61
+ spellCheck={false}
62
+ disabled={isReadOnly}
63
+ value={ownerInputValue}
64
+ onChange={updateDeploymentIdentifier}
65
+ />
66
+ </div>
67
+ )}
68
+ {ownership instanceof UserList && (
69
+ <div className="project-configuration-editor__project__structure__version">
70
+ <div className="project-configuration-editor__project__structure__version__label">
71
+ <div className="project-configuration-editor__project__structure__version__label__status">
72
+ <ExclamationCircleIcon className="project-configuration-editor__project__structure__version__label__status--outdated" />
73
+ </div>
74
+ <div className="project-configuration-editor__project__structure__version__label__text">
75
+ {`User List Ownership has been deprecated`}
76
+ </div>
77
+ </div>
78
+ <button
79
+ className="project-configuration-editor__project__structure__version__update-btn"
80
+ disabled={isReadOnly}
81
+ onClick={() =>
82
+ activator_setOwnership(
83
+ activator,
84
+ new DeploymentOwner('', activator),
85
+ )
86
+ }
87
+ tabIndex={-1}
88
+ title={`Click to Change to Deployment`}
89
+ >
90
+ Change to Deployment
91
+ </button>
92
+ </div>
93
+ )}
94
+ </div>
95
+ );
96
+ },
97
+ );
@@ -25,19 +25,14 @@ import {
25
25
  PanelFormBooleanField,
26
26
  PanelFormValidatedTextField,
27
27
  TimesIcon,
28
- CustomSelectorInput,
29
- PencilIcon,
30
- ErrorIcon,
31
28
  clsx,
32
29
  PlusIcon,
33
30
  } from '@finos/legend-art';
34
31
  import {
35
- DeploymentOwner,
36
32
  Profile,
37
33
  StereotypeExplicitReference,
38
34
  type StereotypeReference,
39
35
  type TaggedValue,
40
- UserList,
41
36
  generateFunctionPrettyName,
42
37
  stub_Profile,
43
38
  stub_Stereotype,
@@ -50,9 +45,6 @@ import { useApplicationStore } from '@finos/legend-application';
50
45
  import { useEditorStore } from '../../EditorStoreProvider.js';
51
46
  import {
52
47
  HostedServiceFunctionActivatorEditorState,
53
- OWNERSHIP_OPTIONS,
54
- type HostedServiceOwnerOption,
55
- MINIMUM_HOSTED_SERVICE_OWNERS,
56
48
  ACTIVATOR_EDITOR_TAB,
57
49
  } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
58
50
  import {
@@ -61,16 +53,11 @@ import {
61
53
  hostedService_setPattern,
62
54
  hostedService_removePatternParameter,
63
55
  hostedService_setStoreModel,
64
- hostedService_setGenerateLineage,
65
- activator_setDeploymentOwner,
66
- activator_updateUserOwnership,
67
- activator_deleteValueFromUserOwnership,
68
- activator_addUserOwner,
69
56
  } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
70
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
71
- import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
72
- import { debounce, prettyCONSTName } from '@finos/legend-shared';
57
+ import { useCallback, useEffect, useRef, useState } from 'react';
58
+ import { prettyCONSTName } from '@finos/legend-shared';
73
59
  import { flowResult } from 'mobx';
60
+ import { ActivatorOwnershipForm } from './ActivatorFormComponents.js';
74
61
  import {
75
62
  annotatedElement_addStereotype,
76
63
  annotatedElement_addTaggedValue,
@@ -92,8 +79,6 @@ import {
92
79
  StereotypeSelector,
93
80
  } from '../uml-editor/StereotypeSelector.js';
94
81
 
95
- type UserOption = { label: string; value: string };
96
-
97
82
  export const HostedServiceFunctionActivatorEditor = observer(() => {
98
83
  const editorStore = useEditorStore();
99
84
  const applicationStore = useApplicationStore();
@@ -197,7 +182,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
197
182
  editorState.setSelectedTab(tab);
198
183
 
199
184
  const activator = editorState.activator;
200
- const ownership = activator.ownership;
201
185
  const visitFunction = (): void =>
202
186
  editorState.editorStore.graphEditorMode.openElement(
203
187
  activator.function.value,
@@ -225,10 +209,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
225
209
  hostedService_setStoreModel(activator, !activator.storeModel);
226
210
  };
227
211
 
228
- const toggleGenerateLineage = (): void => {
229
- hostedService_setGenerateLineage(activator, !activator.generateLineage);
230
- };
231
-
232
212
  const toggleAutoActivateUpdates = (): void => {
233
213
  hostedService_setAutoActivateUpdates(
234
214
  activator,
@@ -243,127 +223,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
243
223
  : undefined;
244
224
  };
245
225
 
246
- //Ownership
247
- const [showOwnerEditInput, setShowOwnerEditInput] = useState<
248
- boolean | number
249
- >(false);
250
- const [ownerInputValue, setOwnerInputValue] = useState<string>('');
251
- const [searchText, setSearchText] = useState('');
252
- const [userOptions, setUserOptions] = useState<UserOption[]>([]);
253
- const [isLoadingUsers, setIsLoadingUsers] = useState<boolean>(false);
254
- const [ownerInputs, setOwnerInputs] = useState<string[]>([]);
255
- const showAddOwnerInput = (): void => setShowOwnerEditInput(true);
256
-
257
- const onOwnershipChange = (
258
- val: HostedServiceOwnerOption | undefined,
259
- ): void => {
260
- if (val) {
261
- editorState.setSelectedOwnership(val);
262
- }
263
- };
264
-
265
- const updateDeploymentIdentifier: React.ChangeEventHandler<
266
- HTMLInputElement
267
- > = (event) => {
268
- if (!isReadOnly && ownership instanceof DeploymentOwner) {
269
- activator_setDeploymentOwner(ownership, event.target.value);
270
- }
271
- };
272
-
273
- const changeUserOwnerInputValue: React.ChangeEventHandler<
274
- HTMLInputElement
275
- > = (event) => setOwnerInputValue(event.target.value);
276
-
277
- const updateUser =
278
- (idx: number): (() => void) =>
279
- (): void => {
280
- if (
281
- ownerInputValue &&
282
- ownership instanceof UserList &&
283
- !ownership.users.includes(ownerInputValue)
284
- ) {
285
- activator_updateUserOwnership(ownership, ownerInputValue, idx);
286
- }
287
- };
288
-
289
- const showEditOwnerInput =
290
- (value: string, idx: number): (() => void) =>
291
- (): void => {
292
- setOwnerInputValue(value);
293
- setShowOwnerEditInput(idx);
294
- };
295
-
296
- const hideAddOrEditOwnerInput = (): void => {
297
- setShowOwnerEditInput(false);
298
- setOwnerInputValue('');
299
- };
300
-
301
- const deleteUser =
302
- (idx: number): (() => void) =>
303
- (): void => {
304
- if (!isReadOnly && ownership instanceof UserList) {
305
- activator_deleteValueFromUserOwnership(ownership, idx);
306
- if (
307
- typeof showOwnerEditInput === 'number' &&
308
- showOwnerEditInput > idx
309
- ) {
310
- setShowOwnerEditInput(showOwnerEditInput - 1);
311
- }
312
- }
313
- };
314
-
315
- const debouncedSearchUsers = useMemo(
316
- () =>
317
- debounce((input: string): void => {
318
- setIsLoadingUsers(true);
319
- flowResult(editorState.searchUsers(input))
320
- .then((users) =>
321
- setUserOptions(
322
- users.map((u) => ({
323
- value: u.userId,
324
- label: u.userId,
325
- })),
326
- ),
327
- )
328
- .then(() => setIsLoadingUsers(false))
329
- .catch(editorState.editorStore.applicationStore.alertUnhandledError);
330
- }, 500),
331
- [editorState],
332
- );
333
-
334
- const onSearchTextChange = (value: string): void => {
335
- if (value !== searchText) {
336
- setSearchText(value);
337
- debouncedSearchUsers.cancel();
338
- if (value.length >= 3) {
339
- debouncedSearchUsers(value);
340
- } else if (value.length === 0) {
341
- setUserOptions([]);
342
- setIsLoadingUsers(false);
343
- }
344
- }
345
- };
346
-
347
- const onUserOptionChange = (options: UserOption[]): void => {
348
- setOwnerInputs(options.map((op) => op.label));
349
- setUserOptions([]);
350
- debouncedSearchUsers.cancel();
351
- setIsLoadingUsers(false);
352
- };
353
-
354
- const addUser = (): void => {
355
- ownerInputs.forEach((value) => {
356
- if (
357
- value &&
358
- ownership instanceof UserList &&
359
- !ownership.users.includes(value)
360
- ) {
361
- activator_addUserOwner(ownership, value);
362
- }
363
- });
364
- hideAddOrEditOwnerInput();
365
- };
366
-
367
226
  //Pattern
368
227
  const patternRef = useRef<HTMLInputElement>(null);
369
228
  const [pattern, setPattern] = useState(activator.pattern);
@@ -583,214 +442,11 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
583
442
  />
584
443
  </PanelForm>
585
444
  <PanelForm>
586
- <PanelFormBooleanField
445
+ <ActivatorOwnershipForm
446
+ activator={activator}
587
447
  isReadOnly={isReadOnly}
588
- value={activator.generateLineage}
589
- name="Generate Lineage"
590
- prompt="Generate Lineage (slower)"
591
- update={toggleGenerateLineage}
592
448
  />
593
449
  </PanelForm>
594
- <PanelForm>
595
- {
596
- <div>
597
- <div className="panel__content__form__section">
598
- <div className="panel__content__form__section__header__label">
599
- Ownership
600
- </div>
601
- <div className="panel__content__form__section__header__prompt">
602
- The ownership model you want to use to control your
603
- service.
604
- </div>
605
- <CustomSelectorInput
606
- options={OWNERSHIP_OPTIONS}
607
- onChange={onOwnershipChange}
608
- value={editorState.selectedOwnership}
609
- darkMode={
610
- !applicationStore.layoutService
611
- .TEMPORARY__isLightColorThemeEnabled
612
- }
613
- />
614
- </div>
615
- {ownership instanceof DeploymentOwner && (
616
- <div className="panel__content__form__section">
617
- <div>
618
- <div className="panel__content__form__section__header__label">
619
- Deployment Identifier :
620
- </div>
621
- <input
622
- className="panel__content__form__section__input"
623
- spellCheck={false}
624
- disabled={isReadOnly}
625
- value={ownership.id}
626
- onChange={updateDeploymentIdentifier}
627
- />
628
- </div>
629
- </div>
630
- )}
631
- {ownership instanceof UserList && (
632
- <div className="panel__content__form__section">
633
- <div>
634
- <div className="panel__content__form__section__header__label">
635
- Users :
636
- </div>
637
- <div className="panel__content__form__section__list">
638
- <div
639
- className="panel__content__form__section__list__items"
640
- data-testid={
641
- LEGEND_STUDIO_TEST_ID.PANEL_CONTENT_FORM_SECTION_LIST_ITEMS
642
- }
643
- >
644
- {ownership.users.map((value, idx) => (
645
- <div
646
- key={value}
647
- className={
648
- showOwnerEditInput === idx
649
- ? 'panel__content__form__section__list__new-item'
650
- : 'panel__content__form__section__list__item'
651
- }
652
- >
653
- {showOwnerEditInput === idx ? (
654
- <>
655
- <input
656
- className="panel__content__form__section__input panel__content__form__section__list__new-item__input"
657
- spellCheck={false}
658
- disabled={isReadOnly}
659
- value={ownerInputValue}
660
- onChange={changeUserOwnerInputValue}
661
- />
662
- <div className="panel__content__form__section__list__new-item__actions">
663
- <button
664
- className="panel__content__form__section__list__new-item__add-btn btn btn--dark"
665
- disabled={
666
- isReadOnly ||
667
- ownership.users.includes(
668
- ownerInputValue,
669
- )
670
- }
671
- onClick={updateUser(idx)}
672
- tabIndex={-1}
673
- >
674
- Save
675
- </button>
676
- <button
677
- className="panel__content__form__section__list__new-item__cancel-btn btn btn--dark"
678
- disabled={isReadOnly}
679
- onClick={hideAddOrEditOwnerInput}
680
- tabIndex={-1}
681
- >
682
- Cancel
683
- </button>
684
- </div>
685
- </>
686
- ) : (
687
- <>
688
- <div className="panel__content__form__section__list__item__value">
689
- {value}
690
- </div>
691
- <div className="panel__content__form__section__list__item__actions">
692
- <button
693
- className="panel__content__form__section__list__item__edit-btn"
694
- disabled={isReadOnly}
695
- onClick={showEditOwnerInput(
696
- value,
697
- idx,
698
- )}
699
- tabIndex={-1}
700
- >
701
- <PencilIcon />
702
- </button>
703
- <button
704
- className="panel__content__form__section__list__item__remove-btn"
705
- disabled={isReadOnly}
706
- onClick={deleteUser(idx)}
707
- tabIndex={-1}
708
- >
709
- <TimesIcon />
710
- </button>
711
- </div>
712
- </>
713
- )}
714
- </div>
715
- ))}
716
- {showOwnerEditInput === true && (
717
- <div className="panel__content__form__section__list__new-item">
718
- <CustomSelectorInput
719
- className="service-editor__owner__selector"
720
- placeholder="Enter an owner..."
721
- inputValue={searchText}
722
- options={userOptions}
723
- allowCreating={true}
724
- isLoading={isLoadingUsers}
725
- disabled={isReadOnly}
726
- darkMode={
727
- !applicationStore.layoutService
728
- .TEMPORARY__isLightColorThemeEnabled
729
- }
730
- onInputChange={onSearchTextChange}
731
- onChange={onUserOptionChange}
732
- isMulti={true}
733
- />
734
- <div className="panel__content__form__section__list__new-item__actions">
735
- <button
736
- className="panel__content__form__section__list__new-item__add-btn btn btn--dark service-editor__owner__action"
737
- disabled={
738
- isReadOnly ||
739
- ownerInputs.some((i) =>
740
- ownership.users.includes(i),
741
- )
742
- }
743
- onClick={addUser}
744
- tabIndex={-1}
745
- >
746
- Save
747
- </button>
748
- <button
749
- className="panel__content__form__section__list__new-item__cancel-btn btn btn--dark service-editor__owner__action"
750
- disabled={isReadOnly}
751
- onClick={hideAddOrEditOwnerInput}
752
- tabIndex={-1}
753
- >
754
- Cancel
755
- </button>
756
- </div>
757
- </div>
758
- )}
759
- </div>
760
- {ownership.users.length <
761
- MINIMUM_HOSTED_SERVICE_OWNERS &&
762
- showOwnerEditInput !== true && (
763
- <div
764
- className="service-editor__owner__validation"
765
- title={`${MINIMUM_HOSTED_SERVICE_OWNERS} owners required`}
766
- >
767
- <ErrorIcon />
768
- <div className="service-editor__owner__validation-label">
769
- Service requires at least{' '}
770
- {MINIMUM_HOSTED_SERVICE_OWNERS} owners
771
- </div>
772
- </div>
773
- )}
774
- {showOwnerEditInput !== true && (
775
- <div className="panel__content__form__section__list__new-item__add">
776
- <button
777
- className="panel__content__form__section__list__new-item__add-btn btn btn--dark"
778
- disabled={isReadOnly}
779
- onClick={showAddOwnerInput}
780
- tabIndex={-1}
781
- title="Add owner"
782
- >
783
- Add Value
784
- </button>
785
- </div>
786
- )}
787
- </div>
788
- </div>
789
- </div>
790
- )}
791
- </div>
792
- }
793
- </PanelForm>
794
450
  </div>
795
451
  )}
796
452
  {selectedTab === ACTIVATOR_EDITOR_TAB.TAGGED_VALUES && (
@@ -34,7 +34,6 @@ import {
34
34
  generateFunctionPrettyName,
35
35
  RelationalDatabaseConnection,
36
36
  DatabaseType,
37
- DeploymentOwner,
38
37
  SnowflakePermissionScheme,
39
38
  } from '@finos/legend-graph';
40
39
  import { observer } from 'mobx-react-lite';
@@ -42,12 +41,12 @@ import { useApplicationStore } from '@finos/legend-application';
42
41
  import { useEditorStore } from '../../EditorStoreProvider.js';
43
42
  import { SnowflakeAppFunctionActivatorEdtiorState } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js';
44
43
  import { flowResult } from 'mobx';
45
- import { useRef, useState } from 'react';
44
+ import { useRef } from 'react';
46
45
  import {
47
46
  type RelationalDatabaseConnectionOption,
48
47
  buildRelationalDatabaseConnectionOption,
49
48
  } from '../connection-editor/RelationalDatabaseConnectionEditor.js';
50
- import { activator_setDeploymentOwner } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
49
+ import { ActivatorOwnershipForm } from './ActivatorFormComponents.js';
51
50
 
52
51
  export const SnowflakeAppFunctionActivatorEditor = observer(() => {
53
52
  const editorStore = useEditorStore();
@@ -57,7 +56,7 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
57
56
  );
58
57
  const isReadOnly = editorState.isReadOnly;
59
58
  const activator = editorState.activator;
60
- const ownership = activator.ownership;
59
+
61
60
  const connectionSelectorRef = useRef<SelectComponent>(null);
62
61
  const connectionFilterOption = createFilter({
63
62
  ignoreCase: true,
@@ -140,17 +139,6 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
140
139
  );
141
140
  };
142
141
 
143
- //Ownership
144
- const [ownerInputValue, setOwner] = useState<string>(activator.ownership.id);
145
- const updateDeploymentIdentifier: React.ChangeEventHandler<
146
- HTMLInputElement
147
- > = (event) => {
148
- if (!isReadOnly) {
149
- setOwner(event.target.value);
150
- activator_setDeploymentOwner(ownership, event.target.value);
151
- }
152
- };
153
-
154
142
  return (
155
143
  <div className="snowflake-app-function-activator-editor">
156
144
  <Panel>
@@ -330,33 +318,10 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
330
318
  </div>
331
319
  </PanelForm>
332
320
  <PanelForm>
333
- <div>
334
- <div className="panel__content__form__section">
335
- <div className="panel__content__form__section__header__label">
336
- Ownership
337
- </div>
338
- <div className="panel__content__form__section__header__prompt">
339
- The ownership model you want to use to control your snowflake
340
- app.
341
- </div>
342
- </div>
343
- {ownership instanceof DeploymentOwner && (
344
- <div className="panel__content__form__section">
345
- <div>
346
- <div className="panel__content__form__section__header__label">
347
- Deployment Identifier :
348
- </div>
349
- <input
350
- className="panel__content__form__section__input"
351
- spellCheck={false}
352
- disabled={isReadOnly}
353
- value={ownerInputValue}
354
- onChange={updateDeploymentIdentifier}
355
- />
356
- </div>
357
- </div>
358
- )}
359
- </div>
321
+ <ActivatorOwnershipForm
322
+ activator={activator}
323
+ isReadOnly={isReadOnly}
324
+ />
360
325
  </PanelForm>
361
326
  </PanelContent>
362
327
  </Panel>
@@ -35,7 +35,7 @@ import { activator_setOwnership } from '../../../../graph-modifier/DSL_FunctionA
35
35
  import { User } from '@finos/legend-server-sdlc';
36
36
 
37
37
  //Ownership
38
- enum HostedServiceOwnershipType {
38
+ export enum HostedServiceOwnershipType {
39
39
  DEPLOYMENT_OWNERSHIP = 'deploymentOwnership',
40
40
  USERLIST_OWNERSHIP = 'userListOwnership',
41
41
  }
@@ -48,10 +48,6 @@ export const OWNERSHIP_OPTIONS = [
48
48
  label: DeploymentOwnershipLabel,
49
49
  value: HostedServiceOwnershipType.DEPLOYMENT_OWNERSHIP,
50
50
  },
51
- {
52
- label: UserlistOwnershipLabel,
53
- value: HostedServiceOwnershipType.USERLIST_OWNERSHIP,
54
- },
55
51
  ];
56
52
 
57
53
  export enum ACTIVATOR_EDITOR_TAB {
package/tsconfig.json CHANGED
@@ -254,6 +254,7 @@
254
254
  "./src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.tsx",
255
255
  "./src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx",
256
256
  "./src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx",
257
+ "./src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx",
257
258
  "./src/components/editor/editor-group/function-activator/FunctionEditor.tsx",
258
259
  "./src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx",
259
260
  "./src/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.tsx",