From: Lucas Di Pentima Date: Wed, 20 Oct 2021 17:16:35 +0000 (-0300) Subject: 18128: Adds Multi-View Panel to collection's view. X-Git-Tag: 2.4.0~25^2~5 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/892d0e98eeb20624cf49ca408af6156b4d3b0f55?ds=sidebyside 18128: Adds Multi-View Panel to collection's view. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/views/collection-panel/collection-panel.tsx b/src/views/collection-panel/collection-panel.tsx index e78b1f3d..bcf72edc 100644 --- a/src/views/collection-panel/collection-panel.tsx +++ b/src/views/collection-panel/collection-panel.tsx @@ -33,6 +33,7 @@ import { COLLECTION_PANEL_LOAD_FILES, loadCollectionFiles, COLLECTION_PANEL_LOAD import { Link } from 'react-router-dom'; import { Link as ButtonLink } from '@material-ui/core'; import { ResourceOwnerWithName, ResponsiblePerson } from 'views-components/data-explorer/renderers'; +import { MPVContainer, MPVPanelContent, MPVPanelState } from 'components/multi-panel-view/multi-panel-view'; type CssRules = 'root' | 'button' @@ -49,9 +50,7 @@ type CssRules = 'root' const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { - display: 'flex', - flexFlow: 'column', - height: 'calc(100vh - 130px)', // (100% viewport height) - (top bar + breadcrumbs) + width: '100%', }, button: { cursor: 'pointer' @@ -133,9 +132,14 @@ export const CollectionPanel = withStyles(styles)( class extends React.Component { render() { const { classes, item, dispatch, isWritable, isOldVersion, isLoadingFiles, tooManyFiles } = this.props; + const panelsData: MPVPanelState[] = [ + {name: "Details"}, + {name: "Properties", visible: false}, + {name: "Files"}, + ]; return item - ?
- + ? + }> @@ -186,9 +190,9 @@ export const CollectionPanel = withStyles(styles)( - + - + }> {"Properties"} @@ -220,8 +224,8 @@ export const CollectionPanel = withStyles(styles)( - -
+ + (loadCollectionFiles(this.props.item.uuid)); } } /> -
-
+ + : null; } diff --git a/src/views/process-panel/process-panel-root.tsx b/src/views/process-panel/process-panel-root.tsx index 6879d997..deb5f1b0 100644 --- a/src/views/process-panel/process-panel-root.tsx +++ b/src/views/process-panel/process-panel-root.tsx @@ -12,7 +12,6 @@ import { SubprocessPanel } from 'views/subprocess-panel/subprocess-panel'; import { SubprocessFilterDataProps } from 'components/subprocess-filter/subprocess-filter'; import { MPVContainer, MPVPanelContent, MPVPanelState } from 'components/multi-panel-view/multi-panel-view'; import { ArvadosTheme } from 'common/custom-theme'; -import { ProcessLogPanel } from 'views/process-log-panel/process-log-panel'; import { ProcessDetailsCard } from './process-details-card'; type CssRules = 'root';