Commit Graph
635 Commits
Author SHA1 Message Date
Zakk 607c604f91 fix(i18n): use the config page's own word for the config version 2026-09-29 20:38:44 +10:00
Zakk 7ad40ee34d fix(i18n): word the stale revision error without naming a revision 2026-09-29 20:38:44 +10:00
Zakk 51d22257f0 fix(i18n): label config revision as config version and generation as a technical field 2026-09-29 20:38:44 +10:00
Zakk 9e27705f5b fix(ui): reload for a stale chunk only from a load boundary
The vite:preloadError listener reloaded the page for every failed dynamic
import, including the language catalogue and the search dialog, which handle
their own failure: a language that did not load reloaded the page instead of
keeping the current one and saying so. LoadBoundary already reloads for a
chunk it catches, so the listener goes.
2026-09-29 20:25:00 +10:00
Zakk 292c9cef94 test(e2e): cover the reload after a stale lazy chunk 2026-09-29 20:25:00 +10:00
Zakk c66fe1c5ae fix(shell): reload once when a lazy chunk is gone after an update 2026-09-29 20:25:00 +10:00
Zakk 8a2a2e58a8 test(e2e): count the reload row in the narrow overflow menu 2026-09-29 20:17:32 +10:00
Zakk 810b80a0ab fix(i18n): call backend and config edits not applied rather than unsaved 2026-09-29 20:17:32 +10:00
Zakk ab8f776a5c test(e2e): follow the reworded apply help text 2026-09-29 20:17:32 +10:00
Zakk d39237054e test(e2e): cover the split apply and reload commands
Migrate specs to the Apply labels, confirm and cancel the reload, check that a reload keeps held rules held, and find reload in the phone overflow menu.
2026-09-29 20:17:32 +10:00
Zakk 3f7c555225 feat(shell): split the top bar into apply and reload
Apply (N) shows only while rules are held and only writes them. Reload honk is its own button, asks for confirmation and leaves held rules held. Below 1024px reload moves into the overflow menu so the bar still fits a phone.
2026-09-29 20:17:32 +10:00
Zakk f37ee59dcf fix(i18n): use apply for every action that writes the configuration
Buttons, help and notes that write the configuration and reload now say Apply (套用, 应用) instead of Save or Apply and reload. Save stays for doona-local settings only, and Hold keeps its wording.
2026-09-29 20:17:32 +10:00
Zakk fe54cf4e17 feat(connections): open the traffic tab first again
Traffic gives the overview before the list, so it is again the first tab and the default for a bare #/connections. This reverts fb48fb66; tab=list and tab=traffic links keep working.
2026-09-29 20:17:26 +10:00
Zakk bba6e8704e test(e2e): pick the latency tile by its node menu now that the CPU tile links too 2026-09-29 19:55:43 +10:00
Zakk b7aa540836 feat(activity): open the overview from the CPU value 2026-09-29 19:31:37 +10:00
Zakk b03b6280a6 fix(activity): give the CPU card a processor icon 2026-09-29 19:31:37 +10:00
Zakk 96e61819de feat(activity): show CPU usage in place of the memory stat card 2026-09-29 19:31:37 +10:00
Zakk 894c312aa2 feat(activity): open the connections traffic from the rate tiles 2026-09-29 19:31:28 +10:00
Zakk eba80c7c47 fix(ui): show the latency light only for a node that is not healthy 2026-09-29 19:31:23 +10:00
Zakk 9f340f9d8d fix(ui): drop the no-changes line beside a disabled Apply or Save 2026-09-29 19:31:23 +10:00
Zakk 9ced04e280 fix(ui): make a tile with a linked value a linked card 2026-09-29 19:31:16 +10:00
Zakk a427718b5a test(ui): cover in-effect rule toasts and new subscription selection
Unit test for the rule toast text and detail; nodes e2e for a new subscription selected after a successful, failed or unsupported refresh; e2e that matched the old reloading text now match the new wording.
2026-09-29 19:31:06 +10:00
Zakk e6f8cae679 fix(nodes): select a new subscription as soon as it is created
The new row is selected before its first refresh, so a failed or unsupported refresh still leaves it selected. A row or page chosen meanwhile is kept.
2026-09-29 19:31:06 +10:00
Zakk 3d96a7cc08 fix(ui): say rule changes are in effect once the reload settles
The rule toasts fire after the write and its reload have settled, yet said the reload was still running. They now say the change is in effect and add that open connections keep their route until they reconnect.
2026-09-29 19:31:06 +10:00
Zakk e19bf6f43f fix(ui): keep the tab bar as wide as its tabs 2026-09-29 19:31:00 +10:00
Zakk 1a47e2ff8d test(e2e): re-enter a disabled remove button until its tooltip opens
Under a full parallel run the rules table can settle under a pointer that never moved, so the single hover from #184 raised no tooltip about one run in thirty. Leave and re-enter as the other tooltip tests do.
2026-09-29 18:48:25 +10:00
Zakk bc0fe6ac3e test(e2e): expect disabled remove buttons in blocked rule sources
Rules whose line cannot be written now keep a disabled Remove button with the reason instead of hiding it. Assert that no enabled one is left, and click the first enabled one where the write itself must be refused.
2026-09-29 18:48:25 +10:00
Zakk 783c10b755 fix(ui): keep a disabled button's hidden reason inside its scroller
The visually hidden reason #184 adds to a disabled button is absolutely positioned. With no positioned ancestor it escaped the rules table's scroll container, so a row's disabled Remove button widened the page at phone width. Anchor it to the tip wrapper.
2026-09-29 18:48:25 +10:00
Zakk a30591a64f test(e2e): expect disabled remove buttons where rule edits are blocked 2026-09-29 18:48:25 +10:00
Zakk cf3d25fe35 test(e2e): check the first frame of a table shown again by its tab 2026-09-29 17:52:52 +10:00
Zakk 6332af9893 fix(ui): keep hidden tab panels laid out at their width 2026-09-29 17:52:52 +10:00
Zakk 6dcdc507a3 fix(connections): disable close on kernel-forwarded connections with the reason 2026-09-29 17:51:38 +10:00
Zakk 13361f841b fix(search): state what an empty search looked through 2026-09-29 17:51:38 +10:00
Zakk 876dba0f8d fix(rules): say why an include-file rule cannot be changed here 2026-09-29 17:51:38 +10:00
Zakk 5bcde177cf fix(ui): measure a content size the same way on every read 2026-09-29 17:48:55 +10:00
Zakk cad236305f fix(ui): keep the last size while a panel is hidden 2026-09-29 17:04:33 +10:00
Zakk bd598e0415 fix(dns): size type, elapsed and cache time columns to their values 2026-09-29 16:57:02 +10:00
Zakk 48a18fb522 fix(i18n): say which files lack a group when editing is blocked
The reason under a group card said the group was missing from the fetched group sections. It now says no loaded configuration file defines the group, which is the one case left after groups became editable in the file that declares them.
2026-09-29 10:50:10 +10:00
Zakk 15793fdafd fix(dns): keep Refresh ahead of Export on the resolution log
On a phone only the first toolbar action stays a button, which left
Export visible and put Refresh in the overflow menu. Refresh now comes
first, so it stays in reach and Export moves into the menu.
2026-09-29 10:17:02 +10:00
Zakk 0d2d71843f feat(nodes): search nodes across every source
A node search only looked through the selected source, so a node in
another subscription looked missing. While a search is typed and there
is more than one source, the table lists matches from every source and
adds a Source column naming where each one lives; clearing the search
returns to the selected source.
2026-09-29 10:17:02 +10:00
Zakk 843227d468 fix(shell): add history entries when moving between hubs and pages
The phone's hub bar and page strip replaced the history entry, so Back
skipped every page seen since the app opened. They now push an entry
as the side navigation already does. In-page filters and selections
keep their existing behaviour.
2026-09-29 10:17:02 +10:00
Zakk 071bc03ab8 feat(i18n): rename Arrange and Edit by hand to say what they open
"Arrange" on Policies becomes "Group membership", which is what the tab
edits, and the module card's "Edit by hand" becomes "Open source file",
since it opens the whole file in the Sources tab rather than editing
the section. Hold keeps its name.
2026-09-29 10:17:02 +10:00
Zakk 3721e11801 feat(overview): rename the Overview page to System status
The page shows the service, datapath and backend state, which the old
name did not predict. The route stays #/overview, so links and
bookmarks keep working; the two toasts that point at the page and the
READMEs use the new name.
2026-09-29 10:17:02 +10:00
Zakk fb48fb6641 feat(connections): put the connection list tab before traffic
The list is the task most people open the page for, and the Activity
tile already lands on it. The list is now the first tab and the
default, so a bare #/connections opens it; tab=list and tab=traffic
links keep working, and the traffic tests visit tab=traffic.
2026-09-29 10:17:02 +10:00
Zakk e219fcf150 feat(dns): add rules from the resolution log, query results and cache
The DNS log's toolbar adds a rule for the selected record, and its detail does the same in place of the request-only link to the DNS rules tab. A query result adds a rule for its name, and each A or AAAA answer for its address; the cache adds one for the selected entry by name and type. Each opens the shared dialog on the DNS lists, with Routing beside them. Once a DNS rule is written and reloaded, Query again asks the query tab for the name again; a held rule offers only Review held rules, and a rule written but not activated offers neither.
2026-09-29 08:15:10 +10:00
Zakk 0987cb571e feat(rules): add DNS request and response rules from the quick-add dialog
A DNS origin's seed opens the dialog on a list choice: DNS request, DNS response or Routing. A request rule matches the queried name, exact or with its subdomains, or the client; a response rule matches one answered A or AAAA address, taken from the typed answer records, or the client; either may be narrowed to the record type queried. A request keeps the asis, reject and upstream choices, with the upstream preselected only when exactly one configured upstream has the name or address that answered. A response accepts, rejects, or queries again through a chosen upstream, written as that upstream's name.

