Commit Graph
1153 Commits
Author SHA1 Message Date
Zakk 573ef3dfa2 fix(api): retry empty reads once and name the request in errors
A JSON GET that comes back as an empty 2xx body, or gets no response at
all, is sent once more after 300 ms. A second failure is reported with
attempts: 2. Timeouts, caller aborts, error statuses, POSTs and the SSE
streams are not retried, and GETs never enter the refusal loop.

API errors now record the method, the path and query, and the
Content-Type, Content-Length, Transfer-Encoding, Content-Encoding and
Server response headers. The copied diagnostics add an attempts line and
a headers line to each entry.
2026-10-04 04:29:05 +11:00
Zakk 8da44b0de4 fix(policies): keep a group editor open when its group is removed
The edit dialog's draft lived in the group's card, which the runtime list
poll unmounted as soon as the group was removed or renamed elsewhere, so
the open dialog and its unsaved edits vanished without a word.

The page now keeps the card whose editor is open after the list drops
its group. The editor shows a notice that the group was removed and the
changes were not saved, and Apply stays disabled with that reason. The
fields keep the edits, so they can still be copied, and closing the
dialog lets the card go. A group back under the same id is listed again
and the editor returns to normal.

InlineAlert gains S2's notice tone for the warning.
2026-10-04 04:02:48 +11:00
Zakk 50a4532e24 fix(widgets): keep narrow donut legends on one line and the panel's small size usable
- Donut legends below 380px keep the name, value and share on one line; only
  the panel's small size, half a row wide, still puts the value under the name.
- The small notices widget takes the whole panel row.
- The small node latency dots widget shows the ranked list; at the panel's
  width the name column takes what the value leaves beside a 64px track.
- Area charts without a time window drop middle time labels that come within
  8px of a neighbour, keeping the last label and the first when it fits.
2026-10-04 03:54:03 +11:00
Zakk 27771c3b3d fix(styles): end the 600px rules below the phone breakpoint
Two rules (the tree hint, and the phone padding and wrapping for the
main area, fields, buttons and badges) used max-width: 600px, so at
exactly 600px they applied together with the min-width: 600px layout.
They now end at 599.98px like every other phone rule. Only a 600px
wide viewport changes.
2026-10-04 03:45:32 +11:00
Zakk 1726be71f6 refactor(styles): name the breakpoints in one list
The stylesheets wrote the phone bound three ways and components
repeated their own media queries. Breakpoints now live in one list in
ui/hooks.ts; stylesheets write (min-width: N) or (max-width: N-0.02),
and components take their queries from the same module. A unit test
holds every media query in src to the list. Values are unchanged at
every whole-pixel width.
2026-10-04 03:45:32 +11:00
Zakk 0d71be3571 fix(ui): place selection markers from layout offsets
useSlider measured the selected item with getBoundingClientRect. Since the
press feedback became a transform that eases back after release, the box it
read moved for a few frames, so the ResizeObserver pass found a new position
and set the marker still. The segmented and tab markers jumped instead of
sliding. Offsets ignore transforms, so both passes agree.
2026-10-04 03:36:54 +11:00
Zakk 17b7a0f424 fix(widgets): stop offering a large size for key-value metric widgets 2026-10-04 03:21:50 +11:00
Zakk 00a7dd11b2 test(mobile): wait for the policy list before scrolling the landscape page 2026-10-04 03:12:29 +11:00
Zakk aa2f4a99ce refactor(widgets): give the sortable base and grip one home
The base rules SortableCanvas shares between the dashboard and the
widget editor (body wrapper, tools, drag cursor) move from dashboard.css
to sortable.css; each host keeps its placement under its own selector.
The resize pill drawn twice becomes one .rp-grip, and the wide-to-large
cell size is mapped once in WidgetGrid. No visual change.
2026-10-04 03:03:37 +11:00
Zakk 1ee204f037 perf(sw): reuse hashed assets the page already loaded on install
Only index.html, which keeps its name across builds, is precached with cache: 'reload'. Files under assets/ are named after their content hash, so the copy already in the HTTP cache is the same file; the install now reuses it instead of downloading it again.
2026-10-04 01:54:31 +10:00
Zakk 06317d3569 fix(widgets): give the floating panel a light glass material 2026-10-04 01:42:13 +10:00
Zakk 9d19172032 fix(widgets): let the floating panel resize down to 200px 2026-10-04 01:42:13 +10:00
Zakk 5bdcc4e431 refactor(styles): move design tokens to foundations and split segmented
The :root tokens, their direction, pointer, phone and dark overrides move from
motion.css to the top of foundations.css, and the Segmented control rules move
to segmented.css, imported right after motion.css. Rules move verbatim; the
control size test follows the rules to their new file.
2026-10-04 01:33:16 +10:00
Zakk 59300139e9 perf(geo): match region aliases in one pass
regionOf ran 267 Unicode regexes per node name, and compiling and
warming them cost 358-372 ms of self time when Activity first loaded
at 4x CPU. Two combined alternations (case-insensitive aliases and the
capital-only ISO codes) now find the same alias: alternatives are
sorted longest first, then by priority, so the leftmost match is the
alias the old loop chose. Activity startup drops to 11-25 ms in geo.ts.

