Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-221

A span of removed lines gets a red marker with a tooltip between the blocks around it

When lines were removed since the last commit with no line left in their place, the page SHALL show a red removed-lines marker in the change column between the blocks around the removal, with a tooltip in the page's tooltip style reading Removed lines 12–14 since last commit, or Removed line 12 since last commit for a single line, from the line numbers of the last commit, and SHALL show no marker while the Diff button is off or in edit mode.

Another outcome at step 3 of path 1 in StRS-MDOKFSTUDIO-REVIEW-017, in the state “Changed blocks carry a green bar”.

Scenarios 3

The situations the tests check; open one to read it.

nominalA removed span between two blocks
Giventhe Diff button on, a tracked file where the last commit had lines 12 to 14 that the shown text no longer has, and no line in their place
Whenthe preview renders
Thena red marker sits in the change column between the blocks around the removal, and its tooltip reads Removed lines 12–14 since last commit (Removed line 12 since last commit for one line), from the line numbers of the last commit
boundaryWhere the marker sits
InputOutcome
A removal before a mapped blockthe marker sits just above that block
A removal after the last mapped blockthe marker sits just below it
A removal of one linethe singular form, Removed line N since last commit
A removal that also replaces linesno removed marker: the replacing block carries a green bar
refusalNo marker with Diff off, in edit mode, or for malformed data
Giventhe Diff button pressed off, edit mode on, or a removed entry that is not made of whole numbers with an end before its start
Whenthe preview renders
Thenno marker is shown for it

Implemented in 2

Tested by 4