Commit Graph
127 Commits
Author SHA1 Message Date
Zakk ca2b5be0fe feat(nodes): set refresh interval, User-Agent and cache when adding a subscription
The add dialog shows each option the backend lists in create_options: the interval as the table's presets with the default preselected, the User-Agent with the default as placeholder, and the cache switch with a line of help. Only a value that differs from the default is sent, so an untouched entry stays one line. The e2e mock backend now serves provider create and refresh.
2026-09-25 23:09:34 +10:00
Zakk df9d024e0c test(mock): accept subscription options on create
The mock advertises honk's create_options, refuses an option it does not list or a value out of range, writes an entry with options as a block like honk does, reads that block's URL back, and deletes the whole block.
2026-09-25 23:09:34 +10:00
Zakk f8980d6539 build(api): pin the upstream contract
Pin merged honk API eba8a24. ProviderCreate gains optional update_interval, user_agent and cache, and resources.providers.create_options lists the ones a backend accepts with their defaults. types.ts is regenerated with pnpm gen:api.
2026-09-25 23:09:34 +10:00
Zakk 67a50450c0 ci(check): run once per PR and label flaky e2e tests
Every branch push ran the check twice, once for push and once for
pull_request. Push now runs on main only.

CI retries a failed e2e test once. A test that passes only on retry is
reported as flaky and still fails the run, so a flake is told apart from
a regression without being hidden.
2026-09-25 22:59:36 +10:00
Zakk 2b7244d46a test(arrange): match the selection count exactly
getByText('1 selected') is a substring match, so it also matched React
Aria's live announcement 'sg-01 selected.' once that was written, which
on a slow WebKit run happened before the assertion resolved.
2026-09-25 22:59:36 +10:00
Zakk 16b6e1e05a build(size): raise the total JS budget to 680 KB
Recent features (held rules, subscription options, geodata settings) brought the total JS to the 655 KB cap. The shell budget, which bounds what a first visit downloads, stays at 275 KB and has about 35 KB left.
2026-09-25 22:56:47 +10:00
Zakk 2f01a0e988 fix(connections): pin the insert position and report partial applies
The dialog pins the rule it inserts before, with its generation, and
says so before falling back to the first position when a reload removed
it. The outbound starts from the one the connection used, a domain dae
cannot hold falls back to the destination IP, and the dialog explains
when no rule sits in a writable file. An apply that fails in a later
file says what it wrote and what is still held, a refusal without
errors no longer reports zero errors, and restartRequired moves to
config/names so the top bar can share it without the config view.
2026-09-25 22:47:14 +10:00
Zakk 0d75d00470 fix(dae): refuse rule values honk would read as syntax
A value with parentheses or && was written bare, so honk ended the call
early or split the rule there. Such values are now refused, as a closing
parenthesis, # or -> already were; a value with a colon is still quoted.
2026-09-25 22:47:14 +10:00
Zakk 033809b167 fix(connections): describe hold and apply in the add-rule dialog
The dialog help still said adding a rule writes and reloads, which Hold
does not do. The English apply label is shortened so it fits the footer
on a phone.
2026-09-25 22:47:14 +10:00
Zakk 96f50c3ff5 feat(rules): hold rules and apply them together from the top bar
Adding a rule from a connection no longer has to reload honk each time.
Hold keeps the rule in a session store of pending rules, which the rule
list shows and can discard. While rules are held, the top bar's refresh
button shows their count and applies them: one write and reload per
file, stopping at the first failure and keeping the rest with its
diagnostics. With nothing held it refreshes the data as before. Add and
apply now still writes at once, through the same path.
2026-09-25 22:47:14 +10:00
Zakk 25a4c3b6c2 fix(connections): align the connection actions
Quiet and filled buttons mixed in one wrapping row, and the spacer before
Close connection pushed it to the right edge whenever it shared a line.
The actions now use one button style, and Close connection always ends
the group on its own line. An e2e check measures heights, lines and gaps.
2026-09-25 22:47:14 +10:00
Zakk d4e0ff72e6 fix(connections): put the connection actions under the panel header
The actions sat below the details and needed scrolling. They now follow
the status line, rule actions first and Close connection last.
2026-09-25 22:47:14 +10:00
Zakk a9802b559c fix(connections): call the rule jump Show matched rule
The rule list selects and reveals the rule but has no editor for it, so
the action says it shows the rule rather than edits it.
2026-09-25 22:47:14 +10:00
Zakk 1a739248d7 test(connections): cover adding and editing rules from a connection
Adds e2e coverage for the written request, a refused validation shown in
the dialog, the jump to the matched rule, a connection without a recorded
rule, and the hidden actions on a read-only configuration.
2026-09-25 22:47:14 +10:00
Zakk 17ecc06564 feat(connections): add a rule from a connection
The connection detail offers Add rule, prefilled with the connection's
domain (exact or suffix) or destination IP, and Edit matched rule, which
opens the rule list on the rule the connection matched. The dialog writes
through the rules editor path and shows refused writes in place.
2026-09-25 22:47:14 +10:00
Zakk b4b2dfeca5 fix(mock): advance the traffic history with the clock
The mock served the traffic history recorded at page load. After two
minutes the live window held none of it, so once the tab came back from
the background, or the activity page opened later in the session, the
download, upload and connection curves were one fresh poll: a single
point, or no data. The ring now advances in ten-second steps from page
load, and a refetch returns the samples it already served.
2026-09-25 22:25:23 +10:00
Zakk a3a6ef7fd5 feat(settings): show geodata as settings rows that save on change
The geodata card is one list of labelled rows:
source, custom URLs (only for a custom source), download route, automatic
updates and status. Each control saves as it changes; a new source or
custom list is stored and then downloaded at once. The custom lists are
edited in a dialog, the route takes a group when a group route is chosen,
and the interval is a select of five steps. The status row shows the last
update and its checksums, an update in progress, or the last error, and
the per-asset size, host and route sit under Details. The dialog moves a
URL up or down, since the order is the fallback order. Saves are single
flight, and the route defaults to the routing rules when none is stored.
2026-09-25 21:53:20 +10:00
Zakk ab2148314d build(api): pin the upstream contract
Pin merged honk API c5e2152. It adds the route geodata downloads take
(GeoDataSettings.download and GeoAsset.download_route), with routing as the
default, and turns automatic updates on by default. types.ts is regenerated
with pnpm gen:api. The mock stores the route, checks the group, reports the
route each asset came through, and starts with automatic updates on and the
routing route.
2026-09-25 21:53:20 +10:00
Zakk 13d701c6d7 fix(nodes): read a degraded provider publication as applied
honk fails a provider refresh with publication_degraded and committed: true when it has applied the nodes but the runtime is degraded. doona reported that as "The operation did not succeed". The refresh now counts as applied and shows a warning that the runtime is degraded; a rejected publication still reads as failed.
2026-09-25 21:03:15 +10:00
Zakk ee4e1e71e6 fix(i18n): describe fallback groups as honk runs them
The hint said a fallback group uses the first available node in order. honk keeps the current node until it fails, and a node earlier in the order that recovers does not take over again. All three locales now say that.
2026-09-25 21:03:15 +10:00
Zakk f4b2f43411 fix(nodes): report an unknown probe result as unknown
A probe that timed out or failed its cleanup ends with state unknown, but the nodes table and the route trace showed it as unreachable and dropped the error, which invites deleting a working node. Both now share one projection that says the result is unknown and gives the backend's reason.
2026-09-25 21:03:15 +10:00
Zakk 64d3174e5d fix(logs): show the level the engine records
The engine emits nothing below the runtime log.level, so choosing Debug on the logs page added no records and looked like there were none to show. The page now states the recorded level and marks the lower levels with where to change it.
2026-09-25 21:03:15 +10:00
Zakk 33fd82a453 fix(api): say how long a refused request waits before retrying
A rate-limited DNS query, probe or route trace waits out Retry-After, up to a minute, while the page shows only a spinner and looks hung. A wait longer than three seconds now shows a status under the page title with the reason and a countdown to the automatic retry.
2026-09-25 21:03:15 +10:00
Zakk 196b704857 fix(policies): stop promising pinning in the page note
The note said automatic groups can pin a member, but honk refuses overrides on every group, and the page cannot tell which groups allow it: that comes with each group's detail. The note now covers what always holds, and cards whose group allows an override keep offering it.
2026-09-25 21:03:15 +10:00
Zakk 1edc2c7c06 feat(settings): keep geodata URLs editable under source config
honk now keeps geodata URLs only in its stored settings and writes the config file's URLs there at startup, so the card no longer locks them. Under source config it notes that a restart writes them again; a patch sends the URLs and the source becomes saved. The config-specific 409 path is gone, since the contract drops that response; any error shows the save failure with the backend's message.
2026-09-25 20:46:52 +10:00
Zakk 2fa82d8f1a test(connections): cover the node latency card
Nodes in use, connections without a latency, empty chains, nodes without a
latency, and backends without health samples or a node list.
2026-09-25 20:31:31 +10:00
Zakk 5f4a88fe3e feat(connections): chart the latency of every node
Each node with a TCP latency, as the Nodes page shows it, is one dot, with P50
and P90 across nodes. When connection chains name their nodes, the nodes in
use are highlighted, carry their connection count, and add a
connection-weighted median that counts the connections it leaves out. The card
stays out when the backend lists no nodes or no health samples.
2026-09-25 20:31:31 +10:00
Zakk 62995057f8 fix(auth): sign in from the public discovery view
A caller the listener does not admit now gets a reduced discovery without anonymous_loopback, so the sign-in type reads only the fields both views carry. The password e2e backend serves that view.
2026-09-25 20:10:25 +10:00
Zakk 9418d98af7 fix(mock): answer an unpinnable rule list with a retryable 503
snapshot_unavailable is now a 503 with Retry-After in the contract, not a 409.
2026-09-25 20:10:25 +10:00
Zakk c9b04de0cb build(api): pin the upstream contract
Pin merged honk API 606a6b7. Discovery is now a union of the admitted and the public view; types.ts is regenerated with pnpm gen:api.
2026-09-25 20:10:25 +10:00
Zakk 0ceb14993a fix(ui): draw the editor gutter over code scrolled sideways
The line-number gutter stays in place while a long line scrolls sideways, but its background was transparent, so the code showed through the numbers. On a phone the caret scrolls the editor sideways while typing and the numbers turned unreadable. The gutter now uses the editor's own background.
2026-09-25 19:40:47 +10:00
Zakk 0481d3230e fix(config): keep module diagnostics steady while typing
Each keystroke in a module editor dropped the last validation and fell back to the diagnostics of the saved file, then the background validation put the draft's back 600 ms later. The list under the editor changed height, the actions below it moved and the line tints blinked on every pause. The module editor now keeps the last diagnostics until the next validation replaces them, as the Sources editor already does, and places the marks once per set so CodeMirror carries them through later edits.
2026-09-25 19:40:47 +10:00
Zakk 2f0db600f7 fix(ui): report an unknown operation outcome neutrally
An operation the backend forgot was reported inside each action's failure wording, such as "Could not run the operation: Result unknown", in a failure toast. The outcome is not a failure. Error toasts and edit problems now go through one notice helper that shows an unknown outcome on its own, in a neutral tone, and says the data was reloaded.
2026-09-25 19:30:40 +10:00
Zakk b4e03a49e9 fix(api): bound the stream silence limit
heartbeat_seconds is optional, and a zero, missing or tiny value gave a silence limit of zero or NaN, so the stream would reconnect again and again. A value that is not a positive number now falls back to 15 seconds, and the limit never drops below 10 seconds.
2026-09-25 19:30:40 +10:00
Zakk 0b27905d5c perf(dns): reuse a recent cache walk for the usage card
honk keeps a full snapshot for every cache listing read, including the one-entry read behind the usage card, and refuses a ninth. Switching from the cache tab to the statistics tab asked for a second snapshot seconds after the table had walked the cache. The card now reads usage from a walk made within the last minute and only asks for one entry otherwise.
2026-09-25 19:30:40 +10:00
Zakk 95c5688901 fix(api): report an operation the backend forgot as an unknown result
The backend keeps operations only in memory, so after a restart or once a record expires, polling gets a 404. doona showed "Resource not found" although the operation may have applied. Polling now goes through one store helper that re-reads every resource on the page and says the result is unknown, so the person checks the current state instead of retrying blindly.
2026-09-25 19:30:40 +10:00
Zakk ee9eb271ca fix(logs): mark records lost when a stream cursor expires
When the backend no longer holds the resume cursor, the stream restarts at the head and the records sent meanwhile are gone. The logs and events lists joined old and new records as if nothing was missing. The client now reports the expired cursor; the logs list shows a marker row at the gap and the events list says so on the stream-ready row that restarted the stream.
2026-09-25 19:30:40 +10:00
Zakk f95ad6585b fix(api): reconnect event and log streams that miss heartbeats
A half-open connection after sleep or a network change never errors, so both streams kept showing as connected while no events arrived. The client now treats two and a half missed heartbeat intervals as a dropped connection, reports it, and resumes from the last cursor. Events use the advertised heartbeat_seconds; logs use the contract ceiling of 15 seconds.
2026-09-25 19:30:40 +10:00
Zakk 108110c54e fix(api): keep a host clock per backend and stop it flapping
Each backend profile now owns its clock, so a late response from the previous profile cannot move the new one, and the settings form test connection no longer resets the active clock. A shift starts above 5 s of skew and holds until the skew falls below 2.5 s.
2026-09-25 19:16:53 +10:00
Zakk d20742c656 test(e2e): serve the memory history window the page asks for
The refresh test served the seven-day memory ring, one sample every fourteen minutes, for the ten-minute query. It passed only because the paused page clock sat nine days behind the fixtures, which put the whole week inside the window. On the host clock the window holds one sample and the card waited for more.
2026-09-25 19:16:53 +10:00
Zakk cc8c1c6a34 fix(api): read relative times and chart windows on the host clock
A host without an RTC can run minutes off until NTP syncs. Relative times then showed valid DNS entries as expired and the live traffic window dropped every sample. The client now estimates the host offset from the observed_at of recent responses and applies it, past a five second tolerance, to the shared ticking clock and the ring windows.
2026-09-25 19:16:53 +10:00
Zakk 33e068ea11 revert(i18n): leave publication_degraded to its own fix
accurate-copy reads a degraded provider publication as applied, with its own wording. Mapping the same code here would conflict with it, so this branch drops that entry and its test case.
2026-09-25 18:41:54 +10:00
Zakk cb7f416696 test(connections): say what enables the large connection set
The batch close test set doona-mock-big to 600, which suggests 600 connections. Any value turns on the fixed large connection set; the number only sizes the node inventory. It now keeps the default and says so, and the test reads the live count from the dialog.
2026-09-25 18:41:54 +10:00
Zakk 23f266f4d9 fix(config): name the limit a refused write came closest to
A 413 does not say which limit refused a config write, and the smaller advertised limit is not always the one hit: JSON escaping can bring the body closer to its limit than the text is to the content limit. The check now picks the limit the write uses the largest share of, both before sending and on a 413.
2026-09-25 18:41:54 +10:00
Zakk 724b404624 fix(connections): count unreached connections when a batch close stops
The connection listing stops at 1000 rows. When a round closes nothing, the rows past that point were never tried, but the reported total counted only the listed rows. A stopped round now reports the listing's total for its network as left open, so the toast matches what is still live.
2026-09-25 18:41:54 +10:00
Zakk 9633b53935 refactor(connections): group listed rows by source once
The batch close walked the listing twice to find sources and the rows without one. It now groups the listed ids by source in one pass and sends each group to a bulk close or to the one-by-one close.
2026-09-25 18:41:54 +10:00
Zakk 3e944ae9db fix(i18n): translate the operation error codes honk reports
operation.error and provider.last_error carry adapter-defined codes outside the HTTP catalogue, so doona showed honk's English message behind a "backend message" label in every language. The thirteen codes honk sets now map to translated messages in the same table as the HTTP codes, and the geodata card's last error goes through it too. Unknown codes still show the backend's own message.
2026-09-25 18:41:54 +10:00
Zakk 03ba9f1768 fix(config): check writes against the advertised size limits
doona sent config writes without reading the size limits discovery advertises, so a large file failed only with a generic "request too large". Writes and validations are now checked against resources.config.max_bytes, config_validate.max_bytes and limits.max_json_body_bytes before they are sent, and a 413 from the backend names the tighter advertised limit. The limits are read from discovery on every write, never assumed.
2026-09-25 18:41:54 +10:00
Zakk 1ed4cce6aa fix(connections): close everything in batches the bulk limit admits
Settings asked honk to close every connection at once, and honk refuses any bulk close selecting more than max_bulk_close entries, so with more than 1000 connections the button closed nothing and said the request was too large. The close now narrows a refused selection by network, then by source address, and closes a source still over the limit one by one, repeating until the whole selection fits. The Connections page keeps its confirmed scope of listed rows and shares the same one-by-one path.
2026-09-25 18:41:54 +10:00
Zakk 30690e95af fix(dns): share the smaller-page retry and measure short pages by it
The retry for a DNS page an older honk refuses now lives in one helper,
smallerOnRefusal. It retries only a 503 temporarily_unavailable that
carries Retry-After, waits that long first, and retries once at a
quarter of the size. The cache listing walk uses it too, and keeps the
smaller page for the rest of the walk. The log page records the limit
it was served at, so the Statistics note compares against the request
that succeeded and stays hidden when the client asked for fewer rows
itself.
2026-09-25 18:33:00 +10:00