Commit Graph
1020 Commits
Author SHA1 Message Date
Zakk ce3c91d38d perf(store): publish a feed's first records at once
A feed published its first snapshot only when its batching timer fired,
so Logs waited 100 ms for its first rows on every open. The first records
of an empty list now publish after the task that delivered them; later
records keep the feed's cadence.
2026-10-05 02:01:54 +11:00
Zakk eb5a1ad2e5 perf(logs): hold the activity chart's space while the stream opens
The chart above the list mounted with the first records, pushing the
list down by its full height. While the stream opens, the strip and the
card are laid out hidden under the kit's skeleton blocks, so the list
keeps its place. The e2e checks the header does not move.
2026-10-05 02:01:54 +11:00
Zakk f564c80d48 perf(policies): stop rebuilding per-card work on every render
Every policy card runs a closed group dialog that rebuilt the region flag list through Intl and compiled each region filter against an empty node list on every render; the flag list is now cached per locale and the matcher returns early with no nodes. The node grid keeps rows at the fixed 56px tile height, so the virtualizer stops re-measuring visible tiles. Policies' first open at 4x CPU: 711 ms to 561 ms median, long tasks 639 ms to 494 ms.
2026-10-05 02:01:54 +11:00
Zakk 1004f7e2ef fix(login): keep the wordmark on the sign-in card on phones
The top bar hides its wordmark below 421px to fit its actions. The
sign-in card has the room, so it keeps the name beside the mark.
2026-10-05 01:34:31 +11:00
Zakk e4955c5263 feat(login): centre the sign-in card and drop the showcase
The sign-in page is one kit Card centred both ways on the content
background, the same at every width, with the language, palette and
theme controls left in the corner. On Glass the wallpaper shows behind.

The mini game beside the form goes with its canvas button, duck paths,
styles, messages, unit keys only it used, chunk tests and size-budget
entry. startupLogin drops from 259115 to 252580 bytes gzip.
2026-10-05 01:34:31 +11:00
Zakk 78575b9d63 test(ui): guard the Form and NumberField rules 2026-10-05 01:08:17 +11:00
Zakk 219ed55917 feat(ui): use Form and NumberField everywhere they fit
Every form, Login included, is a kit Form, so Enter submits. Typed whole numbers (ports, DSCP, runtime limits, group check timings, subscription interval) are NumberFields that update the draft as you type; hex, auto, values with units, u64 limits and lists stay TextFields, listed in CONTRIBUTING. The route size limit moves from 75000 to 79000 bytes because the check counts the shared NumberField chunk (7834 bytes, loaded once) in every route that imports it; trimming the Rules route is left to the pre-release slimming pass.
2026-10-05 01:08:17 +11:00
Zakk a11e3b5b93 feat(ui): add kit Form and NumberField
Form hands isDisabled, isRequired, necessityIndicator and validationBehavior down to the kit fields; DialogForm is Form laid out in dialog sections. NumberField is React Aria's number field in TextField's box with S2's steppers, grouping off, empty meaning unset, and stepper names from doona's own strings because React Aria's zh-TW names are the zoom words.
2026-10-05 01:08:17 +11:00
Zakk 2b5fa17f6a fix(ui): put the flow table detail's close at its top right and draw its actions at M
The detail's text Close button becomes the drawer's icon close button, in the
first row beside the fields. The Events and Flows detail links drop the small
size so they match the other M controls.
2026-10-05 00:20:33 +11:00
Zakk 887af7d609 feat(ui): add a Copy record button to Logs and Events rows
Each row copies the text its page exports: a log line as the Logs export
writes it, an event as the Events export's JSON object. The Events summary
column minimum narrows so the new column fits at 1024px without dropping
the time or kind columns.
2026-10-05 00:20:33 +11:00
Zakk 49505d9d67 fix(ui): mark async buttons pending
An audit of buttons that start a request found one without a pending
state: the kit's error alert Retry, which refetches. It now stays
pending until the refetch settles. Every other request button already
passes isPending, or closes into a dialog, toast or status that shows
the progress.
2026-10-05 00:04:53 +11:00
Zakk ed59fdcc3d fix(ui): show a pending button the way S2 does
S2's Button stays focusable but disabled while pending and shows an
indeterminate spinner in place of its label and icon only after a
second. The kit Button now does the same with the kit's ProgressCircle
(size S, 18px at M and 20px at L, as S2 sizes it): a shorter wait shows
nothing, and a longer one hides the label and icon without removing
them, so the button keeps its size. The circle takes the label's colour
on any fill and follows the kit's reduced-motion rule.

