Commit Graph
154 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
2026-11-27 22:59:46 +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 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.
2026-11-24 22:07:10 +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.
2026-11-09 03:44:15 +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 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 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 deff9a44dd chore(release): retire the honk attachment step
honk publishes its own releases with doona embedded, so doona releases stopped attaching honk builds after rc.1. Remove tools/fetch-honk.mjs and its tests, which still expected debug.* tags, the old asset names and the Glassyiris/honk repository; the release procedure now ends with linking the matching honk release, and the install guide sends readers to honk's releases.
2026-10-30 15:57:56 +00:00
Zakk 58dfe2e2d1 docs(screenshots): add the Halloween palette to the palette sheet 2026-10-30 14:10:58 +00:00
Zakk d9d4200a87 chore(release): prepare 0.1.0-rc.4
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-10-30 13:42:21 +00:00
Zakk 4c3abc3866 feat(palettes): add a Halloween palette and logo
Add a Halloween palette under Other: pumpkin orange on warm parchment by
day and on a deep purple night after dark, with candle yellow and a
sickly green among the chart colours. Like Qiangguo it rewords running,
unavailable, degraded, light and dark, and draws faint card art: a
jack-o'-lantern, bats, a black cat and a spider web, hand-drawn SVGs at
a tenth of their opacity so corner text keeps 4.5:1. While it is on, the
duck in the top bar, startup frame, sign-in page and About wears a
witch's hat, swapped in by the palette stylesheet with CSS content.

The stylesheet, its inline art and the logo load only when the palette
is chosen, on the path Glass already used: paletteSheet.ts now links a
family's own stylesheet for both, the first-paint script links a stored
one, and useAppearance retries a failed load.

Raise startupActivity from 326050 to 326250 bytes gzip. The palette
entry, its five core catalogue keys and the shared on-demand loader put
startup at 326220 on the current main; the palette CSS stays out of
startupCss.
2026-10-30 13:13:47 +00:00
Zakk f3169ce060 chore(demo): give the standard and lite switches the same size
The standard switch used 12px text and 21px segments while the lite one used 13px text beside a 32px close button. Both now use 13px text, 32px segments and a 32px close button, 144 by 36 px in all.
2026-10-29 03:30:38 +00:00
Zakk fc5c996281 chore(demo): replace the demo badge with a standard and lite switch 2026-10-29 00:49:58 +00:00
Zakk 00aeb4be5f chore(release): prepare 0.1.0-rc.3
Update release versions and fold the merged changelog fragments. Leave published archive checksums for the post-release update.
2026-10-28 08:17:41 +00:00
Zakk fcf3f9c337 chore: remove unused code, messages and export surfaces
Remove the remaining dead lite helper and icon, 26 unused keys from each lite catalogue, and verified unconsumed exports. Keep live implementations and skip findings already addressed by round one.
2026-10-28 06:58:10 +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 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 3d1e3ae345 fix(screenshots): keep the notices toast hovered on Activity 2026-10-27 03:27:24 +00:00
Zakk 5a7cb96757 docs(screenshots): capture the group editor 2026-10-27 03:27:24 +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 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 2e477c0665 ci(release): package doona lite beside the standard edition 2026-10-27 01:48:59 +00:00
Zakk 223a4ff1b2 test: name e2e tests for their behaviour and scan the catalogue once
Drops the rc1 prefixes and the per-locale stage scan with its timeout comment, and corrects the kept-pages cost comment.
2026-10-27 01:41:42 +00:00
Zakk 3e3e329f8c refactor(i18n): share the stage list between the loader and the build
Drop the exports nothing outside the loader imports.
2026-10-27 01:41:42 +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 a5828d9d99 chore(tools): find the node table by its rows
The nodes page used to show the sources table first, so the perf tool took the second table. It now shows only the node table, so the three node scenarios timed out waiting for a table that no longer exists. They now pick the table that holds node rows.
2026-10-26 18:57:37 +00:00
Zakk 78e6724ee8 chore(tools): measure kept, rebuilt and first page switches
The page-switch scenario opened every page twice in a row. With five pages
kept, every second visit was a rebuild of a dropped page, so the hidden to
shown path of a kept page was never measured. It now opens each page once,
returns to nodes, policies and activity after they were dropped, then
returns to them again while kept, and reports each kind on its own rows
with click-to-ready time, the longest task and scripting and layout time.

