[arvados] updated: 2.7.0-6003-g90a328e835
git repository hosting
git at public.arvados.org
Wed Feb 14 02:55:38 UTC 2024
Summary of changes:
services/workbench2/src/components/icon/icon.tsx | 2 ++
.../workbench2/src/views/process-panel/process-resource-card.tsx | 9 ++++++---
2 files changed, 8 insertions(+), 3 deletions(-)
via 90a328e83574deed28d97d558e950b00e4200693 (commit)
from ff660b5e081301201832ac7b33ea12cceb84bc3d (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 90a328e83574deed28d97d558e950b00e4200693
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue Feb 13 21:55:25 2024 -0500
19744: Add icon
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/services/workbench2/src/components/icon/icon.tsx b/services/workbench2/src/components/icon/icon.tsx
index a54bc999e9..1ba88d25b2 100644
--- a/services/workbench2/src/components/icon/icon.tsx
+++ b/services/workbench2/src/components/icon/icon.tsx
@@ -77,6 +77,7 @@ import NotInterested from "@material-ui/icons/NotInterested";
import Image from "@material-ui/icons/Image";
import Stop from "@material-ui/icons/Stop";
import FileCopy from "@material-ui/icons/FileCopy";
+import ShowChart from "@material-ui/icons/ShowChart";
// Import FontAwesome icons
import { library } from "@fortawesome/fontawesome-svg-core";
@@ -274,3 +275,4 @@ export const StartIcon: IconType = props => <PlayArrow {...props} />;
export const StopIcon: IconType = props => <Stop {...props} />;
export const SelectAllIcon: IconType = props => <CheckboxMultipleOutline {...props} />;
export const SelectNoneIcon: IconType = props => <CheckboxMultipleBlankOutline {...props} />;
+export const ShowChartIcon: IconType = props => <ShowChart {...props} />;
diff --git a/services/workbench2/src/views/process-panel/process-resource-card.tsx b/services/workbench2/src/views/process-panel/process-resource-card.tsx
index 1832fe4744..a360e89f0b 100644
--- a/services/workbench2/src/views/process-panel/process-resource-card.tsx
+++ b/services/workbench2/src/views/process-panel/process-resource-card.tsx
@@ -14,7 +14,6 @@ import {
Tooltip,
Typography,
Grid,
- Link,
Button
} from '@material-ui/core';
import { ArvadosTheme } from 'common/custom-theme';
@@ -23,6 +22,7 @@ import {
MaximizeIcon,
ResourceIcon,
UnMaximizeIcon,
+ ShowChartIcon,
} from 'components/icon/icon';
import { MPVPanelProps } from 'components/multi-panel-view/multi-panel-view';
import { connect } from 'react-redux';
@@ -38,7 +38,7 @@ interface ProcessResourceCardDataProps {
usageReport: string | null;
}
-type CssRules = "card" | "header" | "title" | "avatar" | "iconHeader" | "content" | "sectionH3";
+type CssRules = "card" | "header" | "title" | "avatar" | "iconHeader" | "content" | "sectionH3" | "reportButton";
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
card: {
@@ -67,6 +67,9 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
color: theme.customs.colors.greyD,
fontSize: "0.8125rem",
textTransform: "uppercase",
+ },
+ reportButton: {
+ fontSize: '0.75rem'
}
});
@@ -99,7 +102,7 @@ export const ProcessResourceCard = withStyles(styles)(connect()(
}
action={
<div>
- {usageReport && <Button href={usageReport} variant="contained" color="primary">Resource usage report</Button>}
+ {usageReport && <Button href={usageReport} variant="contained" color="primary" className={classes.reportButton}><ShowChartIcon /> Resource usage report</Button>}
{doUnMaximizePanel && panelMaximized &&
<Tooltip title={`Unmaximize ${panelName || 'panel'}`} disableFocusListener>
<IconButton onClick={doUnMaximizePanel}><UnMaximizeIcon /></IconButton>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list