{#- Reason overflow (ADR-0056 decision 1): a node's reasons clamped to a *line budget*. The block shows at most ``cap`` lines (settings.yaml ``reason_cap``: short reasons ⇒ that many reasons, a wrapped reason uses more of the budget); the overflow stays in the DOM, clipped by CSS (never cut mid-HTML, ADR-0018) and faded. *⌄ all N* beneath the lines (tree.js, the tab's map) reveals it in place and survives the ~10s fragment swap and a reload — *⌃ less* folds it again. The leaf detail page (check.html) stays full; the JSON envelope is untouched. -#} {#- Each line also carries the ``reason.actions`` slot (ADR-0034) — the place a dependent package hangs a local interaction off *this* reason, e.g. "raise a ticket for it". The slot is offered on every reason of every node and the filler decides where it applies; core passes the **unshortened** reason, since the 400-character clamp is a display budget and an action wants the whole text. Rendered server-side like the rest, so it survives the ~10s fragment swap. -#} {#- Reasons are keyed entries (ADR-0036), so a line can be pinned on its own. A quiet line is **shown**, in the maintenance tint (ADR-0032 rule 5) — hiding it would be the suppression covering its own tracks — and the node states how many are quiet, because the clamp above can put the pinned line below the fold and the count is then the only thing that always shows. -#} {#- Why the node is blue: the pin's block (ADR-0104 decisions 1 and 2) — who put it in maintenance, until when and what is left, and for an admin *Edit* and *Clear*. It stands **above** the reason block and outside the ``reason_cap`` clamp, so the reason for the color can never be the thing that gets clipped — the placement rule the quiet count already follows — and it paints its own maintenance tint, like every other maintenance surface, so it does not depend on the card fill under it. A card's head names the node, so the sentence opens with what was done to it (`bare`). On the wall the block is the button that opens the drawer at it (`wall`, ADR-0147 decision 7), and it stands only while *◇ details* is on (`handled_details`, decision 6): off, the wall says a handled part by its color and its mark alone, and nothing of the block is drawn. The card drawn at depth 0 — the viewed node's, the root's on the overview — is that node's own head, and states it whole either way: the overview's is the root's own page, the one place a pin on the root is changed. ``pinning`` is what every pin on the page shares: whether the reader may write one, the address a write comes back to, and the count that gives each editor ids of its own — a wall carries an editor for each card, and a label finds its field by id. -#} {% macro pin_stated(node, pinning, wall=true) -%} {%- if node.maintenance_entry -%} {%- set pinning.count = pinning.count + 1 -%} {{ pin_block(node.maintenance_entry, 'node', node.path, '', 'pin-' ~ pinning.count, pinning.may, next=pinning.back, of=node.path, bare=true, wall=wall) }} {%- endif -%} {%- if node.acknowledgment -%} {%- set pinning.count = pinning.count + 1 -%} {{ pin_block(node.acknowledgment, 'node', node.path, '', 'seen-' ~ pinning.count, pinning.may, next=pinning.back, of=node.path, bare=true, wall=wall, fails=node.own_code.name in ('WARN', 'ERROR')) }} {%- endif -%} {{ rules_stated(node, pinning, wall=wall) }} {%- endmacro %} {#- A configured rule where it acts (ADR-0137): its block on the box or the card whose part it changes the count of, while it does — what the node passes up, how its children count in it, how its lines count in it — beneath a pin's, and none on a node it picks and changes nothing of now: a configured rule stands for good, and the wall shows what is now (ADR-0135 decision 9). A node's own page and *Handled* state it always; the card drawn at depth 0 (`wall` false) states it whole, as it states a pin. -#} {% macro rules_stated(node, pinning, wall=true) -%} {%- for at, place in [(node.rule, 'node'), (node.children_rule, 'children')] if at and at.changes -%} {%- set pinning.count = pinning.count + 1 -%} {{ config_block(at, place, node.path, 'rule-' ~ pinning.count, wall=wall) }} {%- endfor -%} {%- for at in lines_rules(node) if at.changes -%} {%- set pinning.count = pinning.count + 1 -%} {{ config_block(at, 'lines', node.path, 'rule-' ~ pinning.count, wall=wall) }} {%- endfor -%} {%- endmacro %} {#- A coded line (ADR-0042) carries the entry's **own** claim: its state class, a small labeled cue (a line has no status word, so the cue is its accessible name), and its state's own tint — every coded line paints one, because a mixed list sits on a *vivid* card fill, where a surfaceless passed line would read as more of the problem (the is-quiet lesson: ink-on-whatever fails the bar). A quiet (pinned) line keeps the maintenance tint whatever its code says: suppression is the louder fact. `is-running` marks work in flight — italic, display only; the line's words still say it, so no meaning rides on the italic alone. A handled line keeps all of that and carries its job's mark at its top right, which is its door — a link to its node's *Notes* tab at what handles it (ADR-0147 decision 7) — and a rail on its right edge wherever its node counts it as something other than it shows, in the color it counts as instead (ADR-0143). **The block's lines come failing first** (ADR-0127 decision 6): errors, then warnings, then the rest, each group in the check's order, a pinned line among the rest — so what the sheet's clamp to `reason_cap` cuts is healthy lines, and the reason for the box's color needs no click. A roster whose failing name came eighth stood yellow with six green lines in view. The order is the server's, so it stands through every swap; `own_lines`, which nothing clamps, keeps the check's order. -#} {#- Where the node's fold is configured on (ADR-0128) and it claims no `show_when_quiet`, its healthy lines carry `data-fold-drawn`, which `overview.css` folds from the first paint where the page has its scripts, until `tree.js` folds them itself; without script nothing is folded. -#} {% macro reason_block(node, cap, folded=false) -%} {%- if node.reasons -%} {%- set total = node.reasons | length -%}
Only what carries {{ tag }}{% if tag_line %} — {{ tag_line }}{% endif %}{{ '' if tag_line and tag_line[-1] in '.!?' else '.' }} {%- if tag_hidden %} The filter hides {{ tag_hidden | length }} {{ 'part that fails' if tag_hidden | length == 1 else 'parts that fail' }}: {% for part in tag_hidden[:5] %}{{ part.path }}{{ '' if loop.last else ', ' }}{% endfor %}{% if tag_hidden | length > 5 %} and {{ tag_hidden | length - 5 }} more{% endif %}.{% endif %} {%- if layout != 'kiosk' %} Every node{% endif %}
{%- endif %} {% if node is none and no_node %} {% include '_no_node.html' %} {% elif node is none %}{{ branch }}.
Back to status.
{{ nothing_left | default("") or "No checks reporting yet." }}
{% else %} {#- **A node's page draws its node in a frame** (ADR-0127 decision 8): the page is the same tree as the wall, rooted at the node, and the node itself is always open — framed with everything that is part of it. Its head is the frame's top (`frame_head`, which a leaf's page draws too), with the pins acting on the node stated at its head and its own lines beneath; its children inside, the cards of the page; and last the node's own facts, after the children, every card open. Drawn on every page at a depth past 0 — the one card of `depth=0` is the node itself, closed to its head and counts, and is not framed — and on the kiosk too, without the icons and the facts, as its heads go without. The frame is the page's node in the tree's markup: a `.tree-node` marked `data-page-root`, always open, its box holding the head, the page's grid — its level, whose cards are its children — the healthy fold's count and the facts; `data-failing` as on every node, which a close the viewer set on the wall reads for its incident while the page is open. So its ▤ folds the page's cards and its funnel the healthy ones and its own healthy lines, by the node's own entries in the tab's map, the same entries its box carries on the wall (`tree.js`). Its edge is its state's; the head wears its fill. Inside `#status-grid`, so the refresh draws all of it again, the facts among it: `report` is an output of the run. What the head shows is what the cards below suppress (ADR-0044): the head is the topmost visible node, so its time is the one the cards leave out. -#} {%- set framed = branch and max_depth >= 1 -%} {%- set head_shown = node.timestamp | localtime("%H:%M") if (framed and node.timestamp) else "" -%} {%- if framed %} {#- the cards' faces as drawn: open on a page as it arrives, closed under a `depth=1` but where the failure budget opened them; and the page's node's own fold, as its files say -#} {%- set card_faces = drawn.faces(node.children) %} {%- set frame_fold = healthy_counts(node) %} {%- set frame_folds = node.path in drawn.folded %}{{ nothing_left | default("") or "No checks reporting yet." }}
{%- else %} {#- The grid carries the server's clock in whole seconds for the tab's map, which holds a close for its node's incident by the server's time and never the browser's (ADR-0127 decision 9). On a node's page it is the frame's level: the page's node, which its rule opens the children of as it arrives (decision 8), is the frame. -#}