[ARVADOS-WORKBENCH2] updated: 2.4.0-36-ge93453d8

Git user git at public.arvados.org
Wed Apr 20 13:51:05 UTC 2022


Summary of changes:
 .../process-runtime-status/process-runtime-status.tsx             | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

       via  e93453d8882428f0cfeda3f7692e843185b734c7 (commit)
      from  020ebbaeb17659f86d3480b7fc89146f8ce0d02e (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 e93453d8882428f0cfeda3f7692e843185b734c7
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Wed Apr 20 10:50:33 2022 -0300

    19045: Respects also newlines on error/warning summaries.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/src/views-components/process-runtime-status/process-runtime-status.tsx b/src/views-components/process-runtime-status/process-runtime-status.tsx
index 3c6b525d..a2cd455c 100644
--- a/src/views-components/process-runtime-status/process-runtime-status.tsx
+++ b/src/views-components/process-runtime-status/process-runtime-status.tsx
@@ -19,6 +19,7 @@ import classNames from 'classnames';
 
 type CssRules = 'heading'
     | 'summary'
+    | 'summaryText'
     | 'details'
     | 'detailsText'
     | 'error'
@@ -34,6 +35,9 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         paddingLeft: theme.spacing.unit * 1,
         paddingRight: theme.spacing.unit * 1,
     },
+    summaryText: {
+        whiteSpace: 'pre-line',
+    },
     details: {
         paddingLeft: theme.spacing.unit * 1,
         paddingRight: theme.spacing.unit * 1,
@@ -69,7 +73,7 @@ export const ProcessRuntimeStatus = withStyles(styles)(
     return <>
         { runtimeStatus?.error &&
         <div data-cy='process-runtime-status-error'><ExpansionPanel className={classes.error} elevation={0}>
-            <ExpansionPanelSummary className={classes.summary} expandIcon={<ExpandMoreIcon />}>
+            <ExpansionPanelSummary className={classNames(classes.summary, classes.detailsText)} expandIcon={<ExpandMoreIcon />}>
                 <Typography className={classNames(classes.heading, classes.errorColor)}>
                     {`Error: ${runtimeStatus.error }`}
                 </Typography>
@@ -83,7 +87,7 @@ export const ProcessRuntimeStatus = withStyles(styles)(
         }
         { runtimeStatus?.warning &&
         <div data-cy='process-runtime-status-warning' ><ExpansionPanel className={classes.warning} elevation={0}>
-            <ExpansionPanelSummary className={classes.summary} expandIcon={<ExpandMoreIcon />}>
+            <ExpansionPanelSummary className={classNames(classes.summary, classes.detailsText)} expandIcon={<ExpandMoreIcon />}>
                 <Typography className={classNames(classes.heading, classes.warningColor)}>
                     {`Warning: ${runtimeStatus.warning }`}
                 </Typography>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list