Commit Graph
39 Commits
Author SHA1 Message Date
Zakk 3fe800ee8d perf(shell): mount the widget panel once the backend accepts the tab
The sidebar's widget panel shows backend data, and its code shares the activity chunk. The frame painted while the first capabilities read is in flight mounted it for a moment, so from 1024 px a hosted sign-in page downloaded that chunk. The panel now mounts once capabilities load, the signal that starts the page warm-up; the backend indicator is unchanged. The hosted chunks test now runs at 1280 as well as 390.
2026-10-04 04:54:47 +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 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 17b7a0f424 fix(widgets): stop offering a large size for key-value metric widgets 2026-10-04 03:21:50 +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 9d19172032 fix(widgets): let the floating panel resize down to 200px 2026-10-04 01:42:13 +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 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 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 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 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 95ec40c1c0 feat(widgets): mark collapsed header rates with up and down arrows 2026-10-03 18:02:13 +10:00
Zakk 343a81a7ed fix(widgets): editor width grip, upload above download, gallery add row
The dashboard engine restyled the shared .rp-dashboard-tools class into
the page's tool chip, so the widget editor's row handles took the chip's
pill border and shadow across the borders between rows. The chip now
applies to dashboard cells only and editor rows keep their caption
handles.

The preview's width edge draws a grip at all times. A docked panel's
editor gets the edge too: the preview opens at the sidebar's width and
the edge sets the width the panel floats at, which the preview then
shows; Save keeps it and Cancel drops it.

A collapsed panel lists the upload rate above the download rate.

A gallery item's Add button and placed count sit on its bottom edge, so
the items of a row line their buttons up.
2026-10-03 17:43:50 +10:00
Zakk f9d765b170 feat(dashboard): size cards by width and height presets with edge resizing
Cards take a width of Auto, 1/4, 1/3, 1/2, 2/3 or full width, one width in every section through a sixty-track fraction grid that a section uses once it holds a chosen width; all-Auto sections keep their profile grids, so the default layout is unchanged. Height sets a chart's step, value tile sparklines included, or a list's row count, in both renderers; layouts move to version 3 and keep earlier list limits. Edge handles, short pills distinct from the move handle, resize by pointer, touch and arrow keys, mirrored in right-to-left, and edit mode marks each row's free space as a drop target. Edit mode shows every card's own content and controls; its tools are a chip on the card's top edge that covers none of them. A card's height is its own: packing equalises a card only with cards of its height step overlapping its span, so resizing one card leaves its row as it was and the cards that follow fill the space beside it. Value tiles of one height in a row share one layout, and a short tile keeps its value and sparkline on one line.
2026-10-03 16:16:39 +10:00
Zakk 27d4e9bcf9 fix(widgets): rates in the collapsed header, preview width edge, even insets
A collapsed panel, docked or floating, shows the live download and
upload rates with their chart colours and direction icons in place of
its title.

The editor opens with nothing selected. The preview's inline end edge
sets the floating panel's width within its limits, by pointer or arrow
keys; Save keeps it and Cancel discards it. A docked panel previews at
the sidebar's width.

The floating panel's list runs into its bottom inset, so the last row
ends one inset from the border, as the header starts from the top.
2026-10-03 15:35:51 +10:00
Zakk 06c7370a86 fix(widgets): preview the panel at its real width and align the docked panel 2026-10-03 15:35:51 +10:00
Zakk 3fa2798688 fix(ui): size page toolbar controls through the component library 2026-10-03 14:52:42 +10:00
Zakk 87e7921536 feat(search): find settings fields, features and exact rows
Search builds entries from the registries the pages already render:
Settings controls (settingsFields, marked with data-setting), runtime
fields (runtimeFieldLabels), the engine's global settings, configuration
sections, and SearchTarget lists beside each feature's nav. Labels match
in every loaded language, plus a few aliases kept beside their entries.
Results open a page, tab or dialog and never run an action.

