From: Lucas Di Pentima Date: Tue, 19 Oct 2021 19:23:21 +0000 (-0300) Subject: 18128: Adds logs panel to process view. WIP X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/5eeb8bd77267293db601ba914fc09ef162057b33?hp=0f433d72c1af64a6359478da2edb8c9f589d579b 18128: Adds logs panel to process view. WIP Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/store/process-logs-panel/process-logs-panel.ts b/src/store/process-logs-panel/process-logs-panel.ts index deaaab6a85..87b50bd2f9 100644 --- a/src/store/process-logs-panel/process-logs-panel.ts +++ b/src/store/process-logs-panel/process-logs-panel.ts @@ -1,9 +1,10 @@ -import { RootState } from '../store'; -import { matchProcessLogRoute } from 'routes/routes'; // Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 +import { RootState } from '../store'; +import { matchProcessLogRoute, matchProcessRoute } from 'routes/routes'; + export interface ProcessLogsPanel { filters: string[]; selectedFilter: string; @@ -20,6 +21,6 @@ export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel) export const getProcessLogsPanelCurrentUuid = ({ router }: RootState) => { const pathname = router.location ? router.location.pathname : ''; - const match = matchProcessLogRoute(pathname); + const match = matchProcessLogRoute(pathname) || matchProcessRoute(pathname); return match ? match.params.id : undefined; }; diff --git a/src/views/process-panel/process-panel-root.tsx b/src/views/process-panel/process-panel-root.tsx index e604fe2b3b..f30ebf7053 100644 --- a/src/views/process-panel/process-panel-root.tsx +++ b/src/views/process-panel/process-panel-root.tsx @@ -12,6 +12,8 @@ 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'; @@ -40,6 +42,8 @@ export type ProcessPanelRootProps = ProcessPanelRootDataProps & ProcessPanelRoot const panelsData: MPVPanelState[] = [ {name: "Info"}, + {name: "Details"}, + {name: "Logs", visible: false}, {name: "Subprocesses"}, ]; @@ -56,6 +60,12 @@ export const ProcessPanelRoot = withStyles(styles)(({ process, ...props }: Proce cancelProcess={props.cancelProcess} /> + + + + + +