ready() waited for any visible heading and the route's content selector,
which the previous page could still satisfy while the switch was pending
in a transition. It now first waits for the side navigation to mark the
address's page as current, which changes in the same commit that shows it.
2026-10-26 17:55:44 +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 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 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 cd8e380e85 fix(tools): fetch honk's -full builds and skip its lean ones
honk now names its full builds with a -full suffix and also publishes clash-api and native-api builds without the UI. fetch-honk expected the old unsuffixed names and rejected the lean builds as unrecognised variants, so the next honk Debug release would fail phase 2. The install docs name the new spelling.
2026-10-24 17:11:37 +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
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 8f540c9b1a fix(release): let fetch-honk check another doona repository 2026-10-09 03:56:35 +11:00
Zakk b04cae9623 test(ci): separate fixture sharding checks
Keep each real Playwright listing within its own test deadline instead of charging four synchronous CLI startups to one five-second case.
2026-10-08 05:03:21 +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 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 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 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 ea069068c6 docs(screenshots): refresh for 0.1.0-beta.15 (#509)
## Problem

The theme guide still describes three Glass palettes, and the screenshot
generator does not capture the General tab or the sign-in wallpaper.
doona-docs still publishes screenshots from a beta.14 checkout.

## How I fixed it

Document both Settings tabs and all four Glass palettes in three
languages. Capture General settings and the Glass sign-in page, and
capture the full Appearance page so all four Glass choices are visible.
Scroll the phone palette menu to show its Appearance settings row. Keep
the existing workflow: screenshots are generated and published by
doona-docs, and neither repository stores image binaries on main. The
documentation follow-up will update its build pin after this merges. No
application code or control dimensions change. Net lines: src 0, unit 0,
e2e 0, CSS 0, docs +21, screenshot tooling +15.

## Verified

Built beta.15 and ran tools/screenshots.mjs: 145 images, compared with
all 130 images in the published gh-pages commit 536a00d6; 15 images are
new. Reviewed the three-language comparisons, including phone captures
at 390px and page captures at 1280px. pnpm check passed, including 3,601
unit tests; pnpm build passed. After adjusting the Appearance crop and
phone menu scroll, the six affected captures, ESLint and Prettier
passed. The docs site build, link checks and 52 tests passed with the
generated images. The live demo passed its beta.15 About, Activity mock
data, Events, CNAME and console-error checks.
2026-10-06 09:03:08 +11:00
Zakk 6e45f3ee64 chore(release): prepare 0.1.0-beta.15 2026-10-06 05:20:49 +11:00
Zakk 69c671aba3 chore(screenshots): capture the four Glass palettes and the Appearance tab 2026-10-05 22:14:32 +11:00
Zakk 13959afdd8 fix(session): keep a password sign-in across tabs and restarts
The password session lived in sessionStorage, so closing the tab or the
browser signed the user out and every new tab asked for the password
again. honk already bounds the session (12 hours, held in memory) and
doona drops it on the backend's 401, so the tab gave no extra safety.

Keep it in localStorage under the same key and shape, still bound to the
profile and endpoint. Every tab now shares it: a sign-out or an ended
session clears it for all of them through the existing storage event.
Deleting a profile drops a session left for it. A copy left in
sessionStorage from before is ignored, so a tab open across the update
signs in once more and an old copy can never return after a sign-out.
2026-10-05 22:09:13 +11:00
Zakk cd52bc6e34 perf(ui): load Glass only for Glass palettes
Glass's materials and tokens (about 4 KB gzip of startup CSS) and the wallpaper
module shipped at startup for every palette, though only the Glass palettes use
them. The stylesheet is now its own asset and the wallpaper code its own chunk,
src/shell/glass.ts.

For a stored Glass palette the first-paint script writes the stylesheet link
(its hashed name filled in by the build), so it blocks the first paint like the
main stylesheet and no frame shows the non-Glass base; the wallpaper may arrive
after the first render, as before. A picked Glass palette applies only once the
stylesheet has loaded, so its look changes in one step. The palette menus and
the Settings picker preload it on intent; a stale build reloads the page as
elsewhere.

The link goes before every other stylesheet, where theme.css used to import it,
so it keeps losing the same cascade ties to later rules and to page
stylesheets; screenshots of all four Glass palettes and Rose Pine on Activity,
Settings and Rules match the previous build.
2026-10-05 19:45:27 +11:00
Zakk 570bf9f9b6 perf(rules): load the trace tab when it is pointed at
The trace tab's number fields pull in React Aria's NumberField stack,
about 8 KB gzip of the rules page's growth since beta.14. The tab now
lives in its own module, loaded when its tab is pointed at, focused or
opened, with its form card's Skeleton for a direct link. The form state
stays in the page, so what was typed survives a tab switch.

Rollup keys a page that shares code with its own lazy part by chunk file
instead of source, so check:size finds such a page through the part and
counts the part as what it adds to the page, under its own routePart
budget. Opening the trace tab directly costs about 2 KB more than before
(two gzip streams instead of one); the rules page alone is 13 KB lighter.
2026-10-05 19:05:37 +11:00
Zakk d634c4e702 feat(ui): add Glass without the lens and name the lens palette Liquid Glass
The lens palette refracts only in Chromium; Firefox and Safari already drew it with blur and fill. That look is now a palette of its own, Glass, offered in every browser, and the lens palette is Liquid Glass. Glass never sets data-lens or loads the lens filters, and it shares Liquid Glass's rules through one selector instead of a copy. The palette menus describe Liquid Glass as needing a Chromium browser, so the note shows wherever a palette is picked.
2026-10-05 17:34:46 +11:00
Zakk b81f0ab632 chore(ci): balance the e2e shards by test
Playwright already splits by test (fullyParallel), but it cuts the ordered list of test groups into slices of equal test count, so the shards that hold the slow dashboard, mobile and nodes tests ran up to 90 s longer than the mean.

tools/e2e-shards.mjs turns the recorded time of each file in tools/e2e-durations.json into PWTEST_SHARD_WEIGHTS, so each contiguous slice costs about the same. It cuts on group borders: tools/e2e-groups-reporter.mjs lists the groups in Playwright's own order (worker hash, serial and beforeAll groups). A file that is not recorded is priced by its chromium entry, then by its project, so added, renamed and deleted tests need no list edits. The shard jobs now write their JSON report into test-results, and `node tools/e2e-shards.mjs record` rebuilds the durations from those reports.

If the weights cannot be computed the shard logs a warning and runs Playwright's default split. A fixture project with two projects, a beforeAll file and a worker-option override checks that Playwright still honours the variable and the group order, and that check stays strict. The shard count, workers, projects, retries and failOnFlakyTests are unchanged.
2026-10-05 16:32:43 +11:00
Zakk e9cca5bd1e test(ui): cover the Glass palettes and document them
e2e/glass.spec.ts checks the four palettes in the menu and the Settings switch gone, the migration of the stored material, each material's chrome, card and menu filters, Float's inset top bar, the lens filters on Chromium for the floating panel and menus, solid surfaces under Reduce Transparency and Increase Contrast for all four, and the rounded iframe case. tools/stamp.test.mjs covers the migration at first paint, and the contrast spec lists the new palettes. The themes pages describe the four materials in each language.
2026-10-05 15:11:19 +11:00
Zakk 98d5ac9b2e feat(ui): offer Glass, Frosted, Float and Tinted as palettes
The Glass material switch in Settings becomes four palettes in the palette menu. Glass follows Apple's Liquid Glass with the lens, clear cards and a bright wallpaper. Frosted follows Microsoft's Acrylic: a 24 to 30px blur, a luminosity step, a 0.6 tint and noise on every surface. Float, after blowfish.page, detaches the top bar into an inset rounded layer and gives every surface one even 24px blur under a 60% fill with a soft border. Tinted follows Microsoft's Mica: nearly opaque surfaces with no blur. Text takes Apple's label ladder, with secondary text and status tones raised where they fell under 4.5:1 over the glass; the blur and opacity values are doona's.

Reduce Transparency, Increase Contrast and forced colours turn every material into solid surfaces with clear edges. The first paint moves a material saved by the old switch into its palette once and drops the old key.
2026-10-05 15:11:19 +11:00