{{ "graph.picker.title" | t }}

@if (listState() === "loading") {

{{ "status.loading" | t }}

} @if (listState() === "error") { } @if (listState() === "ok") { @if (investigations().length === 0) {

{{ "graph.picker.empty" | t }}

{{ "investigations.new.action" | t }} } @else {
} }
@if (reportState() === "idle" && listState() === "ok" && investigations().length) {

{{ "graph.picker.hint" | t }}

} @if (reportState() === "loading") {

{{ "status.loading" | t }}

} @if (reportState() === "running") {

{{ "graph.running" | t }} {{ "graph.openInvestigation" | t }}

} @if (reportState() === "error") {
} @if (graph(); as g) {

{{ "graph.title" | t }} — {{ selectedInvestigation() }}

{{ "graph.stats" | t }}: {{ g.nodes.length }} {{ "graph.statsNodes" | t }} · {{ g.edges.length }} {{ "graph.statsEdges" | t }}

@if (g.limitations.length) {
{{ "graph.limitations" | t }} ({{ g.limitations.length }})
    @for (l of g.limitations; track l) {
  • {{ l }}
  • }
}

{{ "graph.detail.title" | t }}

@if (selectedNode(); as n) {

{{ kindLabelKey(n.kind) | t }} {{ n.id }}

@if (asFinding(n); as f) {
{{ "investigations.col.severity" | t }}
{{ f.severity }}
{{ "investigations.col.status" | t }}
{{ f.status }}
{{ "investigations.col.category" | t }}
{{ f.category }}
{{ "investigations.col.explanation" | t }}
{{ f.explanation }}
} @if (asEvidence(n); as ev) {
{{ "investigations.ev.sourceLocation" | t }}
{{ ev.source_location }}
{{ "investigations.ev.capturedAt" | t }}
{{ ev.captured_at }}
{{ "investigations.ev.hash" | t }}
{{ ev.content_hash }}
{{ "investigations.ev.provenance" | t }}
{{ ev.provenance }}
@if (ev.sanitized_excerpt) {
{{ ev.sanitized_excerpt }}
} } @if (n.kind === "evidence" && n.referencedOnly) {

{{ "graph.detail.referencedOnly" | t }}

} @if (asHypothesis(n); as h) {
{{ "investigations.col.status" | t }}
{{ h.status }}
{{ "graph.detail.confidence" | t }}
{{ h.confidence }}
{{ "graph.detail.causalLabel" | t }}
{{ h.causal_label }}
{{ "graph.detail.statement" | t }}
{{ h.statement }}
} @if (asReport(n); as rep) {

{{ rep.problem }}

{{ "graph.openInvestigation" | t }} } @if (n.kind === "tool" || n.kind === "agent") {

{{ n.data }}

} } @else {

{{ "graph.detail.empty" | t }}

}

{{ "graph.a11y.title" | t }}

{{ "graph.a11y.hint" | t }}

{{ "graph.a11y.nodes" | t }}

@for (n of g.nodes; track n.id) { }
{{ "graph.a11y.colNode" | t }} {{ "graph.a11y.colKind" | t }} {{ "graph.a11y.colLabel" | t }}
{{ n.id }} {{ kindLabelKey(n.kind) | t }} {{ n.label }}

{{ "graph.a11y.edges" | t }}

@if (g.edges.length === 0) {

{{ "graph.a11y.noEdges" | t }}

} @else {
@for (e of g.edges; track e.id) { }
{{ "graph.a11y.colFrom" | t }} {{ "graph.a11y.colRel" | t }} {{ "graph.a11y.colTo" | t }} {{ "graph.a11y.colJust" | t }}
{{ e.src }} {{ e.kind }} {{ e.dst }} {{ e.justification }}
}
}