An editorial revision that prepares the spec for publication. No rule, key, value, default, type, warning, grammar line or example changes. Every numbered section keeps its heading and number, so links to sections still work.
Front matter. A new opening replaces the overview, the parts table and the revision history. It defines UJN and says who the spec is for, which text wins where two disagree, what "the module" and "the platform" mean, and how the spec is organized. The revision history moved to this file.
Plain voice. Notes written for the review of earlier drafts now read as plain statements. "You" meaning the reviewer and "I" or "my proposal" meaning the author are gone; "you" meaning whoever writes a journey stays.
No private references. References to private decision records and discussions, their item names and dates, and file paths are removed or replaced by the point they stand for. The model schema is cited as version 5 (ujn-model-v5.schema.json); older schema versions are no longer cited as current.
Tools, not the platform. "The platform" now reads "tools" or "the tools that read the model" where that is what it meant. It stays only where it means the wider platform.
Sections, not parts. The spec no longer groups its sections into parts 1 to 5. Each reference to a part names the sections it covers, or the one section it means.
Open questions. Each "Still open" note in the text links to its item in section 23.
Appendix A, How the drawing is laid out. New. How the module places things in the drawing moved there, its wording unchanged except for voice and paths: from 13.3 Direction hints to A.1, from 13.10 How arrows are drawn and routed to A.2, and from 19.8 Space along an arrow to A.3. What a writer acts on stays in those sections: the syntax, which hints exist and what they mean, what is allowed and what is a warning. Each of them says where its moved text now is.
These notes are kept as they were written while the spec was under review, newest first like the rest of this file, with file paths cut to file names. In them, "version" means revision, and a part is a group of sections: part 1 is sections 1 to 12, part 2 is section 13, part 3 is sections 14 and 15, part 4 is sections 16 to 18, and part 5 is sections 19 to 21. "The sheet" is a decision record of the review, which is private to the project.
An arrow's payload and the pill of the return beside it were placed one after the other. With arrow_spacing the second often had no room under the return and was drawn over the arrow, or the arrow came out twice as long
The two are placed as one group about the middle of the line, the payload toward the arrow's source, 8 px apart, and the layout counts the group. The payload starts 3 px lower, clear of the return's head, and lower still under the cross of a failed return (13.6, 13.10, 19.8)
The rule said a pill keeps 4 px from everything
It keeps 4 px where it can, then 3, 2 and 1 px, before it counts as having no place (13.10)
A pill of a pair went past the pair's other line as soon as the middle of its piece was taken, and read as that line's label
It takes its places on its own side first, down to 2 px from other things; for a place past the other line the layout is made again with more room first (13.10)
A pill that fits on no straight piece had one place per piece: the inner one of two loops on one node had none
It also goes beside a piece as that piece would be with square corners, where the pill is still by its own line (13.10)
A pill with no free place was drawn at the first place in order, and the warning said it was drawn over something else
It is drawn where it covers the least, which can be a free place off its line; the warning says "drawn where it is least in the way" (13.10, 21)
A row above or below with returns that have no label kept too little room between its targets, and a gap that had to grow could stay too small beside an arrow that runs straight
The gap counts the return's lane, and it is measured again after it grows (13.3)
An arrow_spacing from 0.5 to 1 could make an arrow 40 px longer
13.2, 13.3, 13.6, 13.7 and 19.8 said more than the build does: a cross at the midpoint, a pill of a row always beside the last piece, arrow_spacing as the least room beside a pill
A pill sat where the layout engine left room for it; with arrow_spacing, at its spacing from the source box. It was kept off straight lines, boxes and other pills only, so it could be drawn over the rounded corner of another arrow, an arrowhead or a payload. A payload did not move with its pill. A pill with no free place was drawn over something, and nothing said so
In every drawing a pill sits at the middle of a straight piece of its arrow, overlaps nothing and keeps 4 px from everything else where it can. Where the middle is taken it takes the nearest free place; where there is none the layout is made again, and a pill still without a place gets a warning (13.10, 19.6, 21)
The room along an arrow counted the pill only, unless arrow_spacing was set
It counts all the text of the arrow in every drawing: a payload wider than the pill, the pill of a return drawn beside the arrow, a payload and that pill side by side (19.8)
A row of targets hinted above or below a node kept no room for a pill beside an arrow; a lone target none beside its line
The targets of a row stand far enough apart for the pills, and the row keeps room past its end; a lone target keeps room beside its line (13.3)
A cross sat at the middle of the longest piece, its corners counted in; the crosses of a failure and of the failed return beside it could meet
A cross sits at the middle of the longest straight piece; the two crosses of a pair sit 8 px back from that middle each (13.10)
A pill at the edge of the drawing had to stay inside it
With arrow_spacing set, the room between columns followed the spacing, but the layout was otherwise as without it: many arrows ran much longer than the spacing, their text and the head's room (in jrn-auth at 20 px, 191 to 456 px between columns where about 100 were asked)
The layout is pulled together: connected nodes kept in line, arrows shortened after routing, routing channels no wider than the spacing. Where that leaves a pill no free place, the layout without it is used. A pill takes its spacing, else the place the layout left it, else any free place along its line (19.8)
With arrow_spacing set, an arrow longer than it asked for (its columns shared with wider labels, or a route that bends) had its pill wherever the layout put it, often far from both boxes
The pill sits at the arrow's spacing from its source box, or from its target box when the first piece is too short; where something is in the way, it slides along its line to the nearest free spot (19.8)
A failure that sends the user back was either a return (..>), which hid the failure, or a negative arrow with a hint (-left-x->), which did not go back: it counted as a way forward, and it was not drawn beside the arrow it answers
.x.>, a failed return: a return in every way, drawn as a failure (13.2, 13.7); the model marks every arrow negative or not (20.5; schema ujn-model-v5.schema.json)
A row's arrows left from near the ends of the side, 12 px apart, with no room for the returns drawn beside them: on a short side they crossed, and returns landed off the node
Each arrow and each drawn return has a lane of its own, spread about the middle of the side; the lanes keep the order of the targets and the turns nest, a return one lane from its arrow; on a side too short for that, the arrows fan out from its middle (13.3)
Hover text dropped anything between < and >, and every ** and __, so price < 10 and /admin/** lost text
Text the drawing reads as creole shows the words the drawing shows; every other key shows as written (9.3)
In quotes, only \n, \" and \\ were allowed, and the module read \\ twice, so "C:\\new" broke the line
\" is a quote; every other backslash reads as in any PlantUML label: \n breaks the line, \\ is one backslash (section 5)
A misspelled color name was taken, and drawn white
It is a warning, and the color is not used (section 5)
id_position and point on a node had to be written in lower case, unquoted
Read like the render block: quotes and case do not matter (4.6, 18.2)
A second hint to the same side of a node stayed a wish
The targets stand in a row on that side, each reached from a point of its own (13.3)
Nothing showed on hover
In SVG, a node or an arrow shows what the drawing shortens or leaves out; tooltip adds the designer's own text (9.3); the model carries it (20.4, 20.5; schema ujn-model-v4.schema.json)
Meta lines and payloads in light gray, regular
Bold, darker gray: they were hard to read at 10 px (19.3, 19.4)
Past the bar's far end: under an upright bar (flow right), beside the right end of a flat one (flow down), clear of the arrows on the bar's long sides (14.2). The module drew bars upright in a flow that ran down, with their arrows leaving through the tab; it now lays them across the flow as 14.2 says
Dark bold text on the node's light tint, outlined in its frame color; a white chip on a view's title bar, which is already tinted (4.6, 19.3, 19.4). The white text was hard to read at its small size
Arriving and leaving arrows on one side: the leaving ones first, from the top or the left
Which comes first is the layout's choice; between two nodes with going arrows both ways, each keeps to the right of its travel, so the two run in two lanes and do not cross (13.10)
The layout drew a journey one way
It draws it a few ways and keeps the clearest, reading the order of the statements as the order of the journey (13.10)
Arrows fanning out from one point could cross
They nest: the one that runs farthest turns first (13.10)
The layout placed a return like any other arrow, so a loop closed by a return could be drawn backward
A return without a hint is laid out going back: its target before its source (13.7, 13.10). Found while drawing the authentication journey, where a toast's return to Login put the action after Login in front of it.
A hint was a wish, "honored where it does not break a routing rule"
How each hint is honored, along, against and across the flow, and the three cases where a hint across the flow stays a wish (13.3). Found while building the module.
Going arrows on one side shared one point, arriving and leaving alike
Arriving ones sit 25% apart from leaving ones, so no arrowhead lands on a line that leaves (13.10)