Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/DentalHaltMoment.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default function DentalHaltMoment() {

<ReferenceDemoShowcase
initialIndustry="insurance"
heading="See the governed loop in a public insurance application"
intro="Compare a captured demonstration with its compiled replay, then inspect the exact evidence boundary for the result."
heading="See the governance mechanism in a public insurance application"
intro="This openIMIS clip is a claims-entry reference, not payer-portal eligibility footage. It demonstrates the same capture, deterministic replay, result evidence, and halt mechanism used for an eligibility workflow."
/>

<p className="mx-auto max-w-5xl px-4 pb-12 text-sm">
Expand Down
4 changes: 2 additions & 2 deletions components/EvidenceMediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default function EvidenceMediaPlayer({
<div
ref={capsuleRef}
className={styles.capsule}
aria-label={`OpenAdapt ${phaseLabel.toLowerCase()}`}
aria-label={`OpenAdapt ${phaseLabel.toLowerCase()} in ${application}`}
data-overlay-kind="canonical-runtime-state"
data-interactive={presentation.evidenceHref ? 'true' : undefined}
>
Expand Down Expand Up @@ -324,7 +324,7 @@ export default function EvidenceMediaPlayer({
/>
)}
<span className={styles.secondary}>
<span>{application}</span>
<span className={styles.applicationName}>{application}</span>
{presentation.secondaryLabels.map((label) => (
<span key={label}>{label}</span>
))}
Expand Down
5 changes: 5 additions & 0 deletions components/EvidenceMediaPlayer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@
content: '·';
}

.applicationName {
color: #cbd5ce;
font-weight: 700;
}

.explanation {
padding-top: 6px;
border-top: 1px solid rgba(255, 255, 255, 0.12);
Expand Down
6 changes: 5 additions & 1 deletion components/ReferenceDemoShowcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ export default function ReferenceDemoShowcase({
</div>

<aside className={styles.proof}>
<p className={styles.proofClass}>{demo.evidenceClass}</p>
<p className={styles.proofClass}>
{phase === 'recording'
? 'Source demonstration · synthetic data'
: demo.evidenceClass}
</p>
<h3>{demo.application}</h3>
<p className={styles.applicationDetail}>{demo.applicationDetail}</p>
<p className={styles.task}>{demo.task}</p>
Expand Down
7 changes: 7 additions & 0 deletions cypress/e2e/reference-demo.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ describe('shared real-application demo', () => {
.should(($video) =>
expect($video[0].currentSrc).to.include('openemr-replay.mp4')
)
cy.get('@showcase')
.find('[data-overlay-kind="canonical-runtime-state"]')
.should('contain.text', 'OpenEMR')
cy.get('@showcase').contains('button', 'Guided view').should('be.visible')
cy.get('@showcase').contains('button', 'Raw footage').click()
cy.get('@showcase')
Expand All @@ -77,6 +80,10 @@ describe('shared real-application demo', () => {
)
cy.get('@showcase').contains('button', 'Guided view').click()
cy.get('@showcase').contains('button', 'Recorded demonstration').click()
cy.get('@showcase')
.contains('Source demonstration · synthetic data')
.should('be.visible')
cy.get('@showcase').should('not.contain.text', 'Reference qualification')
cy.get('@showcase')
.find('video')
.should(($video) =>
Expand Down
14 changes: 14 additions & 0 deletions tests/executionOverlayTimeline.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,20 @@ test('capsule placement is event-stable and presentation facts require exact bou
executionRailForBoundContext(activeFrame, context).map(({ state }) => state),
['complete', 'active', 'pending']
)
const haltedFrame = frame(6, 'halted')
assert.deepEqual(executionRailForBoundContext(haltedFrame, null), [])
const exactHaltContext = bindExecutionOverlayContext(haltedFrame, {
state_id: haltedFrame.state_id,
event_sequence: haltedFrame.event_sequence,
execution_stage: 'verify',
halt_delivery_class: 'refuted_effect',
})
assert.deepEqual(
executionRailForBoundContext(haltedFrame, exactHaltContext).map(
({ state }) => state
),
['complete', 'complete', 'halted']
)
const presentation = executionOverlayPresentation(activeFrame, context, 12_000)
assert.equal(presentation.progressLabel, 'Step 1 of 2')
assert.deepEqual(presentation.secondaryLabels, [
Expand Down
Loading