[arvados-workbench2] updated: 2.4.0-357-gadd698be

git repository hosting git at public.arvados.org
Wed Nov 30 16:22:02 UTC 2022


Summary of changes:
 src/common/formatters.ts                         | 4 ++--
 src/views-components/data-explorer/renderers.tsx | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

       via  add698bee2d2b7002a99aa08ac99b93179e2a535 (commit)
      from  7f697d536ed03c19844677e027bbab17e9b5e5f6 (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 add698bee2d2b7002a99aa08ac99b93179e2a535
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Wed Nov 30 11:21:50 2022 -0500

    standardized nullish grid cells to display hyphens i nnstead of nothing or (none)
    Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/common/formatters.ts b/src/common/formatters.ts
index b4b9bc41..3cacc6c8 100644
--- a/src/common/formatters.ts
+++ b/src/common/formatters.ts
@@ -20,7 +20,7 @@ export const formatDate = (isoDate?: string | null, utc: boolean = false) => {
     }
     return text === 'Invalid Date' ? '(none)' : text;
   }
-  return '(none)';
+  return '-';
 };
 
 export const formatFileSize = (size?: number | string) => {
@@ -36,7 +36,7 @@ export const formatFileSize = (size?: number | string) => {
     }
   }
   if ((typeof size === 'string' && size === '') || size === undefined) {
-    return '';
+    return '-';
   }
   return '0 B';
 };
diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx
index 17bd3f2a..9c24a677 100644
--- a/src/views-components/data-explorer/renderers.tsx
+++ b/src/views-components/data-explorer/renderers.tsx
@@ -665,7 +665,7 @@ export const ResourceWorkflowStatus = connect(
         };
     })((props: { ownerUuid?: string, uuidPrefix: string }) => renderWorkflowStatus(props.uuidPrefix, props.ownerUuid));
 
-const renderProcessState = (processState: string) => <Typography>{processState}</Typography>
+const renderProcessState = (processState: string) => <Typography>{processState || '-'}</Typography>
 
 export const ResourceProcessState = connect(
     (state: RootState, props: { uuid: string }) => {
@@ -715,7 +715,7 @@ export const ResourceFileSize = connect(
 
 const renderOwner = (owner: string) =>
     <Typography noWrap>
-        {owner}
+        {owner || '-'}
     </Typography>;
 
 export const ResourceOwner = connect(

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list