The cache now holds two pages of names (MAX_PAGE) instead of 2048.
The unit tests keep the old matcher as a reference and compare both
on every alias, its case forms, every ordered pair, and the fixtures.
2026-10-04 01:06:56 +10:00
Zakk a1dc30cc36 chore(size): budget the download paths instead of the total
check:size now gates what users download: the sign-in and Activity startup paths, their CSS, each locale and font stylesheet, each page beyond the Activity startup, the config editor and the mock. The total is printed but no longer gates.
2026-10-04 00:57:55 +10:00
Zakk a850915424 test(e2e): serve the logs stream in the navigation hover spec
The spec visits Logs on its way to Events. Under load the page mounted long enough to request its stream, which the mock backend does not serve, and the run failed with an unexpected request. The spec now serves the stream as the logs spec does.
2026-10-04 00:48:57 +10:00
Zakk 27e9d9e714 perf(logs): render streamed table rows once per update
Each published batch re-rendered the table around the body: the Table element
was rebuilt with the new rows, so React Aria rendered every visible row with the
old collection and again with the new one. The table element is now memoised and
the body reads its rows from context, so a batch re-renders only the collection
and the visible rows once. The non-tree groups list kept returning a new empty
array, which defeated the memo; it is now one constant.

The flow placement read layout after writing custom properties on the grid on
every scroll event, forcing a style and layout pass of every row. It now reads
before writing, writes only changed values and runs scroll and resize placement
once per frame.

A table-flow spec counts the components that render mounted rows and holds a
batch to one render per row.
2026-10-04 00:48:57 +10:00
Zakk 584b026c9c fix(activity): fold repeated notices and drop stream lifecycle
The notices card folds identical notices (same level, kind and text) into
one row wherever they fall in the feed, at the position of the latest one,
and its badge counts distinct notices. A stream-wide flow gap opens at its
reason instead of repeating the reason label after the kind. Stream ready
is lifecycle, so it stays on the Events page only.
2026-10-04 00:39:59 +10:00
Zakk 83e1c8b8f8 refactor(policies): extract the group retry merge into a pure function
The three-way merge in the group dialog's save moves to groupMerge.ts with direct tests; the hook calls it and refuses in the same order as before.
2026-10-04 00:29:15 +10:00
Zakk 7099a5c6ff refactor(styles): import each stylesheet where its rules render
Page header rules move from dashboard.css to page-layout.css, the widget
content rules and the mode switch's fill rule to widget-content.css
(imported by WidgetContent), and the impact list rules from routing.css to
impact.css (imported by RuleTemplates and Dns). Rules move verbatim; a page
opened first no longer depends on the Activity or Flows chunk for them.
2026-10-04 00:20:49 +10:00
Zakk d964cd4883 test(policies): hold the group list while a refused edit is retried 2026-10-04 00:08:40 +10:00
Zakk 43240d6ac4 refactor(nodes): use useDialogSession for dialog requests
useNodesPage counted dialog openings by hand; it now uses the hook the config and policies dialogs share.
2026-10-03 23:30:32 +10:00
Zakk b9da2eb6de test(nodes): cover late dialog results in useNodesPage
A request that settles after its dialog was closed or reopened neither closes the new dialog nor reports into it.
2026-10-03 23:30:32 +10:00
Zakk f65a40bf69 docs(screenshots): capture the beta.13 dashboard, widget and config views 2026-10-03 23:21:33 +10:00
Zakk 3d6df0c65b refactor(widgets): move WidgetCard out of the Activity page entry
The panel editor's ModuleControls imported WidgetCard from Dashboard.tsx,
the Activity page entry, which tied the editor to the page module and
closed a dynamic import cycle. WidgetCard now lives unchanged in its own
module that both import, and a lint zone keeps the shell from importing
Dashboard.tsx; registry.ts stays its only loader.
2026-10-03 23:12:35 +10:00
Zakk 6fb8c72f56 refactor(features): move feature-only modules to their features
The group dialog modules are used only by policies, the subscription
fields only by nodes, and NodeGrid only by the policies Nodes view, so
they move next to their one consumer. Imports, the i18n literal list
and the single-consumer collection lint exemption follow the paths;
nothing else changes.
2026-10-03 23:04:06 +10:00
Zakk 951cdb21cd refactor(api): share Retry-After parsing and the snapshot refusal check
parseRetryAfter replaces the two header readers, and isSnapshotRefusal
the three inline 503 snapshot_unavailable tests. Each caller keeps its
default and condition.
2026-10-03 22:55:39 +10:00
Zakk 09a3ea3e46 feat(changelog): collect per-pr release fragments
Keep pull requests out of the shared Unreleased section. Resolve PR numbers from fragment-adding commits, collect release notes with comparison links, and require fragments in the existing CI lane.
2026-10-03 22:47:03 +10:00
Zakk d3adb108a0 fix(widgets): scroll the editor's preview on its own 2026-10-03 22:37:31 +10:00
Zakk c2e209e0f9 chore(release): fill 0.1.0-beta.13 checksums 2026-10-03 22:25:09 +10:00
Zakk fd69666655 ci(release): reuse main's check instead of a serial e2e run (#395)
The v0.1.0-beta.13 release spent over 31 minutes in one serial
`playwright test` run (Chromium, subpath, WebKit and WebKit PWA). main's
Check already runs exactly those projects in 9 shards on the commit a
release tag points at, so the release repeated it.

