[arvados] updated: 2.7.0-6265-gf093cf6613
git repository hosting
git at public.arvados.org
Thu Mar 28 18:51:34 UTC 2024
Summary of changes:
services/workbench2/src/common/menu-item-sort.ts | 74 ------------------
.../multiselect-toolbar/MultiselectToolbar.tsx | 2 +-
.../ms-toolbar-action-filters.ts | 2 +-
services/workbench2/src/index.tsx | 3 +-
.../context-menu/context-menu-actions.test.ts | 2 +-
.../src/store/context-menu/context-menu-actions.ts | 2 +-
.../collection-panel-files.ts | 2 +-
.../collection-copy-to-clipboard-action.tsx | 2 +-
.../actions/collection-file-viewer-action.test.tsx | 2 +-
.../actions/collection-file-viewer-action.tsx | 2 +-
.../actions/download-collection-file-action.tsx | 2 +-
.../views-components/context-menu/context-menu.tsx | 54 +------------
.../context-menu/menu-item-sort.ts | 89 ++++++++++++++++++++++
.../src/views/groups-panel/groups-panel.tsx | 2 +-
.../process-output-collection-files.ts | 2 +-
.../src/views/trash-panel/trash-panel.tsx | 2 +-
16 files changed, 106 insertions(+), 138 deletions(-)
delete mode 100644 services/workbench2/src/common/menu-item-sort.ts
create mode 100644 services/workbench2/src/views-components/context-menu/menu-item-sort.ts
via f093cf66138faec359a95777a91b6a2904469d7d (commit)
from b41a884bdeb7f18ad923d23ffed8be0f0a85e452 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f093cf66138faec359a95777a91b6a2904469d7d
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Thu Mar 28 14:51:28 2024 -0400
21448: sorter sorts Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/common/menu-item-sort.ts b/services/workbench2/src/common/menu-item-sort.ts
deleted file mode 100644
index 6cf8c9f677..0000000000
--- a/services/workbench2/src/common/menu-item-sort.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (C) The Arvados Authors. All rights reserved.
-//
-// SPDX-License-Identifier: AGPL-3.0
-
-import { ContextMenuAction } from '../views-components/context-menu/context-menu-action-set';
-import { ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
-
-const {
- ACCOUNT_SETTINGS,
- ACTIVATE_USER,
- ADD_TO_FAVORITES,
- ADD_TO_PUBLIC_FAVORITES,
- ATTRIBUTES,
- API_DETAILS,
- CANCEL,
- COPY_AND_RERUN_PROCESS,
- COPY_ITEM_INTO_EXISTING_COLLECTION,
- COPY_ITEM_INTO_NEW_COLLECTION,
- COPY_SELECTED_INTO_EXISTING_COLLECTION,
- COPY_SELECTED_INTO_SEPARATE_COLLECTIONS,
- COPY_SELECTED_INTO_NEW_COLLECTION,
- COPY_TO_CLIPBOARD,
- DEACTIVATE_USER,
- DELETE_WORKFLOW,
- DOWNLOAD,
- EDIT_COLLECTION,
- EDIT_PROCESS,
- EDIT_PROJECT,
- FREEZE_PROJECT,
- HOME_PROJECT,
- LOGIN_AS_USER,
- MAKE_A_COPY,
- MANAGE,
- MOVE_ITEM_INTO_EXISTING_COLLECTION,
- MOVE_ITEM_INTO_NEW_COLLECTION,
- MOVE_SELECTED_INTO_EXISTING_COLLECTION,
- MOVE_SELECTED_INTO_NEW_COLLECTION,
- MOVE_SELECTED_INTO_SEPARATE_COLLECTIONS,
- MOVE_TO,
- MOVE_TO_TRASH,
- NEW_COLLECTION,
- NEW_PROJECT,
- OPEN_IN_NEW_TAB,
- OPEN_WITH_3RD_PARTY_CLIENT,
- OUTPUTS,
- PROVENANCE_GRAPH,
- READ,
- REMOVE,
- REMOVE_SELECTED,
- RENAME,
- RESTORE,
- RESTORE_VERSION,
- RUN_WORKFLOW,
- SELECT_ALL,
- SETUP_USER,
- SHARE,
- UNSELECT_ALL,
- VIEW_DETAILS,
- WRITE,
-} = ContextMenuActionNames;
-
-const processOrder = [VIEW_DETAILS, OPEN_IN_NEW_TAB, OUTPUTS, API_DETAILS, EDIT_PROCESS, COPY_AND_RERUN_PROCESS, MOVE_TO, REMOVE, ADD_TO_FAVORITES, ADD_TO_PUBLIC_FAVORITES];
-
-const kindToOrder: Record<string, ContextMenuActionNames[]> = {
- "ProcessResource": processOrder,
-};
-
-export const sortMenuItems = (menuKind:string, menuItems: ContextMenuAction[]) => {
- const order = kindToOrder[menuKind] || [];
- const bucketMap = new Map();
- order.forEach((name) => bucketMap.set(name, null));
- menuItems.forEach((item) => {if (bucketMap.has(item.name)) bucketMap.set(item.name, item)});
- console.log(Array.from(bucketMap.values()));
-};
\ No newline at end of file
diff --git a/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx b/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx
index ae22050f33..ff4e6072fb 100644
--- a/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx
+++ b/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx
@@ -34,7 +34,7 @@ import { Process } from "store/processes/process";
import { PublicFavoritesState } from "store/public-favorites/public-favorites-reducer";
import { isExactlyOneSelected } from "store/multiselect/multiselect-actions";
import { IntersectionObserverWrapper } from "./ms-toolbar-overflow-wrapper";
-import { ContextMenuKind } from "views-components/context-menu/context-menu";
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
const WIDTH_TRANSITION = 150
diff --git a/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts b/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts
index a5498e7a53..2b30525e56 100644
--- a/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts
+++ b/services/workbench2/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts
@@ -16,7 +16,7 @@ import {
import { msProcessActionSet, msCommonProcessActionFilter, msAdminProcessActionFilter, msRunningProcessActionFilter } from 'views-components/multiselect-toolbar/ms-process-action-set';
import { msWorkflowActionSet, msWorkflowActionFilter, msReadOnlyWorkflowActionFilter } from 'views-components/multiselect-toolbar/ms-workflow-action-set';
import { ResourceKind } from 'models/resource';
-import { ContextMenuKind } from 'views-components/context-menu/context-menu';
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
const {
COLLECTION,
diff --git a/services/workbench2/src/index.tsx b/services/workbench2/src/index.tsx
index ef9ff9c986..400b975d4d 100644
--- a/services/workbench2/src/index.tsx
+++ b/services/workbench2/src/index.tsx
@@ -20,7 +20,8 @@ import { MuiThemeProvider } from "@material-ui/core/styles";
import { CustomTheme } from "common/custom-theme";
import { fetchConfig } from "common/config";
import servicesProvider from "common/service-provider";
-import { addMenuActionSet, ContextMenuKind } from "views-components/context-menu/context-menu";
+import { addMenuActionSet } from "views-components/context-menu/context-menu";
+import { ContextMenuKind } from "views-components/context-menu/menu-item-sort";
import { rootProjectActionSet } from "views-components/context-menu/action-sets/root-project-action-set";
import {
filterGroupActionSet,
diff --git a/services/workbench2/src/store/context-menu/context-menu-actions.test.ts b/services/workbench2/src/store/context-menu/context-menu-actions.test.ts
index 623c45088c..a8b8e4089c 100644
--- a/services/workbench2/src/store/context-menu/context-menu-actions.test.ts
+++ b/services/workbench2/src/store/context-menu/context-menu-actions.test.ts
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { ContextMenuKind } from 'views-components/context-menu/context-menu';
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { resourceUuidToContextMenuKind } from './context-menu-actions';
import configureStore from 'redux-mock-store';
import thunk from 'redux-thunk';
diff --git a/services/workbench2/src/store/context-menu/context-menu-actions.ts b/services/workbench2/src/store/context-menu/context-menu-actions.ts
index 464314877f..4c31fa4e94 100644
--- a/services/workbench2/src/store/context-menu/context-menu-actions.ts
+++ b/services/workbench2/src/store/context-menu/context-menu-actions.ts
@@ -4,7 +4,7 @@
import { unionize, ofType, UnionOf } from "common/unionize";
import { ContextMenuPosition } from "./context-menu-reducer";
-import { ContextMenuKind } from "views-components/context-menu/context-menu";
+import { ContextMenuKind } from "views-components/context-menu/menu-item-sort";
import { Dispatch } from "redux";
import { RootState } from "store/store";
import { getResource, getResourceWithEditableStatus } from "../resources/resources";
diff --git a/services/workbench2/src/views-components/collection-panel-files/collection-panel-files.ts b/services/workbench2/src/views-components/collection-panel-files/collection-panel-files.ts
index a26b9fe3ee..c5bd1d737e 100644
--- a/services/workbench2/src/views-components/collection-panel-files/collection-panel-files.ts
+++ b/services/workbench2/src/views-components/collection-panel-files/collection-panel-files.ts
@@ -10,7 +10,7 @@ import {
import { RootState } from "store/store";
import { Dispatch } from "redux";
import { collectionPanelFilesAction } from "store/collection-panel/collection-panel-files/collection-panel-files-actions";
-import { ContextMenuKind } from "../context-menu/context-menu";
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { openContextMenu, openCollectionFilesContextMenu } from 'store/context-menu/context-menu-actions';
import { openUploadCollectionFilesDialog } from 'store/collections/collection-upload-actions';
import { ResourceKind } from "models/resource";
diff --git a/services/workbench2/src/views-components/context-menu/actions/collection-copy-to-clipboard-action.tsx b/services/workbench2/src/views-components/context-menu/actions/collection-copy-to-clipboard-action.tsx
index c92f7bc88b..dac3858fb3 100644
--- a/services/workbench2/src/views-components/context-menu/actions/collection-copy-to-clipboard-action.tsx
+++ b/services/workbench2/src/views-components/context-menu/actions/collection-copy-to-clipboard-action.tsx
@@ -5,7 +5,7 @@
import { connect } from "react-redux";
import { RootState } from "../../../store/store";
import { getNodeValue } from "models/tree";
-import { ContextMenuKind } from 'views-components/context-menu/context-menu';
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { CopyToClipboardAction } from "./copy-to-clipboard-action";
const mapStateToProps = (state: RootState) => {
diff --git a/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.test.tsx b/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.test.tsx
index 8b90f588ff..9d8acad20c 100644
--- a/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.test.tsx
+++ b/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.test.tsx
@@ -8,7 +8,7 @@ import Adapter from 'enzyme-adapter-react-16';
import configureMockStore from 'redux-mock-store'
import { Provider } from 'react-redux';
import { CollectionFileViewerAction } from './collection-file-viewer-action';
-import { ContextMenuKind } from 'views-components/context-menu/context-menu';
+import { ContextMenuKind } from '../menu-item-sort';
import { createTree, initTreeNode, setNode, getNodeValue } from "models/tree";
import { getInlineFileUrl, sanitizeToken } from "./helpers";
diff --git a/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.tsx b/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.tsx
index f736f0bf27..06b79bda4d 100644
--- a/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.tsx
+++ b/services/workbench2/src/views-components/context-menu/actions/collection-file-viewer-action.tsx
@@ -6,7 +6,7 @@ import { connect } from "react-redux";
import { RootState } from "../../../store/store";
import { FileViewerAction } from 'views-components/context-menu/actions/file-viewer-action';
import { getNodeValue } from "models/tree";
-import { ContextMenuKind } from 'views-components/context-menu/context-menu';
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { getInlineFileUrl, sanitizeToken, isInlineFileUrlSafe } from "./helpers";
const mapStateToProps = (state: RootState) => {
diff --git a/services/workbench2/src/views-components/context-menu/actions/download-collection-file-action.tsx b/services/workbench2/src/views-components/context-menu/actions/download-collection-file-action.tsx
index 3b1f770220..3b04e29e73 100644
--- a/services/workbench2/src/views-components/context-menu/actions/download-collection-file-action.tsx
+++ b/services/workbench2/src/views-components/context-menu/actions/download-collection-file-action.tsx
@@ -6,7 +6,7 @@ import { connect } from "react-redux";
import { RootState } from "../../../store/store";
import { DownloadAction } from "./download-action";
import { getNodeValue } from "../../../models/tree";
-import { ContextMenuKind } from '../context-menu';
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { filterCollectionFilesBySelection } from "store/collection-panel/collection-panel-files/collection-panel-files-state";
import { sanitizeToken } from "./helpers";
diff --git a/services/workbench2/src/views-components/context-menu/context-menu.tsx b/services/workbench2/src/views-components/context-menu/context-menu.tsx
index 565785c11e..6314ba97ad 100644
--- a/services/workbench2/src/views-components/context-menu/context-menu.tsx
+++ b/services/workbench2/src/views-components/context-menu/context-menu.tsx
@@ -11,7 +11,7 @@ import { ContextMenuActionSet, ContextMenuAction } from "./context-menu-action-s
import { Dispatch } from "redux";
import { memoize } from "lodash";
import { sortByProperty } from "common/array-utils";
-import { sortMenuItems } from "common/menu-item-sort";
+import { sortMenuItems, ContextMenuKind } from "./menu-item-sort";
type DataProps = Pick<ContextMenuProps, "anchorEl" | "items" | "open"> & { resource?: ContextMenuResource };
@@ -66,59 +66,11 @@ export const ContextMenu = connect(mapStateToProps, mapDispatchToProps, mergePro
const menuActionSets = new Map<string, ContextMenuActionSet>();
-export const addMenuActionSet = (name: string, itemSet: ContextMenuActionSet) => {
- const sorted = itemSet.map(items => items.sort(sortByProperty("name")));
+export const addMenuActionSet = (name: ContextMenuKind, itemSet: ContextMenuActionSet) => {
+ const sorted = itemSet.map(items => sortMenuItems(name, items));
menuActionSets.set(name, sorted);
};
const emptyActionSet: ContextMenuActionSet = [];
const getMenuActionSet = (resource?: ContextMenuResource): ContextMenuActionSet =>
resource ? menuActionSets.get(resource.menuKind) || emptyActionSet : emptyActionSet;
-
-export enum ContextMenuKind {
- API_CLIENT_AUTHORIZATION = "ApiClientAuthorization",
- ROOT_PROJECT = "RootProject",
- PROJECT = "Project",
- FILTER_GROUP = "FilterGroup",
- READONLY_PROJECT = "ReadOnlyProject",
- FROZEN_PROJECT = "FrozenProject",
- FROZEN_PROJECT_ADMIN = "FrozenProjectAdmin",
- PROJECT_ADMIN = "ProjectAdmin",
- FILTER_GROUP_ADMIN = "FilterGroupAdmin",
- RESOURCE = "Resource",
- FAVORITE = "Favorite",
- TRASH = "Trash",
- COLLECTION_FILES = "CollectionFiles",
- COLLECTION_FILES_MULTIPLE = "CollectionFilesMultiple",
- READONLY_COLLECTION_FILES = "ReadOnlyCollectionFiles",
- READONLY_COLLECTION_FILES_MULTIPLE = "ReadOnlyCollectionFilesMultiple",
- COLLECTION_FILES_NOT_SELECTED = "CollectionFilesNotSelected",
- COLLECTION_FILE_ITEM = "CollectionFileItem",
- COLLECTION_DIRECTORY_ITEM = "CollectionDirectoryItem",
- READONLY_COLLECTION_FILE_ITEM = "ReadOnlyCollectionFileItem",
- READONLY_COLLECTION_DIRECTORY_ITEM = "ReadOnlyCollectionDirectoryItem",
- COLLECTION = "Collection",
- COLLECTION_ADMIN = "CollectionAdmin",
- READONLY_COLLECTION = "ReadOnlyCollection",
- OLD_VERSION_COLLECTION = "OldVersionCollection",
- TRASHED_COLLECTION = "TrashedCollection",
- PROCESS = "Process",
- RUNNING_PROCESS_ADMIN = "RunningProcessAdmin",
- PROCESS_ADMIN = "ProcessAdmin",
- RUNNING_PROCESS_RESOURCE = "RunningProcessResource",
- PROCESS_RESOURCE = "ProcessResource",
- READONLY_PROCESS_RESOURCE = "ReadOnlyProcessResource",
- PROCESS_LOGS = "ProcessLogs",
- REPOSITORY = "Repository",
- SSH_KEY = "SshKey",
- VIRTUAL_MACHINE = "VirtualMachine",
- KEEP_SERVICE = "KeepService",
- USER = "User",
- GROUPS = "Group",
- GROUP_MEMBER = "GroupMember",
- PERMISSION_EDIT = "PermissionEdit",
- LINK = "Link",
- WORKFLOW = "Workflow",
- READONLY_WORKFLOW = "ReadOnlyWorkflow",
- SEARCH_RESULTS = "SearchResults",
-}
diff --git a/services/workbench2/src/views-components/context-menu/menu-item-sort.ts b/services/workbench2/src/views-components/context-menu/menu-item-sort.ts
new file mode 100644
index 0000000000..7e14fb6ec1
--- /dev/null
+++ b/services/workbench2/src/views-components/context-menu/menu-item-sort.ts
@@ -0,0 +1,89 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import { ContextMenuAction } from './context-menu-action-set';
+import { ContextMenuActionNames } from 'views-components/context-menu/context-menu-action-set';
+import { sortByProperty } from 'common/array-utils';
+
+export enum ContextMenuKind {
+ API_CLIENT_AUTHORIZATION = "ApiClientAuthorization",
+ ROOT_PROJECT = "RootProject",
+ PROJECT = "Project",
+ FILTER_GROUP = "FilterGroup",
+ READONLY_PROJECT = "ReadOnlyProject",
+ FROZEN_PROJECT = "FrozenProject",
+ FROZEN_PROJECT_ADMIN = "FrozenProjectAdmin",
+ PROJECT_ADMIN = "ProjectAdmin",
+ FILTER_GROUP_ADMIN = "FilterGroupAdmin",
+ RESOURCE = "Resource",
+ FAVORITE = "Favorite",
+ TRASH = "Trash",
+ COLLECTION_FILES = "CollectionFiles",
+ COLLECTION_FILES_MULTIPLE = "CollectionFilesMultiple",
+ READONLY_COLLECTION_FILES = "ReadOnlyCollectionFiles",
+ READONLY_COLLECTION_FILES_MULTIPLE = "ReadOnlyCollectionFilesMultiple",
+ COLLECTION_FILES_NOT_SELECTED = "CollectionFilesNotSelected",
+ COLLECTION_FILE_ITEM = "CollectionFileItem",
+ COLLECTION_DIRECTORY_ITEM = "CollectionDirectoryItem",
+ READONLY_COLLECTION_FILE_ITEM = "ReadOnlyCollectionFileItem",
+ READONLY_COLLECTION_DIRECTORY_ITEM = "ReadOnlyCollectionDirectoryItem",
+ COLLECTION = "Collection",
+ COLLECTION_ADMIN = "CollectionAdmin",
+ READONLY_COLLECTION = "ReadOnlyCollection",
+ OLD_VERSION_COLLECTION = "OldVersionCollection",
+ TRASHED_COLLECTION = "TrashedCollection",
+ PROCESS = "Process",
+ RUNNING_PROCESS_ADMIN = "RunningProcessAdmin",
+ PROCESS_ADMIN = "ProcessAdmin",
+ RUNNING_PROCESS_RESOURCE = "RunningProcessResource",
+ PROCESS_RESOURCE = "ProcessResource",
+ READONLY_PROCESS_RESOURCE = "ReadOnlyProcessResource",
+ PROCESS_LOGS = "ProcessLogs",
+ REPOSITORY = "Repository",
+ SSH_KEY = "SshKey",
+ VIRTUAL_MACHINE = "VirtualMachine",
+ KEEP_SERVICE = "KeepService",
+ USER = "User",
+ GROUPS = "Group",
+ GROUP_MEMBER = "GroupMember",
+ PERMISSION_EDIT = "PermissionEdit",
+ LINK = "Link",
+ WORKFLOW = "Workflow",
+ READONLY_WORKFLOW = "ReadOnlyWorkflow",
+ SEARCH_RESULTS = "SearchResults",
+}
+
+const processOrder = [
+ ContextMenuActionNames.VIEW_DETAILS,
+ ContextMenuActionNames.OPEN_IN_NEW_TAB,
+ ContextMenuActionNames.OUTPUTS,
+ ContextMenuActionNames.API_DETAILS,
+ ContextMenuActionNames.EDIT_PROCESS,
+ ContextMenuActionNames.COPY_AND_RERUN_PROCESS,
+ ContextMenuActionNames.MOVE_TO,
+ ContextMenuActionNames.REMOVE,
+ ContextMenuActionNames.ADD_TO_FAVORITES,
+ ContextMenuActionNames.ADD_TO_PUBLIC_FAVORITES,
+];
+
+const kindToOrder: Record<string, ContextMenuActionNames[]> = {
+ [ContextMenuKind.PROCESS_RESOURCE]: processOrder,
+};
+
+export const sortMenuItems = (menuKind: ContextMenuKind, menuItems: ContextMenuAction[]) => {
+ const order = kindToOrder[menuKind];
+ //if no specified order, sort by name
+ if (!order) return menuItems.sort(sortByProperty("name"));
+
+ const bucketMap = new Map();
+ const leftovers: ContextMenuAction[] = [];
+
+ order.forEach((name) => bucketMap.set(name, null));
+ menuItems.forEach((item) => {
+ if (bucketMap.has(item.name)) bucketMap.set(item.name, item);
+ else leftovers.push(item);
+ });
+
+ return Array.from(bucketMap.values()).concat(leftovers).filter((item) => item !== null);
+};
diff --git a/services/workbench2/src/views/groups-panel/groups-panel.tsx b/services/workbench2/src/views/groups-panel/groups-panel.tsx
index 86c85b5c97..e7f682b052 100644
--- a/services/workbench2/src/views/groups-panel/groups-panel.tsx
+++ b/services/workbench2/src/views/groups-panel/groups-panel.tsx
@@ -14,7 +14,7 @@ import { ResourceName } from 'views-components/data-explorer/renderers';
import { createTree } from 'models/tree';
import { GROUPS_PANEL_ID, openCreateGroupDialog } from 'store/groups-panel/groups-panel-actions';
import { noop } from 'lodash/fp';
-import { ContextMenuKind } from 'views-components/context-menu/context-menu';
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { getResource, ResourcesState } from 'store/resources/resources';
import { GroupResource } from 'models/group';
import { RootState } from 'store/store';
diff --git a/services/workbench2/src/views/process-panel/process-output-collection-files.ts b/services/workbench2/src/views/process-panel/process-output-collection-files.ts
index d0b44cd1e6..c8165564bd 100644
--- a/services/workbench2/src/views/process-panel/process-output-collection-files.ts
+++ b/services/workbench2/src/views/process-panel/process-output-collection-files.ts
@@ -9,7 +9,7 @@ import {
} from "components/collection-panel-files/collection-panel-files";
import { Dispatch } from "redux";
import { collectionPanelFilesAction } from "store/collection-panel/collection-panel-files/collection-panel-files-actions";
-import { ContextMenuKind } from "views-components/context-menu/context-menu";
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { openContextMenu, openCollectionFilesContextMenu } from 'store/context-menu/context-menu-actions';
import { openUploadCollectionFilesDialog } from 'store/collections/collection-upload-actions';
import { ResourceKind } from "models/resource";
diff --git a/services/workbench2/src/views/trash-panel/trash-panel.tsx b/services/workbench2/src/views/trash-panel/trash-panel.tsx
index ac11bb7195..31804fbdb8 100644
--- a/services/workbench2/src/views/trash-panel/trash-panel.tsx
+++ b/services/workbench2/src/views/trash-panel/trash-panel.tsx
@@ -28,7 +28,7 @@ import {
import { navigateTo } from "store/navigation/navigation-action";
import { loadDetailsPanel } from "store/details-panel/details-panel-action";
import { toggleTrashed } from "store/trash/trash-actions";
-import { ContextMenuKind } from "views-components/context-menu/context-menu";
+import { ContextMenuKind } from 'views-components/context-menu/menu-item-sort';
import { Dispatch } from "redux";
import { createTree } from 'models/tree';
import {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list