Skip to content

The overview ​

The tree page opens on a sunburst: the whole tree as rings round a centre, coloured and patterned by state, so that the state of everything fits on one screen. In a 1366 by 768 window the circle fits below the page's banners, all three warning banners included, without scrolling. The list is the other view of the same page; both share the selection and the search. The status filters are buttons above the list. The sunburst has no such buttons, because its legend already counts each state; a filter chosen in the list still applies to it.

The overview of the sample estate in the dark theme

The pictures on this page show the sample estate described below: a small business with a head office and two branches. In the light theme: whole estate, head office servers, problems only; in the dark theme: head office servers, problems only.

Switching views ​

The Sunburst | List switch at the top left of the tree page chooses the view. Someone who has never chosen sees the sunburst. The choice is remembered in this browser (local storage, key probeward.treeView). If the browser refuses storage, the page still works and starts on the sunburst.

The view is in the address: /tree?view=sunburst or /tree?view=list, plus &zoom=<node> when the sunburst is zoomed. A copied link opens what was on screen, but does not replace the choice the receiving browser remembers. Older links with view=tree open the list and are rewritten to view=list.

On a screen narrower than 768 pixels, such as a phone, the chart takes the full width and the details go below it. The sidebar starts collapsed there, whatever was chosen on a wider screen. It can still be opened; it closes again on the next page, and opening it there does not change the choice remembered for wide screens.

Switching keeps the selected node. Going from a zoomed sunburst to the list expands the zoomed branch and the selected node's parents, so the selection is on screen in both views. Going the other way keeps the zoom if the selection is drawn in it, and otherwise zooms to the selection's grandparent, so it is drawn with its neighbours.

The rings ​

From the centre outwards:

  1. probes (sites),
  2. groups, as many rings as there are levels of groups,
  3. devices,
  4. sensors, always the outermost ring of a branch.

With a single probe, the probe ring would be one full circle that says nothing the centre does not. The chart is then drawn round that probe: the centre names it and the first ring holds its groups. The path above the chart still starts at "All probes", and the zoom in the address stays empty, so a link keeps working when a second probe is added. There is nothing further out to zoom to, so Escape does nothing at that level, and clicking the centre selects the probe instead, showing its details and actions beside the chart, since the probe has no arc of its own. With two or more probes, the centre stands for all of them and the first ring is the probes.

At most five rings are drawn at a time. A branch that goes deeper has a short band just outside its last ring, and its name says "more levels below". Double-clicking the branch zooms in. The centre says what is in view (for example "All probes, 919 sensors") and gives the counts by state in words and symbols. Sensors suppressed by a dependency are counted apart from the problems, as "38 suppressed", so the centre shows the problems that need someone and, separately, how much a known failure has taken with it.

An empty group and a device without sensors are drawn with a dashed outline and the muted background colour, and are named "no sensors". A branch in which every sensor is paused is drawn as paused.

Sizes ​

An arc's angle is proportional to the number of sensors below it. A node with no sensors counts as one, so it can still be seen and clicked.

Two rules bend that:

  • A minimum for problems. An arc that is not healthy (down, collection failure, warning, unknown) and not entirely suppressed by a dependency is at least 9 pixels long along the middle of its ring, however few sensors it holds. One broken sensor among 5,000 healthy ones would otherwise be a fraction of a pixel. Its neighbours give up the space, shared by their sizes. When there are too many problems for all of them to have the minimum, the rule is dropped for that ring and the sizes are proportional again.
  • Folding. Siblings whose arc would be shorter than 6 pixels are folded into one arc per state, placed after the others and named, for example, "212 more devices in Servers, all up, 2120 sensors; zoom in to see them one by one". A folded arc is sized by its sensors. Clicking it lists the folded nodes in the panel beside the chart; double-clicking it zooms into the parent, where each one is wide enough to draw. At the top level there is no parent to zoom into, and a double click lists them too.

The thresholds are pixels, not counts, so a larger window or a zoom unfolds more. Because of both rules, sizes are not exactly proportional. Read the counts in the centre and in the legend for exact numbers; the picture is for where the trouble is.