A new `verified` job requires Check (push event) to have concluded
success for the tagged commit, waiting for it if it is still running and
failing otherwise. `build` needs it and drops the e2e install and test
steps; pnpm check, build, check:size, packaging, the honk bundle and the
release job are unchanged. Expected release time: about 3 to 4 minutes
once Check is green.

Net: +23/−4. Checks: actionlint.
v0.1.0-beta.13
2026-10-03 22:00:44 +10:00
Zakk 1a99aeb23a chore(release): prepare 0.1.0-beta.13 2026-10-03 21:14:26 +10:00
Zakk 9e041a9ca3 fix(widgets): lay out the panel's mode Apply by its width on every host
In the floating panel Apply sat beside the outbound mode choice or
wrapped at its own width. The docked panel's rule now applies to every
panel host and depends only on width: while the choice and Apply fit on
one line, Apply keeps its width beside the choice, which fills the rest;
otherwise the choice fills the widget and Apply takes the full-width row
below. The Activity page's mode card is unchanged.
2026-10-03 21:05:10 +10:00
Zakk fba294798d feat(widgets): hide panel widget titles by default
Widget titles in the floating, docked and phone panel are hidden by
default; Show widget titles in the panel menu brings them back. A hidden
title still names its widget's section for assistive technology. The
editor's preview keeps the titles, which name its rows and leave their
tools a line. Dashboard cards are unchanged.
2026-10-03 21:05:10 +10:00
Zakk 130db93aff feat(widgets): drop the divider from the default panel
The default panel holds the rates, memory and outbound mode widgets. Stored layouts keep their items, a divider included.
2026-10-03 21:05:10 +10:00
Zakk 42afd7706b feat(widgets): draw upload and download in one rates chart
The rates widget's sparkline form stacked one sparkline per direction,
which with the panel's other default widgets overflowed its default
height. It now draws both in one plot on a shared scale with the Traffic
chart's component, without axis labels, at the height of one sparkline.
Combine upload and download charts in the panel menu, on by default,
restores the two sparklines.

