Use case StRS-MDOKFSTUDIO-REVIEW-017
A writer sees which blocks changed since the last commit
As a writer, I see at a glance what I changed since the last commit, unsaved edits included, and I read the document without the bars when I do not need them.
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: See what changed since the last commit other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: See what changed since the last commit
- A file tracked by Git differs from its last commitSwRS-MDOKFSTUDIO-REVIEW-195 an untracked file gets no marksSwRS-MDOKFSTUDIO-REVIEW-195 · 4 tests the host posts the line ranges that differ from the file at HEAD
- The page holds the changed line rangesSwRS-MDOKFSTUDIO-REVIEW-207 a malformed range is ignoredSwRS-MDOKFSTUDIO-REVIEW-215 a changed or added front matter field gets its own change barSwRS-MDOKFSTUDIO-REVIEW-207 · 5 tests the innermost mapped blocks that meet a range get a thin green change bar that moves nothing
- Changed blocks carry a green barSwRS-MDOKFSTUDIO-REVIEW-220 the pointer over a bar shows the changed lines of its block in a tooltipSwRS-MDOKFSTUDIO-REVIEW-221 removed lines with nothing in their place get a red marker between the blocks around them, with a Removed lines tooltipSwRS-MDOKFSTUDIO-REVIEW-222 a click on a bar or marker shows the side-by-side diff of that block only, a second click or Escape closes itSwRS-MDOKFSTUDIO-REVIEW-214 · 2 tests the reader presses the Diff button and the bars are hidden
- The change bars are hidden
This map has 838 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 7 behaviours on the map are tested one by one, with 36 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-REVIEW-195The host posts the lines that differ from the last commit, read from Git for small files 4 testsSwRS-MDOKFSTUDIO-REVIEW-207Changed blocks get a thin change bar that moves nothing, and malformed ranges are ignored 5 testsSwRS-MDOKFSTUDIO-REVIEW-214The Diff button and the showIncomingChanges setting hide the change bars 2 testsSwRS-MDOKFSTUDIO-REVIEW-215Changed or added front matter fields get their own change bar 4 testsSwRS-MDOKFSTUDIO-REVIEW-220A change bar shows the changed lines in a tooltip while the pointer is over it 3 testsSwRS-MDOKFSTUDIO-REVIEW-221A span of removed lines gets a red marker with a tooltip between the blocks around it 4 testsSwRS-MDOKFSTUDIO-REVIEW-222A click on a change bar or removed-lines marker opens the side-by-side diff of that block only 5 tests
SwRS-MDOKFSTUDIO-REVIEW-005The word diff reports the added and removed words superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-009 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-007The side-by-side messages are validated and gated superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-006, SwRS-MDOKFSTUDIO-REVIEW-009 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-010The line diff reports hunks with both sides superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-009 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-200The line diff reports added and modified lines superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-195 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-203The HEAD text comes from the built-in Git extension for small files superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-195 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-208Malformed incoming-change ranges are ignored superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-207 Markdown file