Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-FMSCHEMA-063

Each link value shows whether it resolves

When a properties table with annotated link values is rendered, the extension SHALL show each link as pending on the first paint and, about 150 ms later, replace the table in place so that a resolving link is a keyboard-focusable link whose tooltip starts with the workspace-relative path of the target, and an unresolved link shows its text followed by an error or warning mark and a plain label, with the full "[E10]" or "[W15]" message in a keyboard-focusable tooltip.

Step 3 of path 1 in StRS-MDOKFSTUDIO-FMSCHEMA-014: from “The link is shown pending, then resolved” to “The link is a focusable link”.

Scenarios 8

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

nominalValid link
Givena link value t.md that resolves to bundle/docs/t.md
Whenthe table is rendered
Thenthe Value cell holds a focusable link t.md whose tooltip starts with bundle/docs/t.md, carrying the navigation request okf-link and the status valid
nominalList of links
Givena list field whose items are annotated links
Whenthe table is rendered
Theneach item is its own link
refusalLink that does not resolve
Link valueTable stateOutcome
nope.md (not found)RenderedThe text nope.md is followed by the mark ✖ and the label File not found; the text can be focused with the keyboard and its tooltip holds the full [E10] message
A bundle-relative link without a bundle rootRenderedThe text is followed by the mark ⚠ and the label Link root unavailable; the tooltip holds the full [W15] message
boundaryPlain labels of the problems
ProblemLabel
Target not foundFile not found
Target outside the allowed folderOutside the allowed folder
Root unavailableLink root unavailable
Absolute targetAbsolute paths are not allowed
Several files matchSeveral files match
Empty linkEmpty link
Any other E10Invalid link
Any other W15Link unavailable
nominalFirst paint
Givena document with annotated links
Whenthe preview is first rendered
Theneach link shows its text and a spinner labelled File links are being resolved and is marked busy, without the Studio link tooltip
refusalPending link has no Studio tooltip
Giventhe pointer is moved over a pending link
Whenthe pointer rests on it
Thenthe Studio link tooltip is not shown
nominalLinks resolved after the render
Givena rendered table with pending links
When150 ms pass
Thenthe table is swapped in place and no spinner is left
refusalDocument changed meanwhile
Giventhe document, the render or the panel changed before the timer fired, or a block or field editor is open
Whenthe timer fires
Thena stale result is dropped and nothing is patched, and while an editor is open the swap waits

Implemented in 3

Tested by 5

Known limits (1)

Replaces

SwRS-MDOKFSTUDIO-FMSCHEMA-064A link that does not resolve shows its problem superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-063 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-065Links are shown as pending on the first paint superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-063 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-066Links are resolved about 150 ms after the render superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-063 Markdown file
SwRS-MDOKFSTUDIO-FMSCHEMA-086A link problem is keyboard-focusable and explained in its tooltip superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-063 Markdown file