Add experiment logs to the monitoring page #48
@@ -246,7 +246,7 @@ function VisProgPage() {
|
|||||||
// however this would cause unneeded updates
|
// however this would cause unneeded updates
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [severityIndex]);
|
}, [severityIndex]);
|
||||||
console.log(programValidity);
|
console.log(severityIndex);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<VisualProgrammingUI/>
|
<VisualProgrammingUI/>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function WarningsList(props: { warnings: EditorWarning[] }) {
|
|||||||
global: props.warnings.filter(w => w.scope.id === globalWarning),
|
global: props.warnings.filter(w => w.scope.id === globalWarning),
|
||||||
other: props.warnings.filter(w => w.scope.id !== globalWarning),
|
other: props.warnings.filter(w => w.scope.id !== globalWarning),
|
||||||
}
|
}
|
||||||
|
console.log(splitWarnings);
|
||||||
if (props.warnings.length === 0) {
|
if (props.warnings.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className={styles.warningsEmpty}>
|
<div className={styles.warningsEmpty}>
|
||||||
@@ -85,9 +85,9 @@ function WarningsList(props: { warnings: EditorWarning[] }) {
|
|||||||
<div className={styles.warningGroupHeader}>global:</div>
|
<div className={styles.warningGroupHeader}>global:</div>
|
||||||
<div className={styles.warningsList}>
|
<div className={styles.warningsList}>
|
||||||
{splitWarnings.global.map((warning) => (
|
{splitWarnings.global.map((warning) => (
|
||||||
<WarningListItem warning={warning} key={`${warning.scope.id}|${warning.type}` + warning.scope.handleId
|
<WarningListItem warning={warning} key={`${warning.scope.id}|${warning.type}` + (warning.scope.handleId
|
||||||
? `:${warning.scope.handleId}`
|
? `:${warning.scope.handleId}`
|
||||||
: ""}
|
: "")}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
{splitWarnings.global.length === 0 && "No global warnings!"}
|
{splitWarnings.global.length === 0 && "No global warnings!"}
|
||||||
@@ -97,9 +97,9 @@ function WarningsList(props: { warnings: EditorWarning[] }) {
|
|||||||
<div className={styles.warningGroupHeader}>other:</div>
|
<div className={styles.warningGroupHeader}>other:</div>
|
||||||
<div className={styles.warningsList}>
|
<div className={styles.warningsList}>
|
||||||
{splitWarnings.other.map((warning) => (
|
{splitWarnings.other.map((warning) => (
|
||||||
<WarningListItem warning={warning} key={`${warning.scope.id}|${warning.type}` + warning.scope.handleId
|
<WarningListItem warning={warning} key={`${warning.scope.id}|${warning.type}` + (warning.scope.handleId
|
||||||
? `:${warning.scope.handleId}`
|
? `:${warning.scope.handleId}`
|
||||||
: ""}
|
: "")}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
{splitWarnings.other.length === 0 && "No other warnings!"}
|
{splitWarnings.other.length === 0 && "No other warnings!"}
|
||||||
|
|||||||
Reference in New Issue
Block a user