Problems only (sunburst only) shrinks every healthy branch to a sliver (a fiftieth of its size) and stops drawing below it. The broken branches take the circle. The healthy ones stay as thin slivers, named "healthy, collapsed", so nothing disappears. A branch whose only problems are suppressed by a dependency counts as healthy here: the failure that explains it takes the room.

Problems only, dark theme

Shares of each state ​

A probe, group or device arc is stacked: along its length it is split into one segment per state, sized by the number of sensors below it in that state. One failing sensor out of four is a quarter of each arc above it, not the whole arc.

  • Segments sit under what they come from. When an arc's children are drawn, its segments are taken from the children as drawn, so a red stretch of a group is always right under the device that is down, and the probe ring follows its groups the same way.
  • Worst first otherwise. When the children are not drawn (beyond the outermost ring, or collapsed by "problems only"), the segments come from the counts, in the same order, worst first: down, collection failure, warning, unknown, then down and collection failure suppressed by a dependency (drawn faint), then up. Clockwise is the direction the angles grow in, so those problems are at the anticlockwise end of the arc.
  • Minimum for the worst. On an arc whose segments come from its counts, each problem segment is at least 9 pixels long, the same minimum as a problem arc, so one down sensor among thousands still shows. A drawn child that is not healthy already has that minimum on its own ring. When there is no room for every problem state to have it, only the worst state keeps a minimum, of up to half the arc. As with arc sizes, segment lengths are then not exactly proportional.
  • Paused, maintenance, outside schedule and suppressed follow the rule the legend states. A paused sensor counts under its last state, as in the roll-up and the counts; a container is one paused segment only when every sensor below it is paused, and a paused child counts on the arc above it under its sensors' last states. Maintenance and outside schedule do not change a sensor's state, so they have no segment of their own; the legend lists them separately. Suppression does not change the state either, but a suppressed sensor's segment is kept apart from the others of its state and drawn faint (see below), and has no minimum. A container with no sensors is one "no sensors" segment.
  • The segments are decoration. The arc is still one item: one tab stop, one click target, one context menu, and its accessible name already carries the counts ("Group Servers: 2 down, 1 warning, 40 up"). The segments are hidden from assistive technology.
  • A device's sensors are drawn worst first (within one state, in their usual order), so a device's problems are at its anticlockwise end and each state is one run. A paused sensor sorts by its last state, which is the state its device counts it under. Folded arcs are one state each, so they line up too.

Sorting by state rather than by position was chosen because the point of the overview is to read the state at a glance: with sensors in their configured order, a device with one failing sensor in the middle would show its failure segment at one end and the failing sensor somewhere else, and the eye would have to match them up. The list keeps the configured order. The cost is that a sensor that changes state moves along its device's ring; the move is animated and the arc pulses, so it can be followed. Groups and devices keep their configured order, so the overall shape of the picture does not change when states change; the segments of the arcs that hold them follow that order rather than putting the worst first, because a red stretch on a group that is not under its red device sends the eye to the wrong place.

Colour, patterns and words ​

An arc's state is the tree's own roll-up: the worst of the sensors below it, in the order down, collection failure, warning, unknown, up. It is the state named for the arc and the one that decides the minimum size; the segments show the rest. A container whose sensors are all paused is paused. A paused sensor is drawn as paused, but its last state still counts in the roll-up and the shares above it, as in the list; the legend says so.

The colours are the status tokens of the design system. Colour is never the only signal:

StatePattern over the colour
DownCross-hatch
Collection failureDots
WarningDiagonal stripes
UnknownShort dashes
PausedVertical bars
UpNone
No sensorsNone, with a dashed outline

The legend beside the chart repeats the patterns with the counts in words, and the centre gives the counts with their symbols.

Down is a full red and collection failure a violet, in both themes, so that neither can be taken for the other or for the yellow of warning. The destructive buttons keep their softer red.