The circle is rendered hidden from the start of the wait, so React Aria
names the button with it and announces the pending state to a focused
reader; no live region is added. A refresh button keeps its own turning
arrows and shows no circle. ProgressCircle moves to its own module so
Button can use it, and the old spinner, its dimmed label and the unused
spin keyframes go.
2026-10-05 00:04:53 +11:00
Zakk 7e9afb82ad fix(ui): keep editor tools apart from the commit actions
The source editor drew Validate, Cancel and Apply as Buttons in the same
row as Find and replace, Go to line and the editing commands. The commit
actions now have their own row, Apply last, and the editing tools take
the row above the text as filled action buttons, folding into the more
menu on a phone as before. The only CodeEditor with a toolbar is the
source card, which every source (rules, DNS and the rest) shares.

A row of primary actions now keeps one shape: a quiet button in it (the
group dialog's Undo) takes the pill too, and a dialog's body turns the
context off, so the dashboard editor's row can include its gallery
button without reaching the gallery's contents.
2026-10-05 00:04:53 +11:00
Zakk fa82044592 fix(ui): give form action rows Button geometry
In S2 a form's action row is a ButtonGroup of Buttons, so its secondary
and accent actions are both pills. Rows that commit, test or discard a
form or an edit now wrap their buttons in PrimaryActions, as the dialog
footer does: Settings backend (Test connection, Save), runtime settings
(Apply, Discard), Global settings (Write and reload, Discard), the
source editor's Validate, Cancel and Apply, the changed-on-disk choice,
the dashboard editor's Reset, Cancel and Done, and the empty Nodes
page's add actions. Toolbar and per-item actions stay ActionButtons.
2026-10-05 00:04:53 +11:00
Zakk b7086d7733 fix(ui): keep ActionButton geometry for everyday buttons
S2 draws everyday actions as ActionButtons and keeps the Button pill
for a flow's primary actions. Kit buttons now default to ActionButton
geometry: 8px corner (9px at L), medium weight and a 3/8 inset, with the
same fills, outline and states as before. Accent and negative fills, and
labelled buttons inside the new PrimaryActions context, which a modal
dialog's footer provides, keep the bold pill.
2026-10-05 00:04:53 +11:00
Zakk 6d1a1b2713 fix(ui): match the kit Button to Spectrum 2's Button
Buttons are pills with bold labels, a 2px gray-300 outline on secondary
buttons and no border when filled; negative buttons are filled. Leading
icons follow S2's line size (18px at M, 20px at L), the M inset is half
the height, and keyboard focus takes the hover colour. Quiet buttons
keep S2's ActionButton corner and medium weight. Heights do not change.

The Activity geometry baseline moves the quick-control row's split by up
to 4.5px, since its cards are sized by their buttons.
2026-10-05 00:04:53 +11:00
Zakk 2ffcf525b2 fix(ui): cut Glass chrome sheet with a mask instead of a clip
The Glass chrome is one fixed, blurred layer over the whole viewport, with
a concave clip-path polygon cutting the content box out of it. When an
ancestor clips with rounded corners, Chrome (154, and Edge with it) stops
applying that concave clip to the backdrop blur. luci-app-honk embeds doona
in an iframe with border-radius: 4px, so the sheet covered the whole content
area there: only the blurred wallpaper showed, while hit testing still found
the page under the pointer-events: none layer. A rectangular or rounded-inset
clip, or no radius on the iframe, renders correctly.

The sheet is now cut with mask layers built from the shell's own sizes: the
top bar, the sidebar width, the content's end margin, the centred maximum
width and the content's corner radius. Narrow screens and right-to-left
reuse the same mask with different side widths. The top-level rendering is
unchanged outside the live data, at 800, 1440 and 1920px and in RTL.

The new e2e test loads doona in a rounded iframe and checks the page title's
pixels are dark ink; it fails on the old clip-path (darkest 149) and passes now.
2026-10-04 23:05:36 +11:00
Zakk 6ad05a83d4 fix(ui): draw page tabs at M again
Page tabs keep the segmented control's track, sliding selection and Tabs
semantics, but at M (32px, the M text size) like every other segmented
control. The Policies kind switch and its New group button go back to M,
so Segmented loses its size prop and the L segmented rules. The specs
assert M heights and 14px labels; the 360px DNS case leaves the tab-fade
cases because its tabs now fit.
2026-10-04 23:03:51 +11:00
Zakk 4b8cfd30ee fix(widgets): give the edge handle room around its summary
The light sits in a control-wide square as in the panel header, so the
gap to the rates matches the header, and the handle adds the control's
inline padding after the rates, keeping them clear of the screen edge.
2026-10-04 20:43:39 +11:00
Zakk d514b4958a fix(widgets): keep the collapsed panel wide enough for its summary
The collapsed floating header reserves the widest rate, and a collapsed
panel is at least as wide as its header, so a panel resized to its
least width no longer cuts off the rates. The expanded width and the
resize limits are unchanged.
2026-10-04 20:43:39 +11:00
Zakk e881752c02 fix(i18n): write a shared byte unit once in a fraction
formatBytesFraction writes a unit both sides share once, so 70 MB of
268 MB reads 70/268 MB, while differing units stay on each side. The
memory widget, the overview's cgroup bar and the node quota usage use
it. The memory widget's meter takes the shorter cgroup used label, so
the meter fits on one row in the docked panel.
2026-10-04 20:43:39 +11:00
Zakk b995d0cc58 feat(widgets): put an Undock button in the docked panel header
The docked header no longer repeats the section's title. An Undock icon
button, styled like the buttons beside it, takes the pin's place, and
the menu drops its Undock item so the action has one entry.
2026-10-04 20:43:39 +11:00
Zakk 09da41dbfa fix(widgets): keep a pinned panel in place
A pinned floating panel no longer renders its move and resize handles,
so it cannot be dragged, moved by arrow keys, dropped onto the sidebar
or resized. Unpinning brings the handles back at the stored size and
offset; the viewport clamp still applies while pinned.

The panel now starts unpinned, migrated panels included; a stored
layout keeps the pin it was saved with.
2026-10-04 20:43:39 +11:00
Zakk b38e974d79 refactor(i18n): merge strings that name the same thing
Merged 48 groups of keys that carry identical text in all three locales and
name the same concept in the same role, such as Download, Upload, Engine,
Name and Protocol. 68 keys are removed and one, ui.undo, is added, so the
catalogues shrink by 67 keys. Callers, tests and e2e specs follow the kept
key.

52 groups stay apart because the text only coincides: Automatic as a DNS
upstream, a probe family and a group follow state; adjective states such as
Failed and Degraded; button verbs such as Apply and Create; CodeMirror
phrases; dynamically built config keys. The overview keys that the pinned
panel change still edits are left in place.
2026-10-04 20:31:58 +11:00
Zakk 8ef8de6db4 fix(ui): draw nav chevrons at S2's icon size and colour
The section chevrons drew the 20-unit workflow chevron in a 10px box,
leaving a 0.75px stroke. S2's side navigation uses its 10px UI chevron
(about 10px long, 1.75px stroke) in neutral-subdued. Draw the chevron at
16px with a 0.7-unit stroke on its outline to reach that weight, keeping
its centre, and size the docked widgets header's menu and collapse
icons to match. Colours stay the section's secondary text.
2026-10-04 20:15:21 +11:00
Zakk 2553dea7f7 fix(charts): centre a stacked waffle grid in its card
Below 480px the grid sits above its legend at up to 267px wide and started at the card's inline start, leaving a wide empty strip beside it in a card a little under the breakpoint. It is now centred there; beside the legend it still starts the row.
2026-10-04 19:58:02 +11:00
Zakk c4a5ceaabe feat(ui): draw the Policies kind switch at L like page tabs
The kind filter is the top-level switch of a page without tabs, so it takes Segmented's new size="L" and the New group button on its row takes Button's L. Segmented and the page tabs share one set of L font, inset and corner rules in segmented.css.
2026-10-04 19:57:15 +11:00
Zakk 1245781ec3 feat(ui): draw page tabs as the segmented control at L
Page navigation keeps React Aria's tab and tabpanel roles and is drawn as S2's SegmentedControl at L: 40px, 16px labels, the L inset and 9px corner, in the same filled track with the sliding slider, glass groove and press motion. The track, slider, item and state rules in segmented.css and buttons-menus.css now name both, so tabs and segments share one look; tabs-panels.css only sizes the bar and lets it scroll. In-page segmented controls stay M. Geometry specs expect L tab rows, and page-tabs.spec.ts checks the size, the slider and that switching tabs moves nothing.
2026-10-04 19:57:15 +11:00
Zakk 237151c357 fix(nodes): share the toolbar row with the page's lead line
The source actions sat alone at the right of their own toolbar row, which read as an empty gap between the lead line and the cards. The lead line now starts that row, and on phones takes a row of its own above the actions.
2026-10-04 19:42:31 +11:00
Zakk fe8d4418f1 fix(ui): set apply dialog sections apart with S2 section spacing
The template dialog's summary lines sit in one section, and its group lists and diff are sections 24px apart, through a kit DialogSections. Reused groups run in columns like the groups to create, so a long list no longer fills the dialog in one column.
2026-10-04 19:42:31 +11:00
Zakk 3596e5ad7b fix(ui): space dialog paragraphs with the column gap only
Paragraphs kept the browser's 1em margins inside the dialog's flex column, so each sentence in the routing template dialog sat about 44px from the next instead of the 16px gap.
2026-10-04 19:42:31 +11:00
Zakk dab07dd56c fix(ui): give ProgressCircle a pixel view box
WebKit rejects calc() in the circle's r attribute and logs an error per circle, which the e2e browser-error guard reports. The radius is now a number inside a view box the size of the circle.
2026-10-04 19:31:29 +11:00
Zakk 783a23bed7 feat(ui): add Skeleton for loading placeholders
Overview drew invisible copies of the Kv grid in the feature (BodyWait)
with a spinner over them. The kit now has S2's Skeleton for a card body
of facts: the facts' grid with each label and value as a shimmering
block, then the caption, body line or table height below, so each card
keeps the height it reserved before. A label with a help button takes
the button's height, which makes the traffic counters card exactly as
tall loading as loaded. The shimmer follows S2: a 300% gradient swept
every 2s, still under reduced motion. A visually hidden status names
the wait.

Loading notices turn S2's ProgressCircle (indeterminate, S 16px with a
2px stroke, M 32px with 3px) labelled by their text, instead of the CSS
spinner. The button's pending spinner stays as it is.
2026-10-04 19:31:29 +11:00
Zakk b1451accc5 feat(ui): show real usage as a meter
The Overview memory card and the DNS cache card drew their usage with the
chart Bar, which has no meter semantics. The memory usage is now a
metered Kv fact, as the node cards have: its label over its value like
the facts around it, the S track under the value, the tone thresholds
kept. The DNS cache usage stands above its fact tiles rather than among
Kv facts, so it takes the kit Meter (S2 Meter, size M). Both read their
value text to assistive technology. A zero limit or capacity gets no
meter; the memory facts then keep the current and limit, and the cache
card keeps its entry facts.

