Commit Graph
166 Commits
Author SHA1 Message Date
Zakk 9963c848c0 fix(lite): make dark mode readable
Several lite surfaces kept their light colours or fell below 4.5:1 in dark
mode: secondary text in segmented choices (4.27:1), input borders
(1.93:1), white text on red buttons (3.76:1), added lines in the config
diff (3.78:1), and CodeMirror's black cursor, search panel and match
highlights. The site theme now sets light-dark() values for these in
modeTokens.css; light mode renders pixel-identical in 208 of 209 shots
(one 28-pixel antialiasing difference).

check-ui rejects raw colour literals outside src/themes, and
scripts/dark-mode.cjs checks cursor, search, input contrast, first paint
and route switches in dark and system modes.
2026-10-26 23:57:00 +11:00
Zakk cc3a621460 feat(lite): publish the lite demo at /lite/ beside doona
tools/deploy-demo.sh builds doona and lite into one tree for the demo
site: doona at the root with the demo snippet from tools/demo-snippet.html,
lite at /lite/ built with VITE_LITE_DEMO=1, plus .nojekyll and CNAME.
With --push it force-pushes that tree to gh-pages as one commit. The demo
build opens lite straight into the mock backend, hides the connect
entries and shows its own dismissable demo badge. doona's service worker
leaves /lite/ to the network so it never answers with doona's page.
2026-10-26 22:06:07 +11:00
Zakk e74e32f5cc feat(lite): add doona lite, a simple config editor
apps/lite is a separate Vite app (Astryx, React 19, StyleX) on the same
honk API, for people who want to switch nodes and edit groups,
subscriptions, nodes, routing and DNS without the observability pages.
Every change goes into a draft and one review dialog shows it in plain
words before it is written; dae syntax stays in the text editor. It has
a demo mode backed by an in-browser mock, browser, motion and
performance checks in apps/lite/scripts, and UI rules and working notes
in apps/lite/docs. It is linted with the repository config.
2026-10-26 22:05:40 +11:00
Zakk f896a21764 chore(release): fold #561 and #562 into 0.1.0-rc.1
The 0.1.0-rc.1 tag is redone on top of the mock cursor and masked
check_url fixes, so their fragments join the rc.1 section.
2026-10-24 18:22:07 +11:00
Zakk 01a369ae08 fix(policies): replace a masked check URL without testing it
honk masks a listener secret in a group's check_url as <redacted> and
tests a JSON Patch against the unmasked value, so the check settings
dialog's test op always failed with 409 and the URL could never be
changed. A masked opening URL now goes as a bare replace under the
request's If-Match, and a draft that still contains <redacted> is
refused, since honk would store the literal.
2026-10-24 18:18:49 +11:00
Zakk c04ae7fc59 fix(contract): type masked check_url reads
honk masks listener secrets in a group's check_url as the literal
<redacted>, which SafeHttpUrl's format: uri rejects. GroupConfig.check_url
now reads as MaskedHttpUrl, and the check_url patch value says that a
test with the masked value fails with 409 and a write stores it as sent.
2026-10-24 18:18:49 +11:00
Zakk a1cc63b6f8 fix(mock): reject cursors with honk's status codes
The mock pager answered every bad cursor with 400 invalid_request, except
flows (and dnsLog without a snapshot), which got 410. honk answers 410
snapshot_expired for an unknown, expired, exhausted, malformed or
noncanonical cursor and 400 invalid_request only for another page size or
other filters; flows also refuse an empty cursor with 400.