Suppressed by a dependency. When a switch dies, everything behind it fails too, and the engine marks those sensors suppressed. They keep their state, pattern and words, but their fill is drawn at 40% opacity, they sort after the real problems on their ring, and they have no minimum size, so the one failure that explains them is what the eye finds. The legend shows the faint swatch and the count, and an arc's name and card still say "suppressed by a dependency".

Contrast, worked out from the OKLCH tokens by ui/scripts/status-colours.mjs (run it with node scripts/status-colours.mjs in ui/ after changing a status token):

  • Dark theme: every status colour is at least 4.89:1 against the background (collection failure is the lowest).

  • Light theme: up (2.82:1), warning (2.21:1) and paused (2.73:1) are under 3:1 against the background. Every arc there therefore has an edge of its own colour mixed 45% with the foreground, which is between 5.66:1 (warning) and 9.41:1 (unknown) against the background.

  • Labels take the ink that reads on the fill beneath them, with no visible halo where that is enough. A halo 1 pixel wide in the fill's own colour hides the pattern round the letters, so the ink is read against the plain fill:

    FillLight themeDark theme
    Upforeground ink, 5.88:1background ink, 9.14:1
    Warningforeground ink, 7.52:1background ink, 11.91:1
    Pausedforeground ink, 6.07:1background ink, 8.49:1
    Unknownbackground ink, 5.28:1background ink, 5.77:1
    Downbackground ink, 4.73:1background ink, 5.25:1
    Collection failurebackground ink, 5.04:1background ink, 4.89:1
    No sensorsforeground ink, 15.20:1foreground ink, 12.99:1
    Several segmentsforeground ink on a halo of the page colour, 16.6:1the same, 15.3:1

    A label that crosses segments of different states keeps a thin halo (1 pixel round each letter) of the page colour.

The same script simulates the three full colour-vision deficiencies (protanopia, deuteranopia and tritanopia) and gives the distance between every pair of states in OKLab, times 100; under about 5 two flat colours are hard to tell apart. Down, collection failure and warning stay at least 16.8 apart in every case (down against warning with deuteranopia in the light theme is the closest), so the three problem states can be told apart by colour alone. Up and paused are the pair that is lost: 3.1 and 2.8 apart with tritanopia. Paused has its vertical bars and up has no pattern, so the patterns still separate them, and they remain the guarantee for every state.

Labels ​

A name runs along its arc where the ring is thick enough and the arc long enough. Otherwise it runs across the ring, from the centre outwards, where the arc is wide enough for one line. The lower half of the circle is drawn so that text is never upside down. A name that does not fit is shortened with an ellipsis; when fewer than three characters would remain, the arc has no label and its name is in the card and in its accessible name. Labels never overlap, because each one stays inside its own arc.

A name with spaces loses its end ("Storage and…"). A host name (one word with digits, dots, dashes or underscores) loses its middle and keeps up to four characters of its end ("sw-h…-03"), because the host names in one place usually share their start and differ in their number. A folded arc is labelled ("+12") only when what it folds needs attention; a fold of healthy or suppressed arcs is left blank, and its card says what is in it.

Using it ​

DoMouseKeyboard
See a node's detailsPoint at it: a card shows the name, path, state, reason, last values, open incidents and the last changeMove focus to it: the same card, and the panel
Select a group, device or sensorClick it: the panel shows its details and a link to its pageMove focus to it, or Space
Drill down into a branchDouble-click it: the chart zooms inEnter
Open a sensor's pageDouble-click it, or the link in the panelEnter on the sensor
Zoom outClick the centre (one level), or any name in the path above the chartEscape (one level)
Move round a ringLeft and Right arrows, wrapping round
Move outwards or inwardsUp arrow to the first child, Down arrow to the parent
First or last on the ringHome, End
Select a node and open its actionsRight click it, or the centreMenu key, or Shift+F10

With nothing selected, the panel beside the chart lists the sensors that need attention below the zoom: not healthy, not paused and not suppressed, worst first, the unacknowledged before the acknowledged, up to eight, with the count of the rest. Clicking one zooms to its device's group and selects it. Together with the centre's counts this is the quickest way to the few real problems in a large picture.

