diff --git a/playground/main.tsx b/playground/main.tsx index efd5fa52..f9360cde 100644 --- a/playground/main.tsx +++ b/playground/main.tsx @@ -26,11 +26,11 @@ function App() {
Throughline / schema-2 development preview
-- Explore independently checked, authored models. Graphs and sequences - reveal declared evidence; they do not execute source code or infer - undocumented events. + Review the native player on independently checked, authored models. + Use the Graph, Sequence, and State tabs, Inspect sidebar, and compact + transport across desktop, tablet, and mobile widths.
{current?.source ?? ""}
- Use Player options to inspect source events, histories and compatible views. - The static explanation and questions are a matched baseline, not a - claim that improved learning outcomes have been measured. + Select a reference model above, then use the player tabs for Graph, + Sequence, or State. The Inspect sidebar provides complete source + evidence and histories. The static explanation and questions are + a matched baseline, not a measured learning-outcome claim.
{diagnostic}
)} -| Entity | Presence | Value |
|---|---|---|
| - | {data(item, "present") ? "Present" : "Not present"} | -{cell ? cellText(cell) : "Unknown"} |
-
{message}
)} + + {rows.map(item => { + const id = item.source.entityIds?.[0] ?? ""; + const present = data(item, "present") === true; + const cell = itemCell(item); + const history = inspector.history(id); + const latest = history.filter(entry => entry.frameIndex <= frameIndex).at(-1); + const origin = latest?.originId ?? (present ? "initial" : "not present"); + return ; + })} +- Focus this player to seek with Left and Right arrows, Home and End, - and play or pause with Space. Focus the graph to pan with arrows, - zoom with plus or minus, or fit with zero. -
-{summary}
- {voice.error && narration &&{voice.error}
} - {fullscreenError &&{fullscreenError}
} -{step?.note ?? view.summary}
- {events.length > 0 &&{presentEntities.has(selected.id) ? "Present in modeled state at this frame" : - "Not present in modeled state at this frame; no presence is inferred."}
-{selectedValue && selectedValue.status === "known"
- ? cellText(selectedValue) : selectedValue?.status === "unknown"
- ? "Unknown" + (selectedValue.reason ? ": " + selectedValue.reason : "")
- : "Absent"}
- Focus this player to seek with Left and Right arrows, Home and End, + and play or pause with Space. Focus the graph to pan with arrows, zoom with plus or minus, or fit with zero.
+{summary}
+ {voice.error && narration &&{voice.error}
} + {fullscreenError &&{fullscreenError}
} +{eventType}
+ {step?.note ?? view.summary}
+ {step && step.events.length > 0 &&{event.id}
+ {events.find(item =>
+ item.source.eventIds?.includes(event.id))?.description ?? ""}
+ {!present ? "Absent" : value?.status === "known" ? cellText(value)
+ : value?.status === "unknown" ? cellText(value) : "Absent"}Navigation
+Diagram
+Playback and display
+{view.summary}
++ Events follow modeled step and event order, not verified network time. + No unrecorded send, receipt, acknowledgement, retry, timeout or state change is inferred. +
+No message endpoints have been modeled through this frame.
} +Only explicitly modeled phases are counted. An unmodeled + acknowledgement is not proof that one was lost.
+Showing {mountedCorrelations.length} of {correlations.length} + {" "}message ID(s), page {pageIndex + 1} of {totalPages}. + All source-linked summaries can be reached without increasing the DOM window.
+{item.description}
+{evidence.length === 0 ? "No modeled events through this frame." : + "Showing " + mounted.length + " of " + evidence.length + + " explicit event(s); older rows can be revealed below."}
+ {evidence.length > mounted.length && } + {mounted.length > 0 &&| Step | +Event | +Message ID | +Declared relation | +Phase / evidence type | +Declared origin | +
|---|---|---|---|---|---|
| {text(field(item, "frameId"))} | +
+ {item.label}+{item.description} + |
+ {message ? {text(field(item, "messageId"))} : "—"} |
+ {message ? <> + {from ?? text(field(item, "fromEntityId"))} + {" — "} + {to ?? text(field(item, "toEntityId"))} + > : "Not a message"} | +{message ? <> + {text(field(item, "phase"))} + {missingSent && + No sent modeled through this step + } + > : type + " (not a message phase)"} | +{text(field(item, "originId"))} + {" (" + text(field(item, "originKind")) + ")"} | +
{view.summary}
-- Events follow modeled step and event order, not verified network time. - No unrecorded send, receipt, acknowledgement, retry, timeout or state change is inferred. -
-No message endpoints have been modeled through this frame.
} -Only explicitly modeled phases are counted. An unmodeled - acknowledgement is not proof that one was lost.
-Showing {mountedCorrelations.length} of {correlations.length} - {" "}message ID(s), page {pageIndex + 1} of {totalPages}. - All source-linked summaries can be reached without increasing the DOM window.
-{item.description}
-{evidence.length === 0 ? "No modeled events through this frame." : - "Showing " + mounted.length + " of " + evidence.length + - " explicit event(s); older rows can be revealed below."}
- {evidence.length > mounted.length && } - {mounted.length > 0 &&| Step | -Event | -Message ID | -Declared relation | -Phase / evidence type | -Declared origin | -
|---|---|---|---|---|---|
| {text(field(item, "frameId"))} | -
- {item.label}-{item.description} - |
- {message ? {text(field(item, "messageId"))} : "—"} |
- {message ? <> - {from ?? text(field(item, "fromEntityId"))} - {" — "} - {to ?? text(field(item, "toEntityId"))} - > : "Not a message"} | -{message ? <> - {text(field(item, "phase"))} - {missingSent && - No sent modeled through this step - } - > : type + " (not a message phase)"} | -{text(field(item, "originId"))} - {" (" + text(field(item, "originKind")) + ")"} | -
{view.summary} Events are in declared order, not physical time.
+{item.label}
+
+
+ :
+ {String(start + offset + 1).padStart(2, "0")}
+ {item.label}
+ }
+ No modeled events through this frame.
} +{last.label}