Ranking and share bars stay Bar, as charts.
2026-10-04 19:31:29 +11:00
Zakk 5d2f02c569 feat(widgets): offer memory as a value tile like the traffic cards
Memory's sparkline form on the dashboard is now a value tile like
download and upload: resident memory as its value, linked to the
overview, its sparkline under the same height steps, the same widths
from a fifth of a row to full, and on wide cards the same peak and
average lines. The area chart stays the default card on Activity; the
gallery offers the tile at its quarter-width preset.
2026-10-04 19:20:38 +11:00
Zakk 326cca0197 feat(widgets): give Auto-sized wide charts their statistics column
The default traffic card spans two thirds of its row from 1024px but has
Auto width, so both renderers and the stylesheet, which only looked at a
chosen width, never gave it the peak and average column. Packing now
marks a cell data-wide when its measured box is over seven twelfths of
the row from tablet width, a WideCell context passes the mark to the
card, and the renderer gates and dashboard.css treat that mark like a
chosen two thirds or full width. Saved Auto layouts follow it too.

The statistics are now one compact line each, label at the start and
value at the end, and the column is as wide as its lines need, so four
figures stay within a short chart's height instead of stacking into a
column taller than the chart. Key-value metric cards that wide list the
same figures beside their readings.

The memory widget's readings change with it: the panel's medium size
keeps to resident memory and the cgroup's use against its limit and
charts from large, chart forms keep the limit as text, a zero or absent
limit draws no meter and reads as not reported, and a null limit the
backend lists reads as no limit, as on the overview.
2026-10-04 19:20:38 +11:00
Zakk 08a2ebf3c7 feat(i18n): let the time follow a 24-hour, 12-hour or regional clock
Times were fixed to a 24-hour clock in every language and date order.