The pager now follows honk per resource: the same 410/400 split, the
page-grid and canonical-offset checks for nodes, providers and flows,
honk's eight held snapshots (oldest evicted, but a ninth DNS cache walk is
refused with 503 snapshot_unavailable), and a 400 for a noncanonical dnsLog
cursor. Tests cover each case in one table.
2026-10-24 18:18:44 +11:00
Zakk e8464c7dc6 chore(release): prepare 0.1.0-rc.1
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-10-24 17:49:57 +11:00
Zakk bc1cfbe5f6 fix(settings): keep one pair of brackets on an IPv6 suggestion
location.hostname already brackets an IPv6 address, so wrapping it again
suggested http://[[::1]]:9527. The test now feeds a real URL.
2026-10-20 05:24:44 +11:00
Zakk 20429992eb fix(settings): suggest the backend only on http pages
An https page cannot call honk's plain-http listener, so it gets no
suggestion. While the field holds an unsaved address, the first-run
note says the demo data stays until the URL is saved.
2026-10-20 04:53:35 +11:00
qiuzi 8890314d4f feat(settings): prefill the backend address with this host's honk API
When no backend is saved yet, the backend address field suggests
http://<this-host>:9527 instead of starting empty, so a doona served
from anywhere on the LAN points at the router's native API with one
confirmation. Saved backends still win; the suggestion is only the
form's initial value.
2026-10-20 04:53:35 +11:00
Zakk ed40010b69 fix(rules): explain the blank process in a help button
The description line under the process field was wider than the field, so it
widened its grid cell and pushed DSCP onto a new row. The explanation moves to
the label's help button. A field label row with a help button now keeps the
label's own line height, so the 24 px button no longer pushes the input below
its neighbours.
2026-10-20 04:28:00 +11:00
Zakk 189324a912 fix(ui): keep wrapped table rows level across every cell
In a virtualised table with a wrapping column, a long cell grew its row while the
other cells kept the fixed 40 px height, so each cell drew its separator at its
own height and a long rule's row looked broken. Rows and cells of a multiline
virtual table now fill the box React Aria lays out for the row.
2026-10-20 04:27:54 +11:00
Zakk b7f7e3bfed fix(rules): trace a blank process as traffic without one
The trace form left pname out when the process field was blank, so honk treated
the process as unknown and every earlier pname() rule came back indeterminate,
even though forwarded LAN traffic, which has no process, routes fine. A blank
field now sends pname "", which honk evaluates as no process; the field says so.
2026-10-17 22:38:39 +11:00
Zakk 6acdabdc7c chore(release): prepare 0.1.0-beta.20
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-10-12 05:02:21 +11:00
eries 1d17ece272 fix(i18n): keep XHTTP help within startup budgets
Shorten XHTTP help in all three complete catalogues while retaining the defaults, validation, node-ID and download-peer guidance. Keep the existing size budgets: CI's Node 22 gzip output exceeded login by 10 bytes and Activity by 42 bytes.

Verify the production build and size gate with Node 22.23.3, matching CI, and inspect all three languages in the node dialog.
2026-10-12 04:46:12 +11:00
eries c59a9aec81 fix(nodes): simplify XHTTP drafts and shared saves
Keep pending headers in the node draft and run link preflight inside the shared source-save transaction. Apply only changed XHTTP fields, preserve empty headers, encode apostrophes, and explain missing edit fields.

Quote generated node declaration keys uniformly and lazy-load dialog-only subscription fields without increasing size budgets. Update regressions and user documentation.
2026-10-12 04:46:12 +11:00
eries 716ab20b0f fix(nodes): quote a node named mux where its declaration is written
honk reads a bare `mux:` line in a node section as the removed standalone
mux setting and rejects it, so the edit check refused a valid link for a
node named mux and renaming a node to mux broke the source. Write and
check that one name quoted; group and DNS references stay unchanged.
2026-10-12 04:46:12 +11:00
eries 811db1cf30 feat(nodes): edit XHTTP link options as fields
Show a vless or trojan XHTTP link's mode, path, host, headers, padding,
POST pacing and download peer as fields that rewrite only their own part
of the link. Check an edited link with honk's syntax validation before the
source write, so a link honk would skip is refused with its reason, and
refuse links over the 8192 characters node creation accepts.
2026-10-12 04:46:12 +11:00
Zakk cedc7759a7 feat(settings): let Liquid Glass keep refraction while scrolling
Settings > Appearance gains a switch, on by default, for the scroll pause. Turned off, the root carries data-lens-steady and lens.ts no longer pauses the lens. The Glass rows (wallpaper, blur and this switch) now load with the Glass palettes only, which keeps the Settings route within its size budget: 72,866 bytes over a 72,800 limit inline, 67,133 lazy.
2026-10-12 00:56:19 +11:00
Zakk 201f0a2118 perf(glass): pause the lens while the page scrolls
Chromium redraws every lensed backdrop on the CPU each frame the page moves under it: about 11 ms a frame on a desktop page of cards, enough to drop to 42 fps on an RTX 4080. While the page scrolls, and for 150 ms after, the root carries data-lens-paused and the lens tokens fall back to the same blur and colour without the refraction. Scrolling measures at 60 fps with 0.3 ms of compositor draw, the same as Clear.
2026-10-12 00:56:19 +11:00
Zakk 7d1237ecf2 feat(ui): look up public addresses on IP sites
Clicking a public address in the connection details or a DNS answer opens a menu of ipinfo.io, ipapi.is, ip-api.com and bgp.he.net. The chosen site opens in a new tab without a referrer; nothing is requested before that.