A Settings field result focuses that control; node results use the exact
nodeHref link; DNS rule results carry list and rule id, and the DNS lists
select, reveal and briefly mark the row with the landing highlight the
policy cards use. Matches rank exact, prefix, then substring.
2026-10-03 13:58:27 +10:00
Zakk f907d9b371 refactor(mock): move the mock backend out of src 2026-10-03 04:16:32 +10:00
Zakk cb0de4a4b9 fix(widgets): give standalone global outbound controls their apply action 2026-10-03 04:10:20 +10:00
Zakk b154419a74 refactor(store): move ring history from the api layer to the store 2026-10-03 02:34:51 +10:00
Zakk 93b51c7867 perf(build): load page-only code with its page 2026-10-03 01:44:57 +10:00
Zakk 9a76ffe732 refactor(widgets): split floating widget contents by family 2026-10-03 01:35:55 +10:00
Zakk c779b112fa fix(ui): collapse the panel on navigation, label picker options and refresh grid marks 2026-10-03 00:17:25 +10:00
Zakk 60aea85a06 fix(features): add geodata reset and drop stray reads and tree nodes
The Geodata card resets every override with geodata: null after a confirmation and reports an unreadable group list with Retry. The connection outbounds widget reads outbound traffic only where the backend offers it. The routing tree drops a hidden nested group's node that no shown outbound reaches.
2026-10-02 23:36:47 +10:00
Zakk 2dc4b7e3bd fix(drafts): settle drafts before backend changes and after saves
Switching profile or signing out asks the shell to discard other forms' drafts before the stored backend or token changes, and does nothing when declined. A configuration write settles only after the configuration is read back, so the editors drop their draft onto the new revision. The widget editor counts a reset that moves the panel as a change.
2026-10-02 23:36:47 +10:00
Zakk 46c677bf54 feat(widgets): hide the floating panel at a screen edge 2026-10-02 23:25:14 +10:00
Zakk 5e33dd1713 refactor(features): share the instance cap, health status and refusal reader 2026-10-02 22:18:16 +10:00
Zakk bbe1c1c15e refactor(i18n): reuse the unit and node latency keys 2026-10-02 22:18:16 +10:00
Zakk 692f43e1e0 refactor(nodes): share the latency row and summary with the widget 2026-10-02 22:10:55 +10:00
Zakk 29a0f45dde refactor(activity): share the outbound colour rule with the widgets 2026-10-02 22:10:55 +10:00
Zakk 0523195a8f fix(notices): report unknown operation outcomes neutrally
Held-rule failures keep the notice kind, so both apply entries toast
an unknown outcome as neutral. Group actions and the geodata update
go through the shared failure notice. The policy card and the
dashboard group widget share one member-selection handler.
2026-10-02 18:13:22 +10:00
Zakk 7610f64558 perf(charts): memoise chart geometry and pause preview ring subscriptions 2026-10-02 18:06:03 +10:00
Zakk 2725f76a50 test(widgets): cover the dashboard, editor and panel
Unit tests cover layout parsing and migration, size presets, packing,
instance limits, shared mode drafts and previews that never save. The
dashboard spec checks the default layout against main's geometry, drags in
four directions, reorders by keyboard, resizes one card without moving the
others, and checks level columns and edit-mode boxes in Chromium, Firefox
and WebKit. The panel spec covers keyboard resizing, collapse and pinning.
2026-10-02 16:11:18 +10:00
Zakk 2cd941d455 feat(widgets): configurable activity dashboard and floating panel
Activity becomes a dashboard of ordered sections whose default layout
reproduces main's Activity page card for card. Each card keeps a preset
size that changes only its own span, and sections pack like masonry: a
tall card sits beside a stack of shorter ones and every column ends level
with its neighbour, in the live page and the editor alike. Extension cards
add node latency (drawn with the Latency tab's dumbbell), source health,
connections by outbound and network, DNS answers and policy group nodes,
each up to three instances with its own display.

Edit mode renders the same cells in a sortable grid with drag, keyboard
and touch reordering, move-only drops, a gap-line drop indicator, a size
and display inspector, a widget gallery with equal preview frames, reset
to the default and a confirmation before discarding a changed draft. The
canvas reads cached data without live subscriptions, and a runtime error
shows above the cards when the status card is removed.

The floating widget panel sits at the bottom inline-end corner, resizes by
pointer or keyboard within stored limits, collapses to its header with the
current rates, and can be pinned so it stays open across pages. The panel
and the editor load on demand to keep the startup shell small.
2026-10-02 16:11:18 +10:00