[arvados-workbench2] updated: 2.4.0-364-g63b6ab23

git repository hosting git at public.arvados.org
Thu Dec 1 23:26:14 UTC 2022


Summary of changes:
 src/views-components/data-explorer/renderers.tsx |  2 +-
 src/views/project-panel/project-panel.tsx        | 85 ++++++++++++------------
 2 files changed, 44 insertions(+), 43 deletions(-)

       via  63b6ab236bbe65ffd9f57c64172a8950d4dc9826 (commit)
      from  3277922ef580144a55f34e80992ca40b9fb66146 (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 63b6ab236bbe65ffd9f57c64172a8950d4dc9826
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Thu Dec 1 18:26:09 2022 -0500

    rearranged new columns, standardized some variable namames
    Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx
index 174cad66..db97f891 100644
--- a/src/views-components/data-explorer/renderers.tsx
+++ b/src/views-components/data-explorer/renderers.tsx
@@ -672,7 +672,7 @@ export const ResourceProcessState = connect(
         return { state: process?.container?.state ? process?.container?.state : '' };
     })((props: { state: string }) => renderProcessState(props.state));
 
-export const ResourceProcessUuid = connect(
+export const ResourceContainerUuid = connect(
     (state: RootState, props: { uuid: string }) => {
         const process = getProcess(props.uuid)(state.resources)
         return { uuid: process?.container?.uuid ? process?.container?.uuid : '' };
diff --git a/src/views/project-panel/project-panel.tsx b/src/views/project-panel/project-panel.tsx
index c7e7212b..bc5a170f 100644
--- a/src/views/project-panel/project-panel.tsx
+++ b/src/views/project-panel/project-panel.tsx
@@ -16,27 +16,27 @@ import { ContainerRequestState } from 'models/container-request';
 import { SortDirection } from 'components/data-table/data-column';
 import { ResourceKind, Resource } from 'models/resource';
 import {
+    ResourceName,
+    ProcessStatus as ResourceStatus,
+    ResourceProcessState,
+    ResourceType,
+    ResourceOwnerWithName,
+    ResourceVersion,
+    ResourceDescription,
     ResourceFileSize,
     ResourceFileCount,
-    ResourceCreatedAtDate,
-    ResourceLastModifiedDate,
-    ResourceTrashDate,
-    ResourceDeleteDate,
-    ProcessStatus,
-    ResourceType,
     ResourceUUID,
+    ResourceContainerUuid,
     ResourceOutputUuid,
     ResourceLogUuid,
-    ResourceProcessUuid,
-    ResourceProcessState,
     ResourceParentProcess,
     ResourcePortableDataHash,
-    ResourceVersion,
-    ResourceDescription,
-    ResourceOwnerWithName
+    ResourceCreatedAtDate,
+    ResourceLastModifiedDate,
+    ResourceTrashDate,
+    ResourceDeleteDate,
 } from 'views-components/data-explorer/renderers';
 import { ProjectIcon } from 'components/icon/icon';
-import { ResourceName } from 'views-components/data-explorer/renderers';
 import {
     ResourcesState,
     getResource
@@ -74,23 +74,23 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
 export enum ProjectPanelColumnNames {
     NAME = "Name",
     STATUS = "Status",
+    STATE = 'State',
     TYPE = "Type",
     OWNER = "Owner",
+    VERSION = "Version",
+    DESCRIPTION = "Description",
     FILE_SIZE = "File size",
     FILE_COUNT = "File count",
     UUID = "UUID",
-    STATE = 'State',
     CONTAINER_UUID = "Container UUID",
     OUTPUT_UUID = "Output UUID",
     LOG_UUID = "Log UUID",
-    PARENT_PROCESS = 'Parent process',
+    PARENT_PROCESS = 'Parent process UUID',
+    PORTABLE_DATA_HASH = "Portable data hash",
     CREATED_AT = "Date created",
     LAST_MODIFIED = "Last modified",
     TRASH_AT = "Trash at",
     DELETE_AT = "Delete at",
-    DESCRIPTION = "Description",
-    PORTABLE_DATA_HASH = "Portable Data Hash",
-    VERSION = "Version"
 }
 
 export interface ProjectPanelFilter extends DataTableFilterItem {
@@ -112,7 +112,14 @@ export const projectPanelColumns: DataColumns<string> = [
         configurable: true,
         mutuallyExclusiveFilters: true,
         filters: getInitialProcessStatusFilters(),
-        render: uuid => <ProcessStatus uuid={uuid} />,
+        render: uuid => <ResourceStatus uuid={uuid} />,
+    },
+    {
+        name: ProjectPanelColumnNames.STATE,
+        selected: false,
+        configurable: true,
+        filters: createTree(),
+        render: uuid => <ResourceProcessState uuid={uuid}/>
     },
     {
         name: ProjectPanelColumnNames.TYPE,
@@ -129,10 +136,24 @@ export const projectPanelColumns: DataColumns<string> = [
         render: uuid => <ResourceOwnerWithName uuid={uuid} />
     },
     {
-        name: ProjectPanelColumnNames.FILE_SIZE,
+        name: ProjectPanelColumnNames.VERSION,
+        selected: false,
+        configurable: true,
+        filters: createTree(),
+        render: uuid =><ResourceVersion uuid={uuid}/>
+    },
+    {
+        name: ProjectPanelColumnNames.DESCRIPTION,
         selected: false,
         configurable: true,
         filters: createTree(),
+        render: uuid =><ResourceDescription uuid={uuid}/>
+    },
+    {
+        name: ProjectPanelColumnNames.FILE_SIZE,
+        selected: true,
+        configurable: true,
+        filters: createTree(),
         render: uuid => <ResourceFileSize uuid={uuid} />
     },
     {
@@ -154,7 +175,7 @@ export const projectPanelColumns: DataColumns<string> = [
         selected: false,
         configurable: true,
         filters: createTree(),
-        render: uuid => <ResourceProcessUuid uuid={uuid}/>
+        render: uuid => <ResourceContainerUuid uuid={uuid}/>
     },
     {
         name: ProjectPanelColumnNames.OUTPUT_UUID,
@@ -170,13 +191,6 @@ export const projectPanelColumns: DataColumns<string> = [
         filters: createTree(),
         render: uuid => <ResourceLogUuid uuid={uuid}/>
     },
-    {
-        name: ProjectPanelColumnNames.STATE,
-        selected: true,
-        configurable: true,
-        filters: createTree(),
-        render: uuid => <ResourceProcessState uuid={uuid}/>
-    },
     {
         name: ProjectPanelColumnNames.PARENT_PROCESS,
         selected: false,
@@ -195,12 +209,13 @@ export const projectPanelColumns: DataColumns<string> = [
         name: ProjectPanelColumnNames.CREATED_AT,
         selected: false,
         configurable: true,
+        sortDirection: SortDirection.DESC,
         filters: createTree(),
         render: uuid =><ResourceCreatedAtDate uuid={uuid}/>
     },
     {
         name: ProjectPanelColumnNames.LAST_MODIFIED,
-        selected: false,
+        selected: true,
         configurable: true,
         sortDirection: SortDirection.DESC,
         filters: createTree(),
@@ -222,20 +237,6 @@ export const projectPanelColumns: DataColumns<string> = [
         filters: createTree(),
         render: uuid => <ResourceDeleteDate uuid={uuid} />
     },
-    {
-        name: ProjectPanelColumnNames.DESCRIPTION,
-        selected: false,
-        configurable: true,
-        filters: createTree(),
-        render: uuid =><ResourceDescription uuid={uuid}/>
-    },
-    {
-        name: ProjectPanelColumnNames.VERSION,
-        selected: false,
-        configurable: true,
-        filters: createTree(),
-        render: uuid =><ResourceVersion uuid={uuid}/>
-    }
     
 ];
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list