Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-PALETTE-021

A writer inserts MyST constructs

As a writer of Sphinx and MyST documents, I insert an admonition, a definition list, a formula, a role, a figure or a tab set from a button or the slash menu without remembering the syntax, and take the insertion back with a single undo.

Use case diagram

How it is split

This use case (StRS) is reached by one path (the coloured line). A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.

path 1: Wrap lines in an admonition other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-PALETTE-127: Admonition wraps lines in a colon fence of a chosen typeSwRS-MDOKFSTUDIO-PALETTE-1271 testthe writer presses Admonition andchooses a type, and the touchedlines are wrapped in a colon fenceof that typeSwRS-MDOKFSTUDIO-PALETTE-039: A palette action edits in one undo step or leaves the text unchanged and says whySwRS-MDOKFSTUDIO-PALETTE-0394 teststhe writer undoes and the edit istaken back in one stepSwRS-MDOKFSTUDIO-PALETTE-127: Admonition wraps lines in a colon fence of a chosen typeSwRS-MDOKFSTUDIO-PALETTE-1271 testa missing or unknown type produces no editThe palette is shown above the text box in the MyST modeThe palette is shownabove the text box inthe MyST modeThe lines are wrapped in a fenceThe lines are wrapped ina fenceThe text is as it was before the buttonThe text is as it wasbefore the button

This map has 50 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 2 behaviours on the map are tested one by one, with 13 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-PALETTE-127Admonition wraps lines in a colon fence of a chosen type 1 testSwRS-MDOKFSTUDIO-PALETTE-132Definition list makes the selection a term with a definition not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-133Math wraps the selection in an inline, display or aligned equation not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-136Label writes one label line above the block not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-269Caret on an alert or admonition type lists the types not on the map3 testsSwRS-MDOKFSTUDIO-PALETTE-270Card form inserts a MyST card not on the map3 testsSwRS-MDOKFSTUDIO-PALETTE-271Grid form inserts a MyST grid of cards not on the map3 testsSwRS-MDOKFSTUDIO-PALETTE-272The Code-block button edits a MyST code-block directive in a form not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-276Inline marker buttons toggle their markers around the selection not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-278Starter blocks insert a chart, a diagram or content tabs not on the map3 tests
SwRS-MDOKFSTUDIO-PALETTE-130Custom writes a titled admonition with a class superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-127 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-135Subscript and Superscript wrap the selection in a role superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-276 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-137Dropdown writes a note admonition with the dropdown class superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-127 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-138Key (MyST) wraps the selection in the kbd role superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-276 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-265The Full palette mode adds Vega-Lite and Vega chart commands superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-001, SwRS-MDOKFSTUDIO-PALETTE-278 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-273The MyST palette mode adds a Content tabs command superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-001, SwRS-MDOKFSTUDIO-PALETTE-278 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-274The Full palette mode adds a PlantUML diagram command superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-001, SwRS-MDOKFSTUDIO-PALETTE-278 Markdown file