DNS answers now lead with the record data, followed by the type and TTL, and show the owner name only when it differs from the name asked for.
2026-10-09 22:45:21 +11:00
Zakk 2391fb7b62 chore(release): prepare 0.1.0-beta.19
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-10-09 07:06:31 +11:00
Zakk 49829f1016 fix(policies): preserve node focus and fade busy lists
Native disabled buttons blur the focused node during selection requests.
Use React Aria's pending state to block presses while retaining focus.
Fade both list containers at half opacity without adding busy to virtual
row dependencies, and remove the unused node disabled styles.
2026-10-09 06:36:56 +11:00
Zakk 5a044cbfba fix(policies): keep node rows focusable while a selection is pending
A pending selection listed every node in disabledKeys with the default
disabledBehavior, so the focused row lost its tabIndex during React's
commit. Chromium blurred it while React's event dispatch was off, and
react-aria kept the row marked focused, leaving a focus ring on rows the
user had clicked away from. Disable only selection while busy, so rows
stay focusable, and drop the data-focused guard the CSS no longer needs.

The e2e test now clicks through real rows instead of injecting the
stale attribute.
2026-10-09 04:56:01 +11:00
Zakk 57941fd69c fix(nodes): give the details card's groups a full-width row 2026-10-09 04:32:41 +11:00
Zakk 457b6fb5fd fix(mock): start the demo's plain links on raw TCP
The inline hk-01, hk-02 and sg-01 fixtures had no stream_transport, so the demo showed them without a transport until the configuration was applied, while honk reports tcp for these links.
2026-10-09 04:19:40 +11:00
Zakk 3b10d8e1d1 fix(events): hold the anchor only while the page scrolls
A sideways swipe on the table, or a wheel or swipe taken by a box that
scrolls on its own, left the page still but suspended prepend
compensation, so new rows pushed the row being read down. Start the
hold only for a vertical wheel the page receives, or a mainly vertical
touch movement that did not start in such a box.