A Time format setting beside the date format picks the clock. 24-hour stays
the default; 12-hour writes the interface language's own day-period words;
Automatic takes the hour cycle Intl reports for the browser's first language
tag, falling back to the interface locale. The clock composes with every date
order, and Year-Month-Day writes its day period in the interface language.

format.ts resolves the clock in one place for localTime, localMinute,
localTimeFormat and the new localClockFormat, which the chart axes and the log
heatmap now use in place of their own h23 formatters. The choice is stored in
doona-time-format and shows up in the search dialog.

A 12-hour time is longer, so a source card's expiry takes the width it needs
(a row of its own when wider than half the card), the log and event time
columns are wider, and the heatmap axis hides its middle mark where a longer
time would leave less than 16px between marks.
2026-10-04 18:48:09 +11:00
Zakk b340e6ab09 fix(e2e): wait for the state three flaky tests depend on
Node group submenu keyboard test: the existing groups and New group... come
from two separate completeness checks (useNodesPage and useMainSourceEdit),
so End could run before New group... was in the submenu. The test now waits
for the item before pressing End.

Subscription options test: the test left the page right after the toast and
read only the lines CodeMirror had rendered, with the default timeout, while
the editor is a lazy chunk. It now waits for the dialog to close and the
editor to mount, then reads the whole document with a longer timeout.