The demo's upload rate swells on its own period and phase, so its curve
no longer copies download's.
2026-10-03 21:05:10 +10:00
Zakk a573d62923 fix(widgets): start the floating panel pinned and open
The floating widget panel collapsed whenever the page changed unless the
reader pinned it. It now starts pinned, floating and open. The stored
layout moves to version 4; a layout from an earlier version reads as
pinned, since its unpinned state was the old default and cannot be told
apart from a choice. An unpin after that is kept.
2026-10-03 21:05:10 +10:00
Zakk 96e8316553 fix(store): keep a repeated feed record where it stands 2026-10-03 20:36:18 +10:00
Zakk 272dde7bc8 fix(ui): set L control text to the body size 2026-10-03 19:42:58 +10:00
Zakk 0b0159390b feat(dashboard): give a row of control cards its lines before its shares
Auto cards in a dashboard row took fixed footprints (quick's 3:2:2), so
the outbound mode card had room to spare while global outbound and
status were too narrow for one line, and the whole row stacked.

packSection now gives a full row of Auto one-line cards (control cards)
spans of the fraction grid: each card first gets the width of its title
and controls on one line, measured with the line at its content width,
then the rest of the row is shared by the footprint widths. A row whose
lines do not all fit keeps its footprints, and the section-wide switch
still stacks every card in it together. Chosen widths, card order and
other rows are unchanged.

fitSpans is unit tested; the dashboard spec checks the Activity first
row is one line at 1440 and 1475 px in zh-TW, in order and with whole
titles, and that at 1280 px all three cards stack together.
2026-10-03 19:42:58 +10:00
Zakk 136d1b55c8 fix(ui): size every segmented control at L
Segmented controls in cards and the widget panel were M (32px) while
the page filters were L (40px), so the chart range, the outbound mode
switch and the ranking switch looked smaller than the Policies filter.
Segmented now always renders L and its items fill the track. A row
that holds one gives its other controls L through the size context:
Apply and the read-only reason beside the mode switch, and the control
cards on Activity (outbound mode, global outbound, status) through a
new Card size prop. In the widget panel a control too wide for the
widget collapses into its picker instead of overflowing.

controlSize.test.ts asserts Segmented is L only, and the new
segmented-size spec checks every segmented control and its row on
every route, the floating, docked and phone widget panel, and
dashboard editing at 1280 and 390.
2026-10-03 19:42:58 +10:00
Zakk 3b4bba24d2 fix(release): fetch honk from the pinned tag's release 2026-10-03 19:34:17 +10:00
Zakk f895d23c4f chore: remove dead code found in the tree audit
- drop memberCountText and the group.groupCount and group.mixedCount strings
- drop the unused RecorderMode alias
- inline PolicyPicker into GroupDialog and useModules into Modules
- merge the identical Beeswarm text rules and the .rp-g21/.rp-g3 base grid
- share the server close helper between the conformance and fetch-honk tests
- drop useNodeGrid.disabledKeys and the unused GroupDialog id prop
2026-10-03 19:19:52 +10:00
Zakk 1f6b6cc566 fix(shell): pin the top bar and side nav to the viewport
Both were sticky in the document scroller. Chromium offsets a sticky box
by the scroll position, and when that position falls between device
pixels (125% or 150% scaling) the box lands on a fractional pixel: text
stays snapped, but the SVG icons, the current-page bar and the chevrons
step one device pixel up and down as the page scrolls. Layout boxes stay
exact, so only the pixels show it. At 1956x1021 and 125%, the sidebar
area differed from rest in up to 5370 pixels at scroll offsets 101, 102
and 103; Firefox showed none.

At 1024px and wider the bar and the sidebar are now fixed to the
viewport, the shell's first row keeps the bar's height and the main
column is placed in the second row. Element boxes are unchanged at
1024, 1440, 1956 and 2400px, left to right and right to left, plain and
glass, with and without widgets. Phones keep the sticky bar.
2026-10-03 19:00:55 +10:00
Zakk 2f634f39b3 fix(activity): link the status summary and keep control titles whole
When features are off, the status card's summary is its only link to
System status; otherwise the link reads View details.

The control row probe hid Apply, so Global outbound measured as fitting
and its title was cut to an ellipsis. The probe now measures Apply, and a
title ellipsised on the inline line stacks the row.

The Global outbound picker's label is as wide as its widest outbound, so
a draft or an applied choice never changes whether the row is inline or
stacked.
2026-10-03 18:52:28 +10:00
Zakk 36b5687c59 fix(packaging): rename the deb to doona-web
Debian and Ubuntu ship an unrelated doona 1.0, a network fuzzer that
owns /usr/share/doona and /usr/share/doc/doona. Its version sorts above
our 0.1.0~beta.N, so apt upgrade replaced our deb with it and deleted
the web files.

The deb is now doona-web with doona-web-fonts, installed under
/usr/share/doona-web and /usr/share/doc/doona-web, so it can sit beside
the fuzzer. Both replace, break and conflict with doona and doona-fonts
below 1.0, which clears the old 0.1 packages and never matches the
fuzzer. One nfpm config per package still builds every format: the
release workflow sets PACKAGE_SUFFIX=-web for the deb, and the deb's
contents come from a packager override. rpm, ipk, Arch and the release
archives keep the name doona and their paths.
2026-10-03 18:44:00 +10:00
Zakk e6f294c87e fix(config): restore the diagnostics level filter 2026-10-03 18:35:43 +10:00
Zakk 01434fe27e fix(rules): show the config file link on every rule row with a source line 2026-10-03 18:35:43 +10:00
Zakk 3382b51a5f fix(login): take the token on the sign-in page again 2026-10-03 18:35:43 +10:00
Zakk b1cacc7a3b fix(activity): keep latency history in the ring store and draw it sooner
The latency card's history moves from a module map into the persisted
ring store, keyed by group and node with the CPU ring's retention, so a
return visit or the dashboard editor shows the line at once. A card that
opens with fewer than two readings brings one node list read forward an
event gap after its first; steady polling is unchanged. The mock repeats
its first stream's opening ready a second later, so a first demo visit
draws CPU and latency within two seconds.
2026-10-03 18:17:29 +10:00