Skip to content

Commit b10c238

Browse files
committed
WIP
1 parent f33350f commit b10c238

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

lib/components/Output/ExecutionLog.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010

1111
import { Link } from '@carbon/react';
1212

13+
import OutputEditor from './OutputEditor';
14+
1315
const STATUS_LABELS = {
1416
deploying: 'Process deployed',
1517
'starting-instance': 'Process instance created',
@@ -360,9 +362,7 @@ function ChildElement({ child }) {
360362
{ expanded && hasVariables && (
361363
<div className="execution-log__child-variables">
362364
<span className="execution-log__child-variables-label">Local variables</span>
363-
<pre className="execution-log__child-variables-code">
364-
{ JSON.stringify(child.variables, null, 2) }
365-
</pre>
365+
<OutputEditor value={ JSON.stringify(child.variables, null, 2) } />
366366
</div>
367367
) }
368368
</li>
@@ -413,7 +413,7 @@ function WaitingItem({ item, timestamp, isLast, isFinished, onSelectElement }) {
413413
const isBoundaryEvent = item.type === 'boundary-event';
414414
const isClickable = isBoundaryEvent && onSelectElement && item.data?.elementId;
415415

416-
const isPending = isPendingItem(item);
416+
const isPending = !isFinished && isPendingItem(item);
417417

418418
let dotClass = 'execution-log__dot';
419419
if (isPending) {

lib/style/style.scss

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -558,19 +558,6 @@
558558
margin-bottom: 6px;
559559
}
560560

561-
.execution-log__child-variables-code {
562-
font-family: 'IBM Plex Mono', monospace;
563-
font-size: 12px;
564-
line-height: 1.5;
565-
color: #393939;
566-
background: #f4f4f4;
567-
border-radius: 4px;
568-
padding: 8px 12px;
569-
margin: 0;
570-
white-space: pre-wrap;
571-
word-break: break-word;
572-
}
573-
574561
.execution-log__dot {
575562
position: absolute;
576563
left: -16px;

0 commit comments

Comments
 (0)