Raise the route budget by 100 bytes for the shared table chunk.
2026-10-09 04:18:43 +11:00
Zakk 7bc48fc63f fix(mock): report stream transports the way honk does 2026-10-09 04:04:44 +11:00
Zakk b52bfa4784 fix(auth): name the address limit when setup is refused 2026-10-09 03:57:37 +11:00
Zakk 8f540c9b1a fix(release): let fetch-honk check another doona repository 2026-10-09 03:56:35 +11:00
Zakk bf8b40d8b9 chore(release): prepare 0.1.0-beta.18
Collect XHTTP transport display and matching embedded UI release changes. Update package versions and installation guidance while leaving archive hashes for the verified publication follow-up.
2026-10-08 03:44:22 +11:00
Zakk 0252b60f61 feat(nodes): show the configured stream transport
Display transport information reported by the backend while preserving protocol filters and compatibility with older responses. Keep XHTTP share links intact through node creation and editing.
2026-10-08 01:47:22 +11:00
Zakk 696f4f59ca fix(release): bundle honk with the matching doona version
Publish the UI before building honk, then verify its embedded UI pins before attaching the bundle to the same release. Keep source provenance and preserve standalone assets during repairs.
2026-10-07 22:35:18 +11:00
Zakk ba4b41a7b7 chore(packaging): record beta.17 source checksums 2026-10-07 21:34:23 +11:00
Zakk f9b687f291 chore(release): prepare v0.1.0-beta.17
Collect the merged policy and Glass fixes, advance package recipes and installation examples, and update release summaries.
2026-10-07 20:59:53 +11:00
Zakk 7375cd7d8f fix(policies): require focus for node keyboard outlines
Ignore stale focus-visible attributes on unfocused node rows so they cannot resemble additional selections. Preserve the active keyboard outline and selected borders.
2026-10-07 20:36:07 +11:00
Zakk a31a516988 fix(policies): update selection borders immediately
Exclude node borders from color transitions so rapid switches do not leave a visible ring on the previous selection.
2026-10-07 19:25:03 +11:00
Zakk a7106ddddb fix(glass): preserve collapsed toast stacking
Remove the Glass positioning override so background notifications retain their shared absolute stacking layout.
2026-10-07 19:05:51 +11:00
Zakk e88a0d66a6 fix(rules): place template help beside its title
Lay out radio titles and contextual help together so longer descriptions cannot push the info button away from its title.
2026-10-07 19:05:46 +11:00
Zakk 364d2b1e6d feat(policies): collapse region choices by default
Keep the group editor compact by placing region choices in the existing disclosure. Preserve selected tags and the checklist accessible name.
2026-10-07 17:27:10 +11:00
Zakk f2371e7381 chore(packaging): record beta.16 archive checksums
Use the published archives to refresh Alpine, OpenWrt, Gentoo and Nix verification data. Correct the documented asset count to match the 36 release files.
2026-10-07 06:29:31 +11:00
Zakk f520adc2a9 chore(release): prepare 0.1.0-beta.16
Collect the scrolling, widget editor and Liquid Glass fixes, update the release version and document the current package names. Archive checksums are populated from the release build.
2026-10-07 05:47:57 +11:00
Zakk b1a7ac5b05 fix(auth): preserve generic permission refusals
The backend uses permission_denied for both HTTP policy and administrator setup restrictions. Show the existing localized permission error and request ID instead of assuming every refusal concerns setup peer addresses.
2026-10-07 05:37:20 +11:00
Zakk 18df090f0c fix(dns): apply cache matching to displayed entries
Use the existing bounded matcher for both the cache table and deletion candidates. Expose filtering for read-only caches and make linked domain criteria visible and clearable.
2026-10-07 05:37:20 +11:00
Zakk 5d0645d7fe fix(glass): restore toggle states and empty-table surfaces
Keep selected quiet controls visibly distinct and let empty table messages share the surrounding glass material. Cover each material in a separate browser regression case.
2026-10-07 05:37:20 +11:00
Zakk b2e86482ba perf(glass): reduce page-flow table filtering
Keep blur and colour treatment on long Events and Logs tables without applying the SVG lens over their full height. Preserve refraction on other glass surfaces and cover nested tables and accessibility overrides.
2026-10-07 04:08:34 +11:00
Zakk d41633f996 fix(widgets): stabilize editor scrolling and preview scale
Keep gallery cards clear of the column scrollbar and remove the horizontal
fade where the three-column gallery scrolls vertically. Reserve the preview
scrollbar gutter so its appearance cannot trigger a resize feedback loop.
2026-10-07 00:43:26 +11:00
Zakk 2ef4f1fed2 fix(events): let wheel scrolling override prepend anchoring
Prepending live rows can move the viewport down while the user scrolls up. Yield anchoring during vertical wheel or touch movement and resume it after scrolling settles.

Seed the healthy demo with 200 visible Events and Logs records to exercise scrolling with a full table, and cover active and stationary anchoring.
2026-10-06 22:52:26 +11:00
Zakk a838589032 chore(release): fill 0.1.0-beta.15 checksums 2026-10-06 08:26:48 +11:00