A DNS rule goes before the list's written fallback, else at the list's end, in a new block when the list has none. When no writable file has exactly one dns routing section, the dialog says so and opens the configuration in a new tab, so the rule stays in the dialog. The DNS rule lists show their held rules with the same apply and discard as the routing list, and each held section counts what other lists hold, since an apply writes them all. Review held rules opens the tab of the rule's list.
2026-09-29 08:15:10 +10:00
Zakk ab61311916 refactor(rules): let a held rule name its list and place
A held rule now carries its list (routing, DNS request or DNS response) and where it goes: before a listed rule of that list, or, for a DNS list that writes no fallback, at the list's end. An apply resolves each place against the text it just read; a list end must still be in the file the rule was held for, and rules held for a list block the text lacks share one new block. Only routing rules are held so far, so nothing on screen changes.
2026-09-29 08:15:10 +10:00
Zakk e7abd08d1c feat(rules): link trace results to the rules, groups, nodes and names they show
Each evaluated rule the rule list holds opens there. A result card opens
the groups and node of its selected chain in Policies and Nodes, and a
DNS card opens its name in DNS Query and the DNS cache.
2026-09-29 07:53:04 +10:00
Zakk aec2ebae90 feat(rules): prefill the trace from a link and trace a connection
The trace tab reads its target, port, network and source IP from the
address, so a link fills the form in; the person still runs it. The
connection detail opens it for the shown connection.
2026-09-29 07:53:04 +10:00
Zakk 0cf09d0582 test(e2e): ignore the ResizeObserver loop notice
WebKit on CI reports a deferred ResizeObserver notification as a page error
now and then (arrange.spec.ts phone hint, run 36480717090). The notice means
the remaining notifications arrive a frame later; nothing is dropped.
2026-09-29 07:27:16 +10:00