Commit Graph
1614 Commits
Author SHA1 Message Date
Zakk 4e6027dac4 chore(release): prepare 0.1.0-rc.8 (#708)
## Problem

main carries four merged changelog fragments and still declares
0.1.0-rc.7 in the manifest, the READMEs, the install recipes and the
packaging scripts, so the next tag would build and document the previous
version. The Alpine, Gentoo, Nix and OpenWrt recipes also treat the
pinned archive as GPL-3.0-only, which holds only for rc.7; the rc.8
archive is AGPL-3.0-only.

## How I fixed it

Ran `pnpm changelog:release 0.1.0-rc.8 2026-11-27`, which wrote the
dated section with PR numbers and removed the consumed fragments. Bumped
the declared version everywhere it is spelled: package.json, the three
READMEs, CONTRIBUTING, the three install guides, install/README, the
Alpine, Gentoo, Nix and OpenWrt recipes (including the ebuild filename
and its Manifest line) and the two packaging scripts. Updated the README
release summary to this version's 12 entries. The recipes now declare
AGPL-3.0-only unconditionally, so the rc.7 version guards and the
install/README paragraph about them are removed, and the ebuild's
Manifest entry carries its new size and digests. Published archive
checksums stay as they are until the release builds exist.

## Verified

`pnpm check` passes. Net lines: src +0/-0, unit 0, e2e 0, css 0. Not
verified: package builds on Alpine, Gentoo, OpenWrt and Nix.

---

- [x] I understand this change and answer for every line
- [x] This branch is based on the current main
- [x] I ran the repository's gates and recorded the results in Verified
- [x] Each commit is one coherent change
- [x] If behaviour changed, I updated the documentation
- [ ] If interface text changed, I updated `en.json` and every complete
language's catalogue
- [ ] If interface appearance changed, I attached light and dark
screenshots
- [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm
check:gen`
- [ ] I checked the boxes above without reading them
- [ ] I am an AI agent, and this content was submitted without human
review
v0.1.0-rc.8
2026-11-27 22:59:46 +11:00
Zakk 0ed10b68c7 ci(check): fix two flaky e2e tests and trim the nightly run (#705)
## Problem / 问题

A CI audit of the last ~200 Check runs (owner's report) found two more
intermittent e2e failures and a wasteful schedule:

- `e2e/dashboard.spec.ts:160` failed on WebKit on 11-08, 11-24 and
11-25. It measured the dashboard while the dnsAnswers and policyGroups
cards could still be titles only, and the level-column check passed on
the half-loaded page.
- `e2e/qiangguo.spec.ts:12` failed twice on main. It could scroll while
the startup frame was showing. `heldScroll.ts` then restored that offset
and undid the scripted scroll to the top, as designed.
- 25 of 26 nightly runs re-ran `check` and all nine e2e shards on a main
head its push had already checked, about 510 job minutes a week.

## How I fixed it / 解决方法

- The dashboard test waits for every card's content and for no loading
state before measuring.
- The Qiangguo test waits for the page's loading states to clear before
scrolling.
- On the schedule, `changes` and `ci-ok` are skipped, so only `nightly`
(Firefox) runs. `notify-nightly` treats a skipped `ci-ok` as not failed.
Push, PR and manual dispatch behave as before.

Assertions are unchanged. `failOnFlakyTests` stays on.

## Verified / 验证

- `pnpm format:check`, `lint`, `typecheck` and `test` exit 0.
- e2e in the CI image (`playwright:v1.63.0-noble`) with `CI=1
--retries=0`:
- dashboard: before, 1/200 at 2 workers and 6/80 at 4; after, 300/300 at
2 and at 4 workers.
- Qiangguo: before, failed 6/6 with the CI error when the page chunk is
held back past the first scroll; after, 600/600 at 2 and at 4 workers,
and 20/20 with the chunk delayed 1.5 s.
- actionlint 1.7.7 reports nothing. The scheduled path has not run on
GitHub yet.
2026-11-25 21:47:50 +11:00
Zakk 7fcffddadf test(e2e): wait for the page's own tab bar before measuring its width (#704)
## Problem / 问题

`e2e/tab-switch.spec.ts:93` fails about once in a hundred runs on
Chromium (main 8d81ddb68, run 45564616432, and the #702 and #703 runs)
with both widths reading 0.

## How I fixed it / 解决方法

The page's Skeleton draws an inert `.rp-tabbar` of its own. When
`.rp-tabbar` resolved to it just as the page replaced the Skeleton, the
measured element was already detached. The locator now matches
`.rp-tabbar:has([role=tab])`, the bar that holds the page's tabs, as the
test below it already does. The assertion is unchanged.

## Verified / 验证

- Before: `--repeat-each=100` failed 1 of 100 with the CI error.
- After: `--repeat-each=300` and `--repeat-each=300 --workers=4` pass
300 of 300 each.
- `pnpm format:check`, `lint` and `typecheck` pass.
2026-11-25 19:37:49 +11:00
Zakk 4c38cfdc5b feat(groups): edit a group's exit node and explain rejected refreshes (#703)
## Problem / 问题

After #702, doona can add and edit proxy chains, but two parts of honk's
chain support are still missing. A group's experimental `exit` node can
only be set in the configuration text, and the group document from the
API does not expose it. When a subscription refresh removes or
duplicates a node that a chain hop or group exit names, honk rejects the
update and keeps the old nodes, but doona shows only a generic failure.

## How I fixed it / 解决方法

Group exit:
- `readGroupEntries` reads `exit`, and `writeGroupEntry` writes it with
`quoteName` right after `final`, the same way as `default` and `final`.
It is part of the no-change comparison and the save-conflict retry
merge.
- The group editor has an "Exit node (Experimental)" select, offered
only when the engine is honk. It lists None plus nodes that can be a
later hop, reusing the `tunnelDialable` check from #702. Chains, groups,
direct, block, Hysteria2, TUIC, Juicity and AnyTLS are excluded.
- The running-configuration section of the group dialog shows the exit
when one is set.
- honk's four group exit diagnostic codes have localized messages.

Rejected refresh:
- When a provider's `last_error.code` is `publication_rejected` and
`details.diagnostic_code` is one of the seven chain or exit codes, the
subscription status explains that a proxy chain or group exit refers to
a node the update removed or duplicated, and that the previous nodes
stay in use.

The mock `office` group gains `exit: hk-02`, which moves the mock rule
lines down by one; the rule tests follow.

## Screenshots

| | |
|---|---|
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/exit-select-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/exit-select-zh-TW-dark-390.png)
|
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/exit-options-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/exit-options-zh-TW-dark-390.png)
|
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/sub-notice-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/sub-notice-zh-TW-dark-390.png)
|
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/sub-detail-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/31a26b9979ea409ca70b5dab27e07757/raw/sub-detail-zh-TW-dark-390.png)
|

The rejected refresh shots use an intercepted providers response,
because the mock has no such provider. All 40 variants are kept locally.

## Verified / 验证

- `pnpm typecheck`, `lint`, `check:i18n`, `format:check`, `check:gen`
and `build` all exit 0.
- `pnpm test` exits 0: 251 files, 4417 tests.
- Playwright on Chromium: 12 specs covering groups, policies, rules,
nodes and the builder, 273 tests, all pass.
- `check:size`: the Policies chunk is 21055 B gzip, up 213 B. The Nodes
route is 73134 B against a 76000 B budget.
- Not yet checked against a running honk: the exit write and the real
shape of `publication_rejected`, which honk documents in api.md but
which has not been observed live.
2026-11-25 19:06:44 +11:00
Zakk 8d81ddb689 feat(nodes): add, show and edit proxy chains (#702)
## Problem / 问题

After #701, doona reads proxy chains and keeps their references intact,
but it gives no way to see or build one. A chain row shows the raw
protocol `chain` and no hops. Adding or editing a chain means editing
the configuration text, because honk's `POST /nodes` only takes share
links.

## How I fixed it / 解决方法

Display:
- A chain row shows the protocol as "Proxy chain" (代理鏈 / 代理链).
- Its detail lists the hops from entry to exit, with each hop's protocol
and health, and marks a hop that is missing or ambiguous.
- UDP is shown as "No" with the reason when the hop protocols rule it
out. Otherwise it reads "depends on node settings", because the catalog
does not expose UDP flags.
- The node-level TCP connect test is hidden for chains, since honk
returns 422. Group latency no longer counts a chain member's
`no_node_address` row as a failure.

Editing:
- The add-node dialog has a "Proxy chain" mode with an ordered picker of
2 to 4 existing non-chain nodes. Hops can be added, removed and moved up
or down.
- Editing a chain reopens the same dialog. `appendChainEntry` and
`writeChainEntry` write the configuration text through source PUT.
- Before writing, the dialog checks hop count, self reference, direct,
block or chain hops, and the protocol position rules from honk's
`nodes.md` that the catalog can show. honk's diagnostics are shown for
everything else.
- Creating and editing chains is offered only when the engine is honk
and the main source is editable.

`writeNodeEntry` and `writeChainEntry` share one edit helper.
`SearchSelect` gains optional `error` and `action` props, so a hop's
controls sit beside its picker and its error spans the row. Other call
sites are unchanged.

Group `exit` editing, the rejected subscription refresh notice and the
manual pages follow in a stacked PR.

## Screenshots

| | |
|---|---|
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/node-list-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/node-list-zh-TW-dark-390.png)
|
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/chain-detail-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/chain-detail-zh-TW-dark-1280.png)
|
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/chain-dialog-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/chain-dialog-zh-TW-dark-390.png)
|
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/chain-dialog-error-en-light-1280.png)
|
![](https://gist.githubusercontent.com/Zakkaus/1e1f373d5d925683e7ddbf5e819ca774/raw/chain-dialog-error-zh-TW-dark-1280.png)
|

All 32 variants (390 and 1280, en and zh-TW, light and dark) are kept
locally and available on request.

## Verified / 验证

- `pnpm typecheck`, `lint` (0 warnings), `check:i18n`, `format:check`,
`check:gen` and `build` all exit 0.
- `pnpm test` exits 0: 251 files, 4405 tests.
- `check:size`:
- Nodes route is 73162 B gzip against a 76000 B budget, up from 72320 B.
  - The lazily loaded chain picker chunk is 812 B.
- Playwright `e2e/nodes.spec.ts` on chromium: 101 passed. The 6 other
specs that the new mock chain touched pass, but the full suite was not
rerun after the last change.
- A separate review ablated each key hunk, and every one is now caught
by a test.

Not verified:
- Writes against a live honk.
- Firefox and WebKit e2e.

Net shipped code is about 414 lines, over the 300-line feature budget.
The PR carries display, editing and the engine gate together; splitting
it is possible if wanted.

---

- [ ] I understand this change and answer for every line
- [x] This branch is based on the current main
- [x] I ran the repository's gates and recorded the results in Verified
- [x] Each commit is one coherent change
- [ ] If behaviour changed, I updated the documentation
- [x] If interface text changed, I updated `en.json` and every complete
language's catalogue
- [x] If interface appearance changed, I attached light and dark
screenshots
- [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm
check:gen`
- [ ] I checked the boxes above without reading them
- [ ] I am an AI agent, and this content was submitted without human
review
2026-11-25 17:58:58 +11:00
Zakk 6707673a9e feat(nodes): read proxy chains and keep their references intact (#701)
## Problem / 问题

honk main supports proxy chains (`name: hopA -> 'hop b' -> hopC`, honk
#510–#512) and a group `exit` field (#511). doona skipped chain lines
when reading the configuration. That left three ways to break a working
config. Renaming a node did not update the chain hops or the `exit`
fields that named it, so honk rejected the next reload. A chain row
offered Delete, which honk refuses with `404 capability_not_supported`.
And a node that a chain or exit still named could be deleted.

## How I fixed it / 解决方法

`readChainEntries` finds chain entries with the existing token scan,
then slices each hop from the raw text between `->` arrows and unquotes
it, the same split honk uses (`honk-config`
`parser/entries.rs:165-176`). Splitting on tokens instead would break
unquoted hops such as `hk: east`.

`nameReferences` now covers chain hops and `exit`, so a rename rewrites
them in the same write. A reference in another source still blocks the
rename.

Chains leave the DELETE-backed list. Deleting a chain removes its line
through source PUT, and only for a chain in the editable main source.

Deleting a node or a chain that a group, chain or DNS upstream still
names is refused, singly or in a batch, and the referrer is named. A DNS
upstream is shown as "DNS upstream <key>". Chain names count as taken in
the rename check.

This is the first half of the proxy-chain plan. Chain display, the chain
editor, the group `exit` editor and the rejected-refresh notice follow
in a second PR with screenshots.

## Verified / 验证

On this branch, with Node from the repo's toolchain:

- `pnpm typecheck`, `pnpm lint`, `pnpm check:i18n`, `pnpm format:check`
and `pnpm check:gen` all exit 0.
- `pnpm test` exits 0: 251 files, 4359 tests.
- Ten key hunks were reverted one at a time, and the unit tests caught
every one.

Not verified:
- Playwright e2e was not run locally.
- The writes were not checked against a live honk. A live check of
rename, chain delete and exit writes is planned before the second PR.
- The doona manual in repo-for-linux is not updated yet. It goes with
the second PR.

---

- [ ] I understand this change and answer for every line
- [x] This branch is based on the current main
- [x] I ran the repository's gates and recorded the results in Verified
- [x] Each commit is one coherent change
- [ ] If behaviour changed, I updated the documentation
- [x] If interface text changed, I updated `en.json` and every complete
language's catalogue
- [ ] If interface appearance changed, I attached light and dark
screenshots
- [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm
check:gen`
- [ ] I checked the boxes above without reading them
- [ ] I am an AI agent, and this content was submitted without human
review
2026-11-25 16:01:30 +11:00
Zakk 7bf1cadc67 docs(readme): name dae as a supported backend (#700) 2026-11-25 13:12:10 +11:00
Zakk edbcf9c2e6 chore(license): relicense doona under AGPL-3.0-only (#699)
## Problem / 问题

Under GPL-3.0, a service that runs a modified doona panel for its
customers does not have to publish its changes, because it never
distributes the program.

在 GPL-3.0 下,把修改过的 doona 面板架成服务给客户用,因为没有散布程序,不必公开修改。

## How I fixed it / 解决方法

doona is licensed AGPL-3.0-only. LICENSE, LICENSES/, REUSE.toml,
package.json, the READMEs, NOTICE and the Alpine, Gentoo, nfpm, Nix and
OpenWrt metadata say so; the About box reads the licence from
package.json and already links the source repository. Lines still
contributed by eries (14 files) and qiuzi (4 files) stay GPL-3.0-only,
combined under GPL-3.0 section 13, and REUSE.toml records them. The
pinned rc.7 archive keeps its original licence in the packaging.

doona 改用 AGPL-3.0-only。eries 与 qiuzi 留下的代码仍按 GPL-3.0-only,依 GPL-3.0 第 13
条合并;已发布的 rc.7 源码包保持原授权。

## Verified / 验证

- `pnpm check`, coverage (4,336 tests), build, size, and Chromium/WebKit
E2E (2,356 passed, 35 skipped, in the Playwright container).
- LICENSE matches the gnu.org AGPL-3.0 text; LICENSES/AGPL-3.0-only.txt
matches SPDX license-list-data v3.28.0 byte for byte.
- Notice staging and the Alpine, Gentoo and OpenWrt metadata checks.
- `reuse lint` reports only the existing lite gaps (230 licence, 218
copyright entries), unchanged by this branch.
- Not verified: package builds on Alpine, Gentoo, OpenWrt and Nix.

---

- [x] I understand this change and answer for every line
- [x] This branch is based on the current main
- [x] I ran the repository's gates and recorded the results in Verified
- [x] Each commit is one coherent change
- [x] If behaviour changed, I updated the documentation
- [ ] If interface text changed, I updated `en.json` and every complete
language's catalogue
- [ ] If interface appearance changed, I attached light and dark
screenshots
- [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm
check:gen`
- [ ] I checked the boxes above without reading them
- [ ] I am an AI agent, and this content was submitted without human
review
2026-11-25 12:04:39 +11:00
Zakk 659f01f8e6 build(packaging): pin rc.7 source archive hashes (#698)
## Problem / 问题

The rc.7 prepare commit left the Alpine, Gentoo, Nix and OpenWrt recipes
on rc.6 checksums until the archives were published, so none of them can
fetch the v0.1.0-rc.7 release as committed.

## How I fixed it / 解决方法

From the published program, fonts and precompressed archives: SHA-512 in
the APKBUILD, size, BLAKE2B and SHA-512 DIST lines in the Gentoo
Manifest (plus the EBUILD line, since the rc.7 ebuild is 1573 bytes, not
the 1431 recorded), SRI SHA-256 for both Nix fetches, and SHA-256 for
the three OpenWrt downloads, as in #667.

## Verified / 验证

All 27 release files downloaded from v0.1.0-rc.7 pass `sha256sum -c
SHA256SUMS`; every value was computed from those bytes, and the three
OpenWrt values match `SHA256SUMS`. Not run: `abuild checksum`, `ebuild
manifest`, `nix-prefetch-url` and an OpenWrt build.

---

- [x] I understand this change and answer for every line
- [x] This branch is based on the current main
- [x] I ran the repository's gates and recorded the results in Verified
- [x] Each commit is one coherent change
- [ ] If behaviour changed, I updated the documentation
- [ ] If interface text changed, I updated `en.json` and every complete
language's catalogue
- [ ] If interface appearance changed, I attached light and dark
screenshots
- [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm
check:gen`
- [ ] I checked the boxes above without reading them
- [ ] I am an AI agent, and this content was submitted without human
review

Check only true claims. An applicable unchecked box or a false claim
closes the pull request.

只勾选属实的选项。适用的选项没有勾选,或勾选的内容不属实,PR 会被关闭。
2026-11-24 22:49:39 +11:00
Zakk 4e8d504072 chore(release): prepare 0.1.0-rc.7 (#697)
## Problem

main carries seven merged changelog fragments and still declares
0.1.0-rc.6 in the manifest, the READMEs, the install recipes and the
packaging scripts, so the next tag would build and document the previous
version.

## How I fixed it

Ran `pnpm changelog:release 0.1.0-rc.7 2026-11-24`, which wrote the
dated section with PR numbers and removed the consumed fragments. Bumped
the declared version everywhere it is spelled: package.json, the three
READMEs, CONTRIBUTING, the three install guides, install/README, the
Alpine, Gentoo, Nix and OpenWrt recipes (including the ebuild filename
and its Manifest line) and the two packaging scripts. Updated the README
release summary to this version's 21 entries. Published archive
checksums stay as they are until the release builds exist.

## Verified

`pnpm check` passes. Net lines: src +0/-0, unit 0, e2e 0, css 0.
v0.1.0-rc.7
2026-11-24 22:07:10 +11:00
Zakk c7f29e33fa fix(templates): stop sending geosite:google-cn direct (#695)
## Problem

Every routing template sends `geosite:google-cn` directly, above the
YouTube and Google rules. Loyalsoldier's `google-cn` list holds
`www.gstatic.com` and `fonts.gstatic.com`, which serve the YouTube TV
interface icons, wordmark and YTSans font (`www.gstatic.com/ytlr/...`).
From mainland China those hosts are unreachable directly, so YouTube TV
plays video and thumbnails but shows blank icons.

## Fix

The templates keep `geosite:category-games@cn` direct and drop
`geosite:google-cn`. Template detection maps the former line to the new
one, so routing written by an earlier template is still recognised as
that template. The template help texts in en, zh-CN and zh-TW no longer
mention Google China services.

## Verified

- Loaded `https://www.youtube.com/tv` in headless Chrome with a Tizen TV
user agent and listed the requested hosts: interface images and fonts
come from `www.gstatic.com/ytlr/` and `fonts.gstatic.com`.
- `pnpm typecheck`, `pnpm lint`, `pnpm check:i18n`, `pnpm format:check`,
`pnpm check:gen`, `pnpm exec vitest run` (4336 passed). The legacy
routing detection tests pass with the old `google-cn` line.
2026-11-22 21:54:40 +11:00
Zakk 2f2964c35d test(palettes): wait for the Qiangguo hero before reading the top bar
The palette's sheet loads after the page, so reading the bar's background once could see it before the hero applied and failed on main at 390px. The check now polls, as the scroll-back check at the end already does.
2026-11-18 15:26:03 +11:00
Zakk 6d59d639e2 feat(connections): group the detail panel and name a node's subscription
The connection detail panel listed about sixteen fields in one column,
each label above its value, many of them empty or unknown. It now groups
them into route, connection, traffic and source sections with the route
first, puts each value beside its label, leaves out fields a connection
lacks, and shows each traffic total with its rate. DNS and flow detail
panels use the same list.

A row under the chain names the subscription the node came from, read
from the nodes query the page already holds, and the connection filter
matches it. The demo's auto group flows now reach the subscription node
it selects.
2026-11-18 05:23:34 +11:00
Zakk b519c3680b fix(activity): set the status card's state as its title
The running card's state used the label role beside the other control cards' 16/700 titles, so its glyphs sat 1.2px off their title line in WebKit. It now takes the title role like the mode and global cards.
2026-11-18 02:18:08 +11:00
Zakk 74e8f0d9f9 fix(activity): hold a card's height only until it is seen
A dashboard card's preview held its Skeleton height every time it left
the screen, so a loaded card shorter than its Skeleton (the ranking at
768px) grew when scrolled away and no longer matched the editor. The
hold now ends once the card has been on screen.

The setup card's caption takes the card title role the control card
labels now use.

Mode tests that click the segmented control run at 1440px, where the
mode card shows it; the panel tests read the card's picker at 1280px.
2026-11-18 02:18:08 +11:00
Zakk 998d5da545 fix(charts): size area charts from one token and tip a table
Area charts take their height from --rp-chart-h, and stacked plots from
--rp-chart-stacked-h, about 80px a plot; callers no longer pass a height.
A plot labels at most two values. The tip is a table of the time over
each series' current value, peak and average, and follows a scroll.
Chart gaps come from the spacing tokens.

Chart card skeleton heights derive from the same tokens, and a card
held off screen keeps its skeleton's height, so the cards below it no
longer move when it loads. A card's width for its statistics comes from
the packed data-wide mark alone.
2026-11-18 02:18:08 +11:00
Zakk 2a367543d3 fix(charts): stack traffic plots and set dashboard text in four roles
Download and upload differ by about ten times, so upload was a flat line
at the bottom of a shared scale. Traffic now draws two stacked plots on
one time axis, each with its own scale; the legend shows only current
values, the average is a dashed line and the peak a dot, and the shared
tooltip lists both. Dashboard card text uses four type roles (title,
primary value, label, meta) at weights 400 and 700.
2026-11-18 02:18:08 +11:00
Zakk f9d0e5c87d fix(ui): align card text, controls and charts on shared lines
Cards, tables, dialogs and charts start their text at the card text
inset and end trailing actions at the right inset. Dashboard rows sit on
the thirds column lines, row-1 control cards stay on one line by
compacting from their own width, and the area chart plots from the text
inset with its labels inside and its tip over the page. Spacing and line
heights come from the tokens. CONTRIBUTING records the rules and
e2e/inline-align.spec.ts checks them on every route.
2026-11-18 02:18:08 +11:00
Zakk a103cc9d6c chore(mock): report honk v0.1.0-beta.6
The demo and e2e mock backend still reported beta.5, a release behind honk's latest.
2026-11-18 01:16:19 +11:00
Zakk db2abf1542 fix(nodes): accept quoted subscription names
The add and rename dialogs accepted only bare names, so a Chinese
subscription name could not be added although the engine reads quoted
tags. Accept any name the configuration can quote, without control
characters and up to 64 characters, and show the reason on the name
field. The vendored contract drops the ProviderCreate.name pattern.
2026-11-17 23:27:28 +11:00
Zakk 3b7845b076 chore(github): close bug reports that carry no log
A bug report whose log field is a placeholder or under 40 characters, with no screenshot attached, now fails the template check, so it is labelled, closed, and reopened once a log or screenshot is added. The form says where to find the log instead of inviting "none".
2026-11-13 20:21:57 +11:00
dependabot[bot] c942c87312 build(deps): bump pnpm/action-setup from 6.1.0 to 6.1.1
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/ea17c68df8912ef543352723c149a84f56e3d413...73e46992e05b19abd31f2f3c20e0e7370d762115)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.1.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-12 13:30:04 +11:00
dependabot[bot] 55cd030829 build(deps): bump softprops/action-gh-release from 3.0.3 to 3.0.4
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/efb35369e0ad2afab669f228072c1b0d510eae64...8a0cd651e5b2365bd640854a3fa5dfc70e4875f3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-12 13:29:39 +11:00
Zakk dcfa505700 feat(settings): schedule geodata updates at a daily hour
honk reports the geodata update schedule as a cron expression and defaults to daily at 03:00. The settings page only knew the interval in hours, so it showed a nominal 24 hours, and picking an interval silently replaced the cron schedule.

A schedule of the form '0 H * * *' shows as an hour select. Any other expression shows read-only with a button that switches to daily. An interval schedule keeps its select and can switch to daily and back. An engine without the cron field gets the page it had.
2026-11-12 01:51:42 +11:00
Zakk 9dcb948976 fix(overview): explain on-demand flow recording and an unstated restart setting (#681)
## Problem

Two limits say what is off and nothing else, so a reader cannot act on
either.

The overview's flows row reads "Flows are recorded only while viewed"
and stops there. It does not say that recording stops when the last
client leaves, that there is therefore no earlier history, or how to
record without a client. Group members have been asking what the notice
means.

A write refused for a restart-only setting names the setting the same
way whether the user changed it or not. honk compares a reload candidate
against the running configuration, and before 0.1.0-beta.5 it compared
against a value it had downgraded at startup, so on a host without
NFQUEUE every write is refused over `global.nfqueue_enable`, which the
configuration never mentions. The message then reports a change nobody
made and offers nothing to do.

## How I fixed it

Gave the two flow reasons their own help text in `reasonHelp`, as every
other reason already has, so the row carries an explanation instead of
only a headline. A row shows its help or its link but never both, so the
Settings link moved into the help, where the feature's requirements link
already goes.

For the refusal, a restart-required setting that none of the sent files
state cannot be an edit of the draft: honk reports the write's own
source for these diagnostics and never where the setting is written.
Both the configuration page toast and the shared refusal panel then say
so and name the way out, stating the value and restarting honk once,
which works on any honk version.

## Verified

`pnpm check`, `pnpm build` and `pnpm check:size` pass; the size budgets
are unchanged apart from the catalogue (`locale` 25440 of 27000 bytes).
`pnpm exec playwright test e2e/overview.spec.ts --project=chromium`
passes, 18 tests: the existing flows row assertions still hold. New unit
cases cover the help links with and without the runtime switch, and a
refusal naming a setting the mock configuration does not contain.

Light and dark screenshots, before and after, are in the comments.

Net lines: src +37/-11, unit +30/-3, locales +12/-0, e2e 0, css 0.
2026-11-10 21:26:55 +11:00
Zakk 4c1f6f3fc1 chore(release): prepare 0.1.0-rc.6
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
v0.1.0-rc.6
2026-11-09 03:44:15 +11:00
Zakk 15a3c2c5af feat(policies): recommend score and name the load-balance cost 2026-11-09 03:29:57 +11:00
Zakk 308cfd62cf feat(rules): add a MAC address condition
mac(...) becomes a shared routing condition kind, offered next to the source IP in the standard rule editor. Lite drops its private mac entry and uses the shared path.
2026-11-08 19:08:33 +11:00
Zakk 52bb1a6d0c feat(regions): match every country's flag
Every country in the flag list is now a region, not only the 40 with text aliases. A region with no alias is matched by its flag alone, since codes such as AS, AM or PM would match ordinary words in a node name. The group dialog lists only the regions that have nodes and the ones already selected, and the lite pickers use the same list.

Fourteen more regions (Kazakhstan, Austria, Belgium, Luxembourg, Czechia, Romania, Iceland, Chile, Colombia, Saudi Arabia, Pakistan, Nigeria, Egypt, Cambodia) also match by name, and their bare code matches only in capitals. Earlier filter lines stay recognised and are not rewritten.
2026-11-07 23:55:38 +11:00
Zakk a81fa10103 feat(regions): match nodes named by flag emoji
A region's flag is now one more alias of that region, so a node named only by its flag, such as 🇭🇰-家宽-倍率, is detected and matched by the region filters in the standard app, lite and the templates. Earlier filter lines stay recognised as the same region and are not rewritten.
2026-11-07 23:55:38 +11:00
Zakk 521c62fee0 fix(policies): say why probed members are unknown
A group latency test only counted unknown members, so the toast could not
tell a spent 30-second budget from a check URL that resolved to no address.
Count each unknown member under the error of the row that decided its
state: timed out, no address resolved, cancelled, or other.
2026-11-07 23:55:23 +11:00
Zakk 8a4c2c8a44 ci(size): report the size budgets on every pull request
check:size --json writes each budget's worst entry and its largest
parts. The check job keeps that file as the size-report artifact on
every run, main's included, and writes the table to the run summary.

report.yml runs after Check from the default branch's code, reads the
artifact, compares it with main's measurement for the pull request's
base commit (else the newest one main has, labelled as such) and keeps
one comment per pull request up to date. CONTRIBUTING.md now says the
limits are fixed ceilings and raising one is a separate decision.
2026-11-04 23:15:27 +00:00
Zakk 5364ef44fb chore(size): set fixed size limits with headroom
Each limit is a round ceiling about 5% above the CI measurement after the two size commits before it, so a page change no longer needs a budget commit. Passing a limit still fails the check.

The mock limit rises from 38000: the demo's activation compiles group filters synchronously, so the filter compiler and the regex converter that left the startup bundle now count towards the mock chunk instead (41797 bytes gzip).
2026-11-04 23:15:27 +00:00
Zakk 4ef14859e8 perf(appearance): load non-default palettes on demand
Every palette family but Rose Pine now loads its stylesheet the way Glass
and Halloween already do: the first-paint script links a stored palette's
sheet before the main stylesheet, and a picked palette applies once its
sheet has loaded. paletteSheets.ts holds the seven sheets' URLs and links
them through paletteSheet.ts; useAppearance.ts imports it on demand, so
neither enters the startup bundle. vite.config.ts derives the stamped list
from the palette list, so every family but the default's is covered.

The sheets land before every other stylesheet, as they sat first in
theme.css before; only Rose Pine's :root defaults now follow them, and
each family's blocks outrank those, so every palette resolves as before.

E2e specs that switch palettes by writing the root's attributes link the
sheets first, and a new spec checks a stored palette's tokens on the
first frame and that the default palette loads none of the sheets.
2026-11-04 23:15:27 +00:00
Zakk be5e922460 perf(policies): keep the regex converter out of startup
draftMembers compiled group filters from shared/groupText.ts, which the
nodes view imports for groupOwners, so groupFilters.ts and the Rust regex
converter rode into the Activity startup bundle. Only the group dialog
lists draft members, so the function moves to groupIncludes.ts beside the
dialog's other filter helpers, and both modules load with the Policies
page. Nothing else changes: filters still compile synchronously.
2026-11-04 23:15:27 +00:00
Zakk 568f266cb7 chore(size): budget the subscription failure details
The failure texts and their mapping add 44 and 331 bytes gzip to the login and Activity startup chunks in CI (216051 and 330556 bytes).
2026-11-04 22:01:53 +00:00
Zakk 5435a5c70c fix(nodes): draw provider card skeletons at the card height
The meta row now takes a quiet button's height, so a provider card is 228 pixels tall and the first-load Skeletons drew 4 pixels short.
2026-11-04 22:01:53 +00:00
Zakk 5b1c7d7e30 fix(nodes): say how a subscription download failed 2026-11-04 22:01:53 +00:00
Zakk 171baa1f7a docs(contract): describe fetch_failed details on a provider error 2026-11-04 22:01:53 +00:00
Zakk 46e153cf40 fix(rules): disable template options until a routing mode is chosen
The ad, QUIC and NetworkManager switches are written together with a
mode. With custom routing and no mode picked, Apply has nothing to
write, so toggling a switch changed nothing it could use.

Disable the switches while no mode is selected and say why beside them.
Picking a mode, or routing that already matches one, behaves as before.
2026-11-03 17:15:25 +11:00
Zakk 58a4eb56be test(e2e): give the DNS cache card time for its first load
On a busy runner the first DNS page load took 8.7 s, past the default 5 s wait, so the 4-record case failed once before passing on retry.
2026-11-03 16:56:12 +11:00
Zakk 8d47847b97 chore(size): budget the remembered available-only switch
Its storage key adds 15 and 13 bytes gzip to the login and Activity startup chunks in CI (216007 and 330225 bytes).
2026-11-03 16:56:12 +11:00
Zakk 480a801593 fix(policies): remember the show-available-only switch
The switch on a policy group's node grid started off on every load. Keep it in localStorage as one choice for all groups, and fall back to off when storage is unavailable.
2026-11-03 16:56:12 +11:00
Zakk 0421c5d815 build(packaging): pin rc.5 source archive hashes 2026-11-03 03:50:24 +11:00
Zakk 6102778700 chore(size): budget the rc.5 version strings
The new version strings in the login and Activity startup chunks gzip 12 and 1 bytes larger in CI (215992 and 330212 bytes).
v0.1.0-rc.5
2026-11-02 15:44:49 +00:00
Zakk c786c8ac80 fix(mock): report honk v0.1.0-beta.5 in the demo
honk v0.1.0-beta.5 is the release that will embed this doona.
2026-11-02 15:44:49 +00:00
Zakk ee125fa29f chore(release): prepare 0.1.0-rc.5
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-11-02 15:44:49 +00:00
Zakk 2afbf15242 test(e2e): wait for the interval jump dialog before asserting focus
The deep link opens the dialog only after the providers and the config have loaded. On a busy runner that took longer than the default 5 s wait, so the focus assertion ran before the dialog existed.
2026-11-02 13:59:55 +00:00
Zakk 3ea47b0f0c docs(readme): load the screenshots from daeuniverse.org
The documentation build in daeuniverse/repo-for-linux renders the screenshots from the released doona and publishes them under daeuniverse.org/doona/screenshots/, next to the manual's images. tools/screenshots.mjs is unchanged since v0.1.0-rc.4, so every file the READMEs and the theme pages name is rendered there.
2026-11-02 12:56:13 +00:00
Zakk 82297ae06c docs(readme): point the manual links at daeuniverse.org
Manual links in the READMEs, docs/ and CONTRIBUTING.md use the new
addresses, and the contributing notes name daeuniverse/repo-for-linux as
the manual's home. Two stale heading-slug anchors (development, appearance)
now use the explicit anchors the manual publishes. The READMEs and the
install page offer the daeuniverse package repository first, with the
release archives as the alternative.
2026-11-02 12:56:13 +00:00