Zoomed into the head office servers, light theme

A group or device with nothing below it has nothing to zoom into, so a double click opens its page.

The list follows the same rule: a click selects a row, and a double click opens or closes a branch and opens the page of a sensor or of anything else with nothing below it. A control or middle click on a name opens its page in a new tab.

The actions menu is the list's own menu, with the same permission checks, so acknowledging, pausing, scanning and the rest work the same from either view. Its first entry, Open … page, is also the way to editing: a group's or device's page has an Edit button, and a sensor's page has its settings tab. Zooming animates; with reduced motion set in the operating system, it changes at once.

A focused arc has a visible ring when the keyboard is in use. The selected arc has an outline in the primary colour.

Search, and any status filter chosen in the list, dim what does not match instead of removing it, so the shape of the tree stays the same and the matches stand out.

Live updates ​

Status changes arrive through the same event stream as the list. Arcs change colour in place; the zoom, the hover card and the keyboard focus stay where they are. An arc whose state changed pulses once (not with reduced motion). When a change alters the sizes, or nodes are added or removed, the arcs move to their new places over a quarter of a second.

For assistive technology ​

The chart is an ARIA tree: the chart is role="tree" and every arc is a treeitem with its level, its position among its siblings, whether it is expanded, and whether it is selected. One arc at a time is in the tab order (a roving tab index); the arrow keys move within the tree. Every arc has a name that says its kind, its name and its counts in words, for example "Group Servers: 2 down, 1 warning, 40 up", or for a sensor "Sensor Ping: down, acknowledged".

Why a tree and not a grid or a list of figures: the data is a hierarchy, the list view is already a tree, and the keys a screen reader user expects from a tree (up and down a level, along the siblings, Enter to open) are exactly the moves the chart makes. The levels are rings and the siblings are neighbours on a ring, so the arrow keys follow the picture: left and right go round, up goes out, down goes in. The items are flat siblings of one group with aria-level, aria-posinset and aria-setsize, rather than nested groups, because SVG arcs of one ring cannot be wrapped in their parent's element without breaking the drawing order. The arcs that leave the picture while a zoom animates are hidden from assistive technology.

The sample estate and the demo mode ​

ui/src/lib/demoEstate.ts builds a made-up small business, the same every time apart from its timestamps: a head office and two branches, Mill Lane and Harbour Road, the second behind a remote probe, plus a cloud probe that checks the public services from outside. It has groups for the network, servers (a virtualisation cluster of three hosts and their guests, Windows domain controllers, file, database and print servers, Linux web, mail relay and backup servers), storage and backup, power, printers, cameras, a phone system, services (website, mail, DNS, VPN, certificates) and cloud checks: about 130 devices and 920 sensors. Every address is from the documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) and the domain is under .example. No product names are used.

The moment it shows: the access switch at Mill Lane does not answer and everything behind it is suppressed, while the firewall port it hangs off is down; the file server has a disk warning; a certificate expires soon; one backup job has stopped reporting; a printer is low on toner; a Windows server is in maintenance; a few sensors are paused; the switch's failure is acknowledged. Everything else is up.

pnpm dev:demo in ui/ starts the dev server with the API answered from this estate, no core or database needed. Every few seconds the live stream plays a change and, a little later, its reversal (a CPU warning, a slow web check, a wireless access point that stops answering, the backup job reporting in, a memory warning). The header says "Demo data, not a real network", and the demo user is a read-only viewer; anything that would change something is refused. The mode is part of the dev server only: vite build --mode demo stops with an error, and nothing of the estate or the label is in a production build. In VS Code it is the launch configuration UI demo (sample estate, no core), see VS Code. The screenshots on this page are taken by the end-to-end suite on the same estate.

Deliberate choices ​

