StatifierBlocks.Editor.Findings (StatifierBlocks v0.1.0)

Copy Markdown View Source

The document-level findings panel (ADR-0005 decision 11).

Decision 11 makes the anchor the whole routing mechanism, and the three inline positions - beneath a field, on a slot header, on a block's chrome

  • are rendered by the components that own those positions. What is left for this one is the list view: every finding in the document, in one place, where selecting one selects and reveals its anchor.

Two cases are easy to render wrong and are handled explicitly.

A finding whose anchor names a block id the document does not contain is an orphan. StatifierBlocks.ViewModel collects those separately rather than dropping them, and they are listed here without a reveal control, because there is nothing to reveal. A caller that supplies a finding against a block that has since been deleted sees it, which is the only honest thing to do with it.

Severity is two-valued and every source except :lint produces :error. :lint exists because a block type can emit an invoke type for which the host has registered no runtime handler; it renders as a warning because a document carrying one is still compilable and still correct once the host registers the handler. Whether the lint belongs to the compiler or the editor is not this record's to settle - decision 11 commits only to there being a place to put the answer, and this is it.

Summary

Functions

Every finding in the document, each one reachable from its entry.

Functions

findings(assigns)

Every finding in the document, each one reachable from its entry.

Attributes