Use case StRS-MDOKFSTUDIO-FMSCHEMA-001
Frontmatter appears as a readable, configurable properties table
As a writer, I read my document metadata as a table above the text, safely, without opening the YAML; I read values in the form I typed them, hide the Description column when I need room, turn the table off or adjust how frontmatter is checked, and see validation results update while I type.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.
path 1: Read and fold the properties path 2: Edit the frontmatter, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Read and fold the properties
- A document starts with a `---` line and a YAML mappingSwRS-MDOKFSTUDIO-FMSCHEMA-001 YAML that does not parse shows one error row "Invalid frontmatter YAML" with the parser message, and the body still rendersSwRS-MDOKFSTUDIO-FMSCHEMA-001 an opening fence without a closing fenceSwRS-MDOKFSTUDIO-FMSCHEMA-004 with the propertiesTable setting off, neither the table nor the raw text showsSwRS-MDOKFSTUDIO-FMSCHEMA-001 · 6 tests the page shows the frontmatter as a properties table above the body
- The properties table is shownSwRS-MDOKFSTUDIO-FMSCHEMA-006 each value is shown as YAML reads it, a boolean as a read-only checkboxSwRS-MDOKFSTUDIO-FMSCHEMA-005 without a type, a two-column Names and Values table lists the keys in source orderSwRS-MDOKFSTUDIO-FMSCHEMA-090 · 4 tests the writer presses the toggle next to the title and the table is hidden below the header
- The table is hidden below its header
Path 2: Edit the frontmatter
- The properties table is shownSwRS-MDOKFSTUDIO-FMSCHEMA-043 while a field editor is open the new table is held backSwRS-MDOKFSTUDIO-FMSCHEMA-043 · 2 tests the page re-analyses the frontmatter 300 ms after the last change and replaces the table
- The properties table shows the new frontmatter
This map has 93 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 6 behaviours on the map are tested one by one, with 29 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-FMSCHEMA-001The frontmatter block is found by its fences and parsed as a YAML mapping 6 testsSwRS-MDOKFSTUDIO-FMSCHEMA-004The propertiesTable setting hides the table while the body renders 3 testsSwRS-MDOKFSTUDIO-FMSCHEMA-005Without a schema the table lists the keys in source order, escaped 6 testsSwRS-MDOKFSTUDIO-FMSCHEMA-006Property values read like YAML in a lean table 3 testsSwRS-MDOKFSTUDIO-FMSCHEMA-014The Description column collapses and the choice is kept per document not on the map6 testsSwRS-MDOKFSTUDIO-FMSCHEMA-043The table is refreshed in place after edits, after the field editor closes 2 testsSwRS-MDOKFSTUDIO-FMSCHEMA-090The frontmatter properties table collapses under its header and is shown again on every page load 4 tests
SwRS-MDOKFSTUDIO-FMSCHEMA-002A document without a closing fence has no frontmatter superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-001 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-003Frontmatter fences accept Windows line endings superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-001 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-007Boolean values show as read-only checkboxes superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-006 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-008Long lists are cut after fifty items superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-006 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-009Empty lists and null values show as YAML tokens superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-006 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-010The properties table has a lean frame superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-006 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-011The table fits a narrow preview superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-006 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-012Every table value is HTML-escaped superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-005 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-013The properties section maps to source line 1 superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-005 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-015The Description choice is remembered per document superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-014 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-016Narrow previews start with the Description column collapsed superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-014 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-017Invalid YAML gives one error row and an error badge superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-001 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-018Frontmatter that is not a mapping gives an error row superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-001 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-044A new table waits while a field editor is open superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-043 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-045A frontmatter setting change re-analyses the open previews superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-004 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-075The body still renders when the table is off superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-004 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-076Invalid YAML does not stop the body from rendering superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-001 Markdown file