Segmented focus test (WebKit): focus returned to the picker but not back to the
radio. On expanding, the track was still hidden in WebKit's last computed
style, which refuses focus() to an element it takes for hidden, while Chromium
updates style first. Segmented now reads the track's computed style before it
moves focus back.
2026-10-04 18:23:01 +11:00
Zakk f59db7a9d4 fix(theme): write notice fills in white in light themes 2026-10-04 18:08:11 +11:00
Zakk 60d1bdca9c feat(i18n): let the date format follow the browser region or a chosen order
Dates followed the interface language's fixed Intl locale, so an English
interface wrote month/day/year even for a reader in Australia.

A Date format setting next to the language picks the order. Automatic, the
default, formats with the browser's first language tag; Day/Month/Year
and Month/Day/Year stand for en-AU and en-US, so Intl keeps the separators and
the date-time glue; Year-Month-Day is built from formatToParts, because no
locale is guaranteed to write ISO order. Every order keeps the 24-hour clock,
the Gregorian calendar and Latin digits.

format.ts resolves the order in one place for localTime, localMinute,
localTimeFormat and the new localMonthDayFormat, which the day-scale chart
axis now uses; call sites are unchanged. The choice is stored in
doona-date-format and shows up in the search dialog.
2026-10-04 18:07:00 +11:00
Zakk 871abe6e37 feat(nodes): show node sources as cards with a quota meter
The source table could not hold a usage meter without breaking its row
rhythm. Sources now render as an S2 CardView (size M, regular density):
each card lists the source's facts in two columns and its usage as a
full-width fact, with a meter track under the value when the source has
an allowance. Selection and arrow keys pick the source whose nodes are
listed below.

