[ARVADOS-WORKBENCH2] updated: 1.1.4-617-g24034b0
Git user
git at public.curoverse.com
Sat Aug 18 16:30:56 EDT 2018
Summary of changes:
src/store/navigation/navigation-action.ts | 4 ++--
src/store/side-panel/side-panel-action.ts | 3 ++-
src/store/side-panel/side-panel-reducer.ts | 18 +++++++++---------
src/views/workbench/workbench.tsx | 1 -
4 files changed, 13 insertions(+), 13 deletions(-)
via 24034b05e619fefd6015db12be27c812e9b4393d (commit)
from 4fe47dee802ef6491649317f335a8558f9f75c40 (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 24034b05e619fefd6015db12be27c812e9b4393d
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Sat Aug 18 22:30:46 2018 +0200
SidePanel renamings
Feature #13986
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --git a/src/store/navigation/navigation-action.ts b/src/store/navigation/navigation-action.ts
index 593ff5d..50ec93d 100644
--- a/src/store/navigation/navigation-action.ts
+++ b/src/store/navigation/navigation-action.ts
@@ -15,7 +15,7 @@ import { getProjectUrl, ProjectResource } from "~/models/project";
import { ProjectService } from "~/services/project-service/project-service";
import { ServiceRepository } from "~/services/services";
import { sidePanelActions } from "../side-panel/side-panel-action";
-import { SidePanelIdentifiers } from "../side-panel/side-panel-reducer";
+import { SidePanelId } from "../side-panel/side-panel-reducer";
import { getUuidObjectType, ObjectTypes } from "~/models/object-types";
export const getResourceUrl = (resourceKind: ResourceKind, resourceUuid: string): string => {
@@ -75,7 +75,7 @@ export const restoreBranch = (itemId: string) =>
const ancestors = await loadProjectAncestors(itemId, services.projectService);
const uuids = ancestors.map(ancestor => ancestor.uuid);
await loadBranch(uuids, dispatch);
- dispatch(sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_OPEN(SidePanelIdentifiers.PROJECTS));
+ dispatch(sidePanelActions.TOGGLE_SIDE_PANEL_ITEM_OPEN(SidePanelId.PROJECTS));
uuids.forEach(uuid => {
dispatch(projectActions.TOGGLE_PROJECT_TREE_ITEM_OPEN(uuid));
});
diff --git a/src/store/side-panel/side-panel-action.ts b/src/store/side-panel/side-panel-action.ts
index 4aa5809..ecea353 100644
--- a/src/store/side-panel/side-panel-action.ts
+++ b/src/store/side-panel/side-panel-action.ts
@@ -3,9 +3,10 @@
// SPDX-License-Identifier: AGPL-3.0
import { default as unionize, ofType, UnionOf } from "unionize";
+import { SidePanelId } from "~/store/side-panel/side-panel-reducer";
export const sidePanelActions = unionize({
- TOGGLE_SIDE_PANEL_ITEM_OPEN: ofType<string>()
+ TOGGLE_SIDE_PANEL_ITEM_OPEN: ofType<SidePanelId>()
}, {
tag: 'type',
value: 'payload'
diff --git a/src/store/side-panel/side-panel-reducer.ts b/src/store/side-panel/side-panel-reducer.ts
index 66c2289..db1cbe5 100644
--- a/src/store/side-panel/side-panel-reducer.ts
+++ b/src/store/side-panel/side-panel-reducer.ts
@@ -16,7 +16,7 @@ import { columns as favoritePanelColumns } from "../../views/favorite-panel/favo
export type SidePanelState = SidePanelItem[];
-export const sidePanelReducer = (state: SidePanelState = sidePanelData, action: SidePanelAction) => {
+export const sidePanelReducer = (state: SidePanelState = sidePanelItems, action: SidePanelAction) => {
return sidePanelActions.match(action, {
TOGGLE_SIDE_PANEL_ITEM_OPEN: itemId =>
state.map(it => ({...it, open: itemId === it.id && it.open === false})),
@@ -24,7 +24,7 @@ export const sidePanelReducer = (state: SidePanelState = sidePanelData, action:
});
};
-export enum SidePanelIdentifiers {
+export enum SidePanelId {
PROJECTS = "Projects",
SHARED_WITH_ME = "SharedWithMe",
WORKFLOWS = "Workflows",
@@ -33,9 +33,9 @@ export enum SidePanelIdentifiers {
TRASH = "Trash"
}
-export const sidePanelData = [
+export const sidePanelItems = [
{
- id: SidePanelIdentifiers.PROJECTS,
+ id: SidePanelId.PROJECTS,
name: "Projects",
url: "/projects",
icon: ProjectsIcon,
@@ -52,7 +52,7 @@ export const sidePanelData = [
}
},
{
- id: SidePanelIdentifiers.SHARED_WITH_ME,
+ id: SidePanelId.SHARED_WITH_ME,
name: "Shared with me",
url: "/shared",
icon: ShareMeIcon,
@@ -62,7 +62,7 @@ export const sidePanelData = [
}
},
{
- id: SidePanelIdentifiers.WORKFLOWS,
+ id: SidePanelId.WORKFLOWS,
name: "Workflows",
url: "/workflows",
icon: WorkflowIcon,
@@ -72,7 +72,7 @@ export const sidePanelData = [
}
},
{
- id: SidePanelIdentifiers.RECENT_OPEN,
+ id: SidePanelId.RECENT_OPEN,
name: "Recent open",
url: "/recent",
icon: RecentIcon,
@@ -82,7 +82,7 @@ export const sidePanelData = [
}
},
{
- id: SidePanelIdentifiers.FAVORITES,
+ id: SidePanelId.FAVORITES,
name: "Favorites",
url: "/favorites",
icon: FavoriteIcon,
@@ -95,7 +95,7 @@ export const sidePanelData = [
}
},
{
- id: SidePanelIdentifiers.TRASH,
+ id: SidePanelId.TRASH,
name: "Trash",
url: "/trash",
icon: TrashIcon,
diff --git a/src/views/workbench/workbench.tsx b/src/views/workbench/workbench.tsx
index 4e00349..ac8d61e 100644
--- a/src/views/workbench/workbench.tsx
+++ b/src/views/workbench/workbench.tsx
@@ -29,7 +29,6 @@ import { CreateProjectDialog } from "~/views-components/create-project-dialog/cr
import { detailsPanelActions, loadDetails } from "~/store/details-panel/details-panel-action";
import { contextMenuActions } from "~/store/context-menu/context-menu-actions";
-import { SidePanelIdentifiers } from '~/store/side-panel/side-panel-reducer';
import { ProjectResource } from '~/models/project';
import { ResourceKind } from '~/models/resource';
import { ContextMenu, ContextMenuKind } from "~/views-components/context-menu/context-menu";
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list