chore(tracing): render error snapshot as Action (#6241)
This commit is contained in:
parent
23dfaf9e9b
commit
f9af4c3755
|
|
@ -27,7 +27,6 @@
|
||||||
color: #555;
|
color: #555;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 5px 0 0 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-entry {
|
.action-entry {
|
||||||
|
|
@ -37,7 +36,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
padding-left: 3px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-entry.highlighted,
|
.action-entry.highlighted,
|
||||||
|
|
@ -68,7 +67,6 @@
|
||||||
|
|
||||||
.action-error {
|
.action-error {
|
||||||
color: red;
|
color: red;
|
||||||
top: 2px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ export const SnapshotTab: React.FunctionComponent<{
|
||||||
const snapshotMap = new Map<string, { title: string, snapshotName: string }>();
|
const snapshotMap = new Map<string, { title: string, snapshotName: string }>();
|
||||||
for (const snapshot of actionEntry?.snapshots || [])
|
for (const snapshot of actionEntry?.snapshots || [])
|
||||||
snapshotMap.set(snapshot.title, snapshot);
|
snapshotMap.set(snapshot.title, snapshot);
|
||||||
const actionSnapshot = snapshotMap.get('action') || snapshotMap.get('before');
|
const actionSnapshot = snapshotMap.get('action') || snapshotMap.get('after');
|
||||||
const snapshots = [actionSnapshot ? { ...actionSnapshot, title: 'action' } : undefined, snapshotMap.get('before'), snapshotMap.get('after')].filter(Boolean) as { title: string, snapshotName: string }[];
|
const snapshots = [actionSnapshot ? { ...actionSnapshot, title: 'action' } : undefined, snapshotMap.get('before'), snapshotMap.get('after')].filter(Boolean) as { title: string, snapshotName: string }[];
|
||||||
|
|
||||||
if (snapshotIndex >= snapshots.length)
|
if (snapshotIndex >= snapshots.length)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue