Commit Graph
209 Commits
Author SHA1 Message Date
Zakk 815d3ac38f fix(ui): keep the folded editor tools on the actions row 2026-10-28 02:13:04 +00:00
Zakk d8b6ba1816 fix(lite): offer the demo only on the demo site 2026-10-28 01:11:36 +00:00
Zakk f6f7395242 feat(lite): connect to the honk that serves it without asking for an address
When lite is opened from honk with no saved connection, it probes the
same origin the way the standard app does. Anonymous access connects
straight away; a 401 or 403 shows only the matching sign-in step with
the address hidden. Static hosts keep the address form, whose help now
says it wants the honk native API root.
2026-10-28 01:11:36 +00:00
Zakk a7bd92bc82 fix(lite): tone down selection, primary button, headings and surfaces 2026-10-28 00:25:03 +00:00
Zakk 2e90a8e28f feat(lite): clearer hierarchy, paired CJK fonts, surface depth and one control shape
Page and section titles get a clear type scale, Chinese text uses system CJK fonts at matching weights, dark surfaces step in lightness with one accent from the duck's yellow for selection, the primary button and focus, and every control but the primary button shares one radius and border; same-row controls share a height.
2026-10-28 00:25:03 +00:00
Zakk 058b571472 fix(lite): drop the edge shadow beside pinned table columns 2026-10-27 23:23:03 +00:00
Zakk 7f8c1bb8aa fix(lite): align the subscriptions toolbar and check the palette's last row 2026-10-27 23:23:03 +00:00
Zakk d680674dea fix(lite): show the paste error once and let dialog bodies scroll at short heights 2026-10-27 23:23:03 +00:00
Zakk 73d9cf746b fix(lite): fit the nodes table at mid widths and keep its menus off the pager 2026-10-27 23:23:03 +00:00
Zakk 89e4b3bbc1 fix(lite): keep group names and the sidebar inset at mid widths
The group inspector kept its 640 px width (480 px minimum) at every
width, so between the phone breakpoint and about 1280 px the group list
shrank until the label column, which is the only part of a row that
yields, reached zero: names vanished and the latency overflowed the
row. Below about 1000 px the panel also covered the list.

The panel now leaves 22rem to the list and never takes less than 45% of
the row, so names keep room and ellipsize, and the latency stays whole.
From 1280 px the chosen width is unchanged.

The layout-rhythm check covers 1180 and 1470 px in en and zh-TW: every
group name keeps at least 64 px inside its row, the latency is not cut,
and the sidebar items have equal start and end insets.
2026-10-27 22:26:12 +00:00
Zakk c877c33b7b feat(ui): explain unavailable features in place with the same text 2026-10-27 22:04:24 +00:00
Zakk 9ad4d40000 feat(ui): list unavailable features with the setting that turns them on 2026-10-27 22:04:24 +00:00
Zakk 108c851ed1 fix(i18n): name a policy group the same way in each Chinese locale 2026-10-27 21:44:34 +00:00
Zakk 0389484a37 fix(ui): keep popovers above the phone navigation bar 2026-10-27 21:43:54 +00:00
Zakk 6cb6d58d5b fix(ui): say why a feature is unavailable without wrong claims
Four hints said something honk does not do.

- holdsCredentials now matches honk's contains_api_secret: a source is
  refused only when a native_api or clash_api block under a top-level
  experimental section holds a secret or a nested block. Rule templates
  and the config page keep asking the adapter.
- Flow recording set to Off was described as recorded on demand. The
  adapter now reports auto as on demand, the Off mode as mode-off, and
  a configuration without record_flows as a recorder it turns off.
- Engine settings carry their full dotted name, so the geodata hint
  names assets.geodata.geosite and assets.geodata.geoip and the snippet
  is an assets { geodata { } } block; the text says honk refuses them
  beside the legacy experimental.native_api keys. settingName is gone.
- A source whose text does not match its hash is called incomplete,
  and redacted only when the backend reports secrets_redacted.
2026-10-27 21:43:13 +00:00
Zakk c91bf35df4 docs(readme): default to Traditional Chinese
README.md is now the Traditional Chinese text and the English text moves to README.en.md. The archives, Makefile install, rpm list and Gentoo ebuild ship both files.
2026-10-27 08:36:24 +00:00
Zakk f13e5cdf65 docs: link the documentation at doona.daeuniverse.org 2026-10-27 06:08:09 +00:00
Zakk 8e1ecbfcf8 refactor(shell): mark the scrolled root from one listener 2026-10-27 04:51:21 +00:00
Zakk 426597a5c9 chore(release): prepare 0.1.0-rc.2
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-10-27 03:39:54 +00:00
Zakk 42620820ad 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-27 03:03:50 +00:00
Zakk e849205267 fix(ui): keep a page left with its detail panel open
The inline detail panel is not a dialog: a hidden page runs no effects, so
the panel neither costs anything nor comes back uninvited. Counting it as
an open overlay rebuilt Connections, Flows and DNS on every revisit while
a row was selected. The teardown check that hidden pages hold no panel
encoded that rule and goes with it.
2026-10-27 02:10:20 +00:00
Zakk 122d2d191d build(notices): list the packages each edition bundles
THIRD-PARTY-NOTICES.txt was derived from the root package's dependency closure, so the lite archive got the standard edition's list and missed lite's own packages. Each Vite build now records the node_modules packages of the modules it bundled (tools/bundled-packages.mjs), and tools/notices.mjs reads that list for the archive it stages. The standard edition's notices drop eight packages that its build does not contain (type-only or unused).
2026-10-27 01:48:59 +00:00
Zakk 0add7a08be refactor(ui): drop the Feedback forwarder, touch.css chunk and the table-cards state copy
Import the split feedback files directly and move each test beside its file. Fold the touch hit areas into the coarse-pointer block of foundations.css (+89 B gzip on startupCss, budget 30520 to 30620). Widen the CardView state selectors to table cards instead of repeating them. Feedback.tsx keeps two re-exports until Dialog.tsx and NodeGrid.tsx stop importing it.
2026-10-27 01:41:42 +00:00
Zakk 191b6a6fbd feat(rules): trace by firewall mark
The routing trace contract takes a mark, but the trace form had no field for it, so
mark() rules always stayed undecided. An advanced field next to DSCP takes the mark
in decimal or in the 0x hexadecimal form dae rules use, checks the unsigned 32-bit
range inline, and sends it only when filled.
2026-10-27 01:40:18 +00:00
Zakk fbe1779c79 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
light and dark themes and a demo mode backed by an in-browser mock.
Browser, motion and performance checks in apps/lite/scripts run under
Playwright, CI runs `pnpm -C apps/lite check`, and the UI rules are in
apps/lite/UI-RULES.md. It is linted with the repository config.
2026-10-27 01:37:20 +00:00
Zakk 815b322f9b fix(flows): show step errors and the DNS status and query type
The DNS, outbound, connection and datapath step fields dropped the contract's error, and the DNS step also dropped status and qtype. Because a step with fields shows no raw JSON, an error the backend reported was never visible. Each branch now adds an Error row when the step reports one, and the DNS step shows its query type and answer status with the labels already used elsewhere.
2026-10-27 00:28:50 +00:00
Zakk b142c602a7 fix(mock): create the node or subscription section a new entry needs
createNode and createProvider inserted the entry only after an existing
`node {` or `subscription {` header. Without one the edit changed
nothing, the write still activated, and reading the new entry back
answered 404. A missing section is now appended at the end of the main
source, as a new group section is.
2026-10-27 00:27:12 +00:00
Zakk 430ed00f87 fix(config): complete dns targets with upstreams instead of outbounds
Completion after `->` or `fallback:` offered groups and builtin outbounds
everywhere, including dns rules, where a target is an upstream or an
action. Inside `dns`, the list now holds the upstreams every source
defines (this one as edited) plus `asis` and `reject` in `request`, or
`accept` and `reject` in `response`, as the DNS rule contract allows.
Routing completion is unchanged.
2026-10-27 00:27:12 +00:00
Zakk 4f5d505038 fix(dae): count only subtag arguments as subscription tag references
groupsNamingTag matched the tag against every text token of an expression
filter, so `name(keyword: harbor)` made a group look like it cited the
subscription tagged `harbor` and blocked renaming or removing it. Only a
plain argument of a `subtag(...)` call names a subscription; `keyword:`
and `regex:` values and arguments of other calls no longer count.
2026-10-27 00:27:12 +00:00
Zakk 6cc1a844e7 fix(manage): count only probeable nodes and grade group test summaries
Test all on the Nodes page started and counted every listed node, so nodes
the backend cannot probe were reported as unavailable. It now probes only
the nodes the single-row test would offer, and is disabled with a reason
when none qualify.

The policy group test summary was always a positive toast. It now folds
the result the way a node test does: positive when a member answered,
negative when every finished member failed, neutral otherwise. The level
rule moves into probeLevel so both share it.

Group config values that are objects or lists render as compact JSON
instead of "[object Object]".
2026-10-27 00:27:12 +00:00
Zakk 3b93f5f8d5 refactor(ui): share chart tip rows, node path cell and card drag type
The area chart and the compact widget chart built their tip rows twice, connections and flows drew the same node cell twice, and the card drag type was defined in two files. Each now has one definition. Stale control size comments on tabs, cards and the widget layout migration are corrected.
2026-10-27 00:04:41 +00:00
Zakk 98bc4f595e docs(changes): describe rc.2 once, without fixes to unreleased work
Fixes to work that never shipped (the urgent route flag, kept-page and staged-catalogue follow-ups, the widget width and DNS label fixes) are dropped, the log actions entry states the final behaviour instead of two contradicting ones, the blank backend URL joins the invalid URL entry, and keep-pages gets an entry of its own.
2026-10-26 20:59:51 +00:00
Zakk f3aeb893b7 perf(ui): cut layout work on page switches
Profiles of page switches showed four sources of avoidable work:

- packSection wrote each card's data-wide attribute between reads, so
  every card forced a layout, and it looked up each card's line again
  for every row check; it now reads every card first, then writes, and
  reuses the lookups. Packing still runs synchronously on mount and on
  card changes, so the layout is final when a commit ends.
- useSlider and useOverflow measured synchronously in the commit and
  again from their ResizeObserver; only the observer measures now. The
  slider commits its marker inside the observer callback with flushSync,
  so a new tab bar paints with its marker.
- FitTags mounted every tag link only to hide most of them; the first
  pass renders plain probes, measures them together, and mounts only the
  links that fit. Focus on a fitted link survives a later re-measure.
- NodeGrid listed the onSelect callback among the collection
  dependencies, so each new callback identity rebuilt the Policies grid;
  only whether selection is enabled matters there.

E2E helpers that decide from layout-dependent state wait for the frame
in which a collapsed control or a resized chart settles.
2026-10-26 20:53:15 +00:00
Zakk 120f7f6c83 refactor(shell): replace the address alone before a reload
Saving a backend and signing out reload the app right after changing the
route, so the shell rendered a page the reload discarded. They now rewrite
the address with history.replaceState through replaceAddress, and the
urgent flag added to keep that render out of a transition goes away.
2026-10-26 20:29:29 +00:00
Zakk 260f728b28 fix(ui): block saving a blank backend URL and keep log actions in one row
A blank backend URL counted as the demo alias and saved; it is now an
error like any invalid URL, and the help text says to enter mock for the
demo. The log export and record settings stay in the toolbar row and wrap
as whole controls. Tests cover leaving an applied rule template, one
Escape closing search, the group draft prompt, the required name, number
ranges, the reload reason and the Save label.
2026-10-26 17:50:33 +00:00
Zakk 8a31bc10ca fix(shell): navigate urgently on submit and keep hidden pages idle
A route replacement during a form submit no longer starts a transition,
which threw "Failed to construct 'FormData'". Hidden rule and trace tabs
stop polling, verdicts of sources in use are never evicted, and tests
assert that retained hidden pages make no requests.

The startup budgets follow the size CI measures for this tree plus 0.3%:
login 213,700 and Activity 326,000 bytes gzip. CI builds about 0.7 KB and
1 KB larger than a local build.
2026-10-26 17:40:07 +00:00
Zakk 64f537cafe perf(shell): render page switches as transitions and reuse resources
A new page renders as a transition. Resources pass between pages as the
same snapshot, completeness verdicts are kept for the sources in use,
unchanged widget layouts are not saved, and the nav marker stays put.
tools/perf.mjs measures the longest task of each switch.
2026-10-26 17:40:07 +00:00
Zakk ba1f77a163 fix(i18n): load the current language without waiting on idle ones
loadStage waited for the stage parts of every language the page had
loaded, so a failed part of a language no longer shown, such as zh-TW
after switching to English, failed the shown page's load. Only the shown
language's parts, plus English for a partial language, now decide the
result; the others still load alongside and their failure is dropped.
loadLanguage loads a language again when one of its parts up to the
reached stage is missing, so choosing that language retries the part.
2026-10-26 17:12:10 +00:00
Zakk 4e7c37462a fix(settings): clear pending work a hidden page cancels
A page kept under a hidden <Activity> runs its effect cleanups and keeps
its state. The connection test's cleanup aborted the request but left
`pending` set, and the wallpaper row's cleanup dropped the image being
prepared before `choose` could clear its flag, so both buttons stayed
pending after the page was shown again. The cleanups now clear the flag
as well; the request and pick generations still keep a late result from
writing back.
2026-10-26 17:12:10 +00:00
Zakk 59aa58e2c8 fix(ui): make flow records, the DNS filter and empty tabs readable
Flow records are cards on a phone and the rule wraps on desktop. The DNS
device filter has a label, the empty trace and query tabs say what they
are for, and the connections group count no longer truncates.
2026-10-26 16:49:12 +00:00
Zakk 66bcd4c8a4 fix(shell): lead a first run with a connect card and keep the panel collapsed
A first run without a backend starts with a connect card. The floating
panel starts collapsed; it overlays Activity and Overview, whose layout
stays as it is, and reserves a column on other pages. Hub pages are set
apart from page tabs and touch targets are larger.

The startup budgets follow the size CI measures for this tree plus 0.3%:
login 213,600 and Activity 325,300 bytes gzip. CI builds about 0.7 KB and
1 KB larger than a local build.
2026-10-26 16:49:12 +00:00
Zakk 2684c61488 perf(i18n): load each catalogue in stages with the code that shows it
The login page loads only the messages it shows; each later stage loads
with its code. Key families built at runtime are mapped to their stage
explicitly, and a test fails when a template key has no stage.

The startup budgets follow the size CI measures for this tree plus 0.3%:
login 213,600 and Activity 325,000 bytes gzip. CI builds about 0.7 KB and
1 KB larger than a local build.
2026-10-26 16:38:44 +00:00
Zakk b05593f086 fix(api): follow a caller's abort after garbage collection
Node's Request.clone() links the clone's signal to the original only
through a weak reference, so after a garbage collection an aborted read
or operation start kept waiting for its deadline. Reads now send the
original request, which has no body to protect, and the retry loop for
operation starts passes the caller's signal to send() explicitly.
2026-10-26 15:08:39 +00:00
Zakk c50fcac366 feat(nodes): paste several node links at once and test every listed node
The link field comes first, the batch list stays readable on a phone,
and one action tests every node in the list.

The startup budgets follow the size CI measures for this tree plus 0.3%:
login 240,300 and Activity 344,800 bytes gzip. CI builds about 0.7 KB and
1 KB larger than a local build.
2026-10-26 14:35:11 +00:00
Zakk fb540aed89 fix(ui): confirm destructive actions and show form errors at their fields
Suspend, clear and switching to direct or global mode now ask first,
like reload does. Form errors show under the field they belong to, and
a disabled submit says why.

The startup budgets follow the size CI measures for this tree plus 0.3%:
login 239,900 and Activity 344,300 bytes gzip. CI builds about 0.7 KB and
1 KB larger than a local build.
2026-10-26 14:24:13 +00:00
Zakk a611db090a fix(ui): name discarded drafts and translate interface terms
The discard dialog names the draft it drops instead of always saying
"this config". Interface terms that are not config keys or protocol
names are translated, and the rule save button says Save.
2026-10-26 14:24:13 +00: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