[arvados] updated: 2.7.0-6182-gabce699c34

git repository hosting git at public.arvados.org
Thu Mar 14 14:35:34 UTC 2024


Summary of changes:
 .../views-components/data-explorer/renderers.tsx   | 30 ----------------------
 .../views/collection-panel/collection-panel.tsx    |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)

       via  abce699c344ffe2369e1125b1d65e71e2485f7cb (commit)
      from  857b9529178950df565689d091704b8fc228f2c6 (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 abce699c344ffe2369e1125b1d65e71e2485f7cb
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Thu Mar 14 10:35:30 2024 -0400

    21507: expanded nowrap to all of the places it should apply Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/views-components/data-explorer/renderers.tsx b/services/workbench2/src/views-components/data-explorer/renderers.tsx
index 478dd18601..6406a78e82 100644
--- a/services/workbench2/src/views-components/data-explorer/renderers.tsx
+++ b/services/workbench2/src/views-components/data-explorer/renderers.tsx
@@ -895,35 +895,6 @@ const ownerFromResourceId = compose(
 const _resourceWithName = withStyles(
     {},
     { withTheme: true }
-)((props: { uuid: string; userFullname: string; dispatch: Dispatch; theme: ArvadosTheme }) => {
-    const { uuid, userFullname, dispatch, theme } = props;
-    if (userFullname === "") {
-        dispatch<any>(loadResource(uuid, false));
-        return (
-            <Typography
-                style={{ color: theme.palette.primary.main }}
-                inline
-                noWrap
-            >
-                {uuid}
-            </Typography>
-        );
-    }
-
-    return (
-        <Typography
-            style={{ color: theme.palette.primary.main }}
-            inline
-            noWrap
-        >
-            {userFullname} ({uuid})
-        </Typography>
-    );
-});
-
-const _resourceWithNameWrap = withStyles(
-    {},
-    { withTheme: true }
 )((props: { uuid: string; userFullname: string; dispatch: Dispatch; theme: ArvadosTheme }) => {
     const { uuid, userFullname, dispatch, theme } = props;
     if (userFullname === "") {
@@ -976,7 +947,6 @@ export const ResourceOwnerWithName = ownerFromResourceId(_resourceWithName);
 
 export const ResourceWithName = userFromID(_resourceWithName);
 
-export const ResourceWithNameWrap = userFromID(_resourceWithNameWrap);
 
 export const UserNameFromID = compose(userFromID)((props: { uuid: string; displayAsText?: string; userFullname: string; dispatch: Dispatch }) => {
     const { uuid, userFullname, dispatch } = props;
diff --git a/services/workbench2/src/views/collection-panel/collection-panel.tsx b/services/workbench2/src/views/collection-panel/collection-panel.tsx
index 6a50442a34..28983457e6 100644
--- a/services/workbench2/src/views/collection-panel/collection-panel.tsx
+++ b/services/workbench2/src/views/collection-panel/collection-panel.tsx
@@ -34,7 +34,7 @@ import { UserResource } from 'models/user';
 import { getUserUuid } from 'common/getuser';
 import { Link } from 'react-router-dom';
 import { Link as ButtonLink } from '@material-ui/core';
-import { ResourceWithNameWrap, ResponsiblePerson } from 'views-components/data-explorer/renderers';
+import { ResourceWithName, ResponsiblePerson } from 'views-components/data-explorer/renderers';
 import { MPVContainer, MPVPanelContent, MPVPanelState } from 'components/multi-panel-view/multi-panel-view';
 import { resourceIsFrozen } from 'common/frozen-resources';
 import { NotFoundView } from 'views/not-found-panel/not-found-panel';
@@ -307,7 +307,7 @@ export const CollectionDetailsAttributes = (props: CollectionDetailsProps) => {
         <Grid item xs={12} md={mdSize}>
             <DetailsAttribute classLabel={classes.label} classValue={classes.value}
                 label='Owner' linkToUuid={item.ownerUuid}
-                uuidEnhancer={(uuid: string) => <ResourceWithNameWrap uuid={uuid} />} />
+                uuidEnhancer={(uuid: string) => <ResourceWithName uuid={uuid} />} />
         </Grid>
         <div data-cy="responsible-person-wrapper" ref={responsiblePersonRef}>
             <Grid item xs={12} md={12}>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list