chore: changeset and fixing tserrors

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-01-30 22:03:36 +01:00
parent c230ae7920
commit ce32a61d38
3 changed files with 14 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Added the ability to tail the `LogViewer` logs
@@ -39,13 +39,11 @@ export const TaskBorder = ({
return <LinearProgress variant="indeterminate" />;
}
if (isError) {
return (
<LinearProgress variant="determinate" classes={{ bar: styles.failed }} />
);
}
return (
<LinearProgress variant="determinate" classes={{ bar: styles.success }} />
<LinearProgress
variant="determinate"
classes={{ bar: isError ? styles.failed : styles.success }}
value={100}
/>
);
};
@@ -30,8 +30,12 @@ export const TaskLogStream = (opts: { logs: { [k: string]: string[] } }) => {
return (
<div className={styles.root}>
<LogViewer
tail
text={Object.values(opts.logs)
.map(l => l.join('\n'))
.filter(Boolean)
.join('\n')}
/>
</div>