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
Path 1: Wrap lines in an admonition
- The palette is shown above the text box in the MyST modeSwRS-MDOKFSTUDIO-PALETTE-127 a missing or unknown type produces no editSwRS-MDOKFSTUDIO-PALETTE-127 · 1 test the writer presses Admonition and chooses a type, and the touched lines are wrapped in a colon fence of that type
- The lines are wrapped in a fenceSwRS-MDOKFSTUDIO-PALETTE-039 · 4 tests the writer undoes and the edit is taken back in one step
- The text is as it was before 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