Date-times across the app use a 24-hour clock.
2026-10-04 17:47:24 +11:00
Zakk cdd9263607 chore(comments): drop comments that restate code or narrate history
Remove comments that repeat the adjacent code, tell branch or lab history, or duplicate another comment, and fix a few that no longer match the code.
2026-10-04 15:55:44 +11:00
Zakk 3e2edc9219 feat(widgets): show subscription quota and the memory limit
providerRowView gains the share of a provider's traffic allowance used,
absent when the allowance is null or zero. Source health draws it as a
meter under each source, and a new Subscription quota widget, sharing
the same row view, lists the subscriptions with their meter, or their
usage without an allowance, and their expiry. The widget is offered in
both galleries, with the panel's key-value form, and is not in the
default layouts.

The memory widget's key-value form meters cgroup usage against
cgroup.limit_bytes when a limit is set, and every form past the
narrowest shows a badge with the OOM kill count when it is above zero.
2026-10-04 15:38:55 +11:00
Zakk b28c460fd2 feat(ui): add a meter
The kit had no meter: Bar ranks rows and hides its track from assistive
technology. Meter follows S2's Meter at size M on react-aria's Meter: a
label and value above a 6px track, read as the value text, its fill in
the accent, notice or negative colour by tone.
2026-10-04 15:38:55 +11:00
Zakk 1d0f8124c1 chore(css): read existing tokens and drop overridden declarations 2026-10-04 15:30:42 +11:00
Zakk 6e3e6a69b9 feat(widgets): move the rates split into the widget's own settings
The choice between one chart and two for download and upload belonged to
the speed widget alone but sat in the panel's menu as a panel-wide flag.
It is now a field on each speed widget, set by a switch in its inspector
on the panel and the dashboard, so two speed widgets can differ. A panel
saved with the former flag reads it as split on each of its speed
widgets and drops it from the panel layout, without a version bump; the
dashboard's speed cards, which followed the same flag, are migrated once
from it.
2026-10-04 15:28:02 +11:00
Zakk 3d9445b35a feat(widgets): add outbound errors, node availability and DNS latency
Three widgets join the gallery of the dashboard and the panel, not the
default layout. Outbound failures ranks the outbounds whose failure
counter is above zero since counter_since, in their usage colours, and
says when none failed. Node availability counts each node once by its
preferred health: available of all, then unavailable and unmeasured
with a status light. DNS latency gives the median and p95 of lookups
that reached an upstream, a swarm of them, and one strip per upstream
when tall or large; under five such lookups it shows the count alone.

Each offers only the sizes it fills: no small outbound failures, no
large node availability, and no upstream strips in the key-value form.
A dot chart without rows takes the chart heights. The gallery falls
back to samples when live data has no failure or too few lookups, and
the demo now counts failures on two outbounds. Hidden-dot counts in a
swarm closer than a label's width share one label instead of
overprinting.
2026-10-04 15:27:06 +11:00
Zakk 6ec538e706 feat(activity): explain that kernel-forwarded direct traffic is not counted
With an eBPF datapath the kernel forwards some direct connections on its own,
and a backend that observes traffic only in userspace leaves their bytes out of
the rates, the traffic history and the connection figures. When the runtime
reports traffic.observed_by userspace on an eBPF datapath, the Activity traffic
chart and the Connections traffic view now carry a help popover beside their
titles that says so. Mixed or eBPF observation shows no hint. The demo runtime
reports userspace observation, as honk does.
2026-10-04 15:08:33 +11:00
Zakk 9b7b4aee3d fix(widgets): hold a chart's height until samples arrive
A sparkline with fewer than two samples draws its baseline in the box it keeps, so a CPU or latency tile reads as a chart and keeps its height until the line arrives.

The speed legend reserves each rate's widest text, 888 MB/s, in tabular figures. In a 296px panel it no longer moves between one line and two as live rates change, which made the panel jump between 56 and 88px.
2026-10-04 15:05:26 +11:00
Zakk 9d79d19104 feat(dashboard): give wide charts a statistics column
From two thirds of a row, once chosen widths apply, the history, memory and speed charts and the five value tiles keep about two thirds of the card for the chart and list each series' peak and average beside it, level with the chart's top, from the samples the chart already draws.
2026-10-04 15:05:26 +11:00