These were weighed on the sample estate and kept as they are:

  • An unreachable switch is a collection failure, not down. The engine calls something down only when a poll succeeded and said so, and a switch that does not answer cannot be polled. The red is on the firewall port it hangs off.
  • A ring with a single arc stays a ring. The cloud probe holds one group, so its group ring is one arc as wide as the probe. Collapsing it would save a ring but break the rule that a ring is a level, which the keyboard and the screen reader follow.
  • Maintenance has no mark in the picture. The legend counts it and the card says it. A device in maintenance is still polled and its state is still true, so drawing it differently would hide its state.

How it is drawn ​

The chart is plain SVG drawn by the page, with the layout in a pure function (ui/src/lib/sunburst/layout.ts) that has its own tests. The ECharts sunburst, already in the bundle for the sensor graphs, was considered and not used:

  • it draws to a canvas, so arcs cannot take keyboard focus or carry ARIA roles and names; its aria option describes the chart as a whole, which is not enough to work it from the keyboard;
  • the minimum width for problems and the folding of thin arcs by state would have to be worked out before handing it the data, so the layout function would be needed anyway and ECharts would only draw;
  • the context menu, the hover card, the pulse and a zoom that keeps keyboard focus would be built round its event callbacks instead of on elements of the page.

Hand-written SVG gives every arc its own element, focus, name and context menu, and the browser draws a few hundred paths quickly. It adds no runtime dependency. The built UI grew by about 40 KB (13 KB compressed), almost all of it in the tree page's own chunk, which is loaded only on that page.

Measured limits ​

Measured with ui/e2e/perf/sunburst.perf.ts, which answers the tree request with a generated estate (sites, groups of 40 devices, 10 sensors per device, about 2% down and 3% warning) and then plays a burst of 500 status changes on the event stream. Headless Chromium, 1366 by 768 window, on an 11th Gen Intel Core i7-11850H, against a debug build of the server.

1,000 sensors10,000 sensors50,000 sensors
Tree response407 KiB (13 KiB compressed)4.0 MiB (128 KiB)20.1 MiB (639 KiB)
Parsing the response2 ms8 ms43 ms
First arcs on screen after navigation207 ms229 ms482 ms
Of which after the data arrived63 ms72 ms216 ms
Arcs drawn at the top level272154775
Elements in the chart, segments included7866931,850
JavaScript heap after drawing5.3 MiB10.0 MiB34.7 MiB
500 status changes: first redraw135 ms130 ms144 ms
500 status changes: longest taskunder 50 msunder 50 ms122 ms
Card shown after pointing41 ms24 ms30 ms
Frames while zooming into a site63 per second63 per second24 per second
Worst frame while zooming17 ms17 ms133 ms

The 50,000 column is the middle of three runs. The first redraw after a burst includes the 120 ms the tree store waits to gather changes into one redraw. The pulse of changed arcs ends 1.3 s later. "Card shown" includes the time the test takes to move the pointer.

At 1,000 and 10,000 sensors the chart keeps up with the screen: no task over 50 ms, at 60 frames a second.

Known limit: about 50,000 sensors. At 50,000 the chart still works and the picture is correct, but it is no longer smooth:

  • a zoom starts with one task of about 120 ms (laying out the new branch) and then runs at about 25 frames a second; before the inner rings were stacked by state it ran at 37, so the segments cost about a third of the frame rate at this size and nothing measurable at 10,000;
  • a burst of 500 changes holds the page for about 120 ms;
  • the tree response is 20 MiB before compression and takes about half a second to arrive and become arcs.

More arcs are drawn at the top level than at 10,000 sensors, because the thousand or so problem sensors each claim the minimum width until they fold. For estates of that size the next steps would be a smaller tree response (only what the top rings need) and a canvas for the outer ring. Neither is done.

To run it against any running server:

text
cd ui
PERF_BASE_URL=http://127.0.0.1:8080 PERF_USER=admin PERF_PASSWORD='...' \
  pnpm exec playwright test -c e2e/perf/playwright.config.ts

PERF_SIZES=1000,10000 limits the sizes. The server's own tree does not matter: the test replaces it.

AGPL-3.0-only