mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-05 04:27:09 +00:00
feat(replay-ui): wire witnesses and step jump into violation panels
This commit is contained in:
1 parent
3334ee957b
commit
2b14e622c5
1 file changed
+10
@@ -126,6 +126,8 @@ export default function RunDetail() {
|
|||||||
const violationsAfter = nextStep?.violations ?? violationsBefore;
|
const violationsAfter = nextStep?.violations ?? violationsBefore;
|
||||||
const residualsBefore = currentStep?.residuals;
|
const residualsBefore = currentStep?.residuals;
|
||||||
const residualsAfter = nextStep?.residuals ?? residualsBefore;
|
const residualsAfter = nextStep?.residuals ?? residualsBefore;
|
||||||
|
const witnessesBefore = currentStep?.witnesses;
|
||||||
|
const witnessesAfter = nextStep?.witnesses ?? witnessesBefore;
|
||||||
const exceptionsForStep = currentStep?.exceptions;
|
const exceptionsForStep = currentStep?.exceptions;
|
||||||
|
|
||||||
const beforeTabs: TabDefinition[] = [
|
const beforeTabs: TabDefinition[] = [
|
||||||
@@ -157,8 +159,10 @@ export default function RunDetail() {
|
|||||||
propertyNames={history?.names ?? []}
|
propertyNames={history?.names ?? []}
|
||||||
violations={violationsBefore}
|
violations={violationsBefore}
|
||||||
residuals={residualsBefore}
|
residuals={residualsBefore}
|
||||||
|
witnesses={witnessesBefore}
|
||||||
onJumpToFirstViolation={jumpToFirstViolation}
|
onJumpToFirstViolation={jumpToFirstViolation}
|
||||||
hasFirstViolation={history?.firstViolationStep !== undefined}
|
hasFirstViolation={history?.firstViolationStep !== undefined}
|
||||||
|
onJumpToStep={goTo}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@@ -176,8 +180,10 @@ export default function RunDetail() {
|
|||||||
propertyNames={history?.names ?? []}
|
propertyNames={history?.names ?? []}
|
||||||
violations={violationsBefore}
|
violations={violationsBefore}
|
||||||
residuals={residualsBefore}
|
residuals={residualsBefore}
|
||||||
|
witnesses={witnessesBefore}
|
||||||
onJumpToFirstViolation={jumpToFirstViolation}
|
onJumpToFirstViolation={jumpToFirstViolation}
|
||||||
hasFirstViolation={history?.firstViolationStep !== undefined}
|
hasFirstViolation={history?.firstViolationStep !== undefined}
|
||||||
|
onJumpToStep={goTo}
|
||||||
violationsOnly
|
violationsOnly
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
@@ -213,8 +219,10 @@ export default function RunDetail() {
|
|||||||
propertyNames={history?.names ?? []}
|
propertyNames={history?.names ?? []}
|
||||||
violations={violationsAfter}
|
violations={violationsAfter}
|
||||||
residuals={residualsAfter}
|
residuals={residualsAfter}
|
||||||
|
witnesses={witnessesAfter}
|
||||||
onJumpToFirstViolation={jumpToFirstViolation}
|
onJumpToFirstViolation={jumpToFirstViolation}
|
||||||
hasFirstViolation={history?.firstViolationStep !== undefined}
|
hasFirstViolation={history?.firstViolationStep !== undefined}
|
||||||
|
onJumpToStep={goTo}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@@ -232,8 +240,10 @@ export default function RunDetail() {
|
|||||||
propertyNames={history?.names ?? []}
|
propertyNames={history?.names ?? []}
|
||||||
violations={violationsAfter}
|
violations={violationsAfter}
|
||||||
residuals={residualsAfter}
|
residuals={residualsAfter}
|
||||||
|
witnesses={witnessesAfter}
|
||||||
onJumpToFirstViolation={jumpToFirstViolation}
|
onJumpToFirstViolation={jumpToFirstViolation}
|
||||||
hasFirstViolation={history?.firstViolationStep !== undefined}
|
hasFirstViolation={history?.firstViolationStep !== undefined}
|
||||||
|
onJumpToStep={goTo}
|
||||||
violationsOnly
|
violationsOnly
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user