From: Lisa Knox Date: Wed, 23 Nov 2022 22:59:56 +0000 (-0500) Subject: 19690: description hover hacked in X-Git-Tag: 2.5.0~15^2~22 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/1f2ddfbf602cfa8c0dca0d81e3f2676904dd4c80 19690: description hover hacked in Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx index 47e5b287..ea4b8512 100644 --- a/src/views-components/data-explorer/renderers.tsx +++ b/src/views-components/data-explorer/renderers.tsx @@ -664,16 +664,16 @@ export const ResourceWorkflowStatus = connect( }; })((props: { ownerUuid?: string, uuidPrefix: string }) => renderWorkflowStatus(props.uuidPrefix, props.ownerUuid)); -export const ResourceLastModifiedDate = connect( +export const ResourceCreatedAtDate = connect( (state: RootState, props: { uuid: string }) => { const resource = getResource(props.uuid)(state.resources); - return { date: resource ? resource.modifiedAt : '' }; + return { date: resource ? resource.createdAt : '' }; })((props: { date: string }) => renderDate(props.date)); - -export const ResourceCreatedAtDate = connect( + +export const ResourceLastModifiedDate = connect( (state: RootState, props: { uuid: string }) => { const resource = getResource(props.uuid)(state.resources); - return { date: resource ? resource.createdAt : '' }; + return { date: resource ? resource.modifiedAt : '' }; })((props: { date: string }) => renderDate(props.date)); export const ResourceTrashDate = connect( @@ -723,6 +723,21 @@ export const ResourceOwnerName = connect( return { owner: ownerName ? ownerName!.name : resource!.ownerUuid }; })((props: { owner: string }) => renderOwner(props.owner)); + +const renderDescription = (description: string)=>{ + const truncatedDescription = description.slice(0, 18) + '...' + return {truncatedDescription}; +} + +export const ResourceDescription = connect( + (state: RootState, props: { uuid: string }) => { + const resource = getResource(props.uuid)(state.resources); + //testing + const containerRequestDescription = "This is a description for a Container Request, also known as a 'Process'. I'm still not 100% sure why one term is used over the other in practice, but I'm new here so I expect it will become clear to me when it's appropriate. This long bit of text is for testing purposes. -LK" + if (resource && !resource.description && resource.kind === ResourceKind.PROCESS) resource.description = containerRequestDescription + return { description: resource ? resource.description : '' }; + })((props: { description: string }) => renderDescription(props.description)); + const userFromID = connect( (state: RootState, props: { uuid: string }) => { diff --git a/src/views/groups-panel/groups-panel.tsx b/src/views/groups-panel/groups-panel.tsx index 3251c729..f6f5048d 100644 --- a/src/views/groups-panel/groups-panel.tsx +++ b/src/views/groups-panel/groups-panel.tsx @@ -85,6 +85,7 @@ export const GroupsPanel = withStyles(styles)(connect( class GroupsPanel extends React.Component> { render() { + console.log('GROUPSPANEL', this) return (
= [ filters: createTree(), render: uuid => }, + + { + name: ProjectPanelColumnNames.UUID, + selected: false, + configurable: true, + filters: createTree(), + render: uuid =><>{uuid} + }, + { + name: ProjectPanelColumnNames.CREATED_AT, + selected: false, + configurable: true, + filters: createTree(), + render: uuid => + }, { name: ProjectPanelColumnNames.LAST_MODIFIED, selected: true, @@ -121,18 +140,19 @@ export const projectPanelColumns: DataColumns = [ render: uuid => }, { - name: ProjectPanelColumnNames.UUID, + name: ProjectPanelColumnNames.DELETE_AT, selected: true, configurable: true, + sortDirection: SortDirection.DESC, filters: createTree(), - render: uuid =><>{uuid} + render: uuid => }, { - name: ProjectPanelColumnNames.CREATED_AT, + name: ProjectPanelColumnNames.DESCRIPTION, selected: true, configurable: true, filters: createTree(), - render: uuid => + render: uuid => } ];