Commit Graph
480 Commits
Author SHA1 Message Date
Zakk 4ae4e4965d fix(settings): say in view why settings actions are disabled
The profile actions wait for a saved profile, Apply for backend options names an out-of-range value or says nothing changed, Refresh says there is no subscription, and a geodata update says its status could not be read.
2026-09-28 07:04:27 +10:00
Zakk 6f08e99b11 fix(activity): say in view why the mode can't be applied
Apply says there are no changes or that global mode needs a target group, and on a read-only backend the global target card repeats the status the mode card shows.
2026-09-28 07:04:27 +10:00
Zakk 14c5ebe665 feat(ui): let a Card say why its actions are disabled 2026-09-28 07:04:27 +10:00
Zakk 04d787ade7 fix(rules): say in view why adding a rule or running a trace is disabled
Add rule shows its missing-position reason under the toolbar, the add-rule dialog names the missing or invalid condition or outbound, the trace form says what it lacks or that the backend cannot trace, and the connection's add-rule dialog says it is still loading.
2026-09-28 07:04:27 +10:00
Zakk d860ac6cd1 feat(ui): pass a disabled reason through ConfirmDialog 2026-09-28 07:04:27 +10:00
Zakk a8be01676b fix(policies): say in view why group actions are disabled
Edit and Test all in a group's header, the last-filter remove button in Arrange and the check settings Save now show their reason under the action instead of only in a tooltip, or not at all. The review's Apply notice also covers a page that lost write access.
2026-09-28 07:04:27 +10:00
Zakk 7338d64b08 feat(ui): let ModalDialog say why its footer actions are disabled
A reason prop renders the ActionHelp line under the footer, so a dialog's disabled Save explains itself on touch screens too.
2026-09-28 07:04:27 +10:00
Zakk db413e148f fix(config): say in view why Apply and Validate are disabled
On a phone the quick setup's Apply and reload sat disabled with no
explanation: the only reason it ever gave was a hover tooltip, and only
for incomplete text, never for the common case of nothing changed yet.

Add ActionHelp to the kit: a help line under an action row, in view on
every width, that the row's disabled buttons name as their description.
Once it gives the reason the button drops the same text from its
tooltip. The config page uses it for the quick setup, the module Edit
and Apply rows, the source card and the Validate tab, with the reasons
projected in view.ts: no changes, a change on disk to keep or discard,
invalid subscriptions or network fields, incomplete text, and why a
file cannot be validated.
2026-09-28 06:41:39 +10:00
Zakk 57f7782525 docs(contributing): spell out the import allow-lists
The layer diagram now shows layer names only, and a "May import" table
states each arrow. Two zones back the lists: a feature may use only
route, routes, draft, preferences, install and About from the shell,
and the kit may use only the error model, the types and the server
clock from src/api, never the client, getApi or the mock.

The data-flow diagram separates data (solid) from calls and actions
(dashed), and the section says a small page need not have every
piece. A short "Where things are" opens the section: the top-level
folders and the dns feature folder as an example.
2026-09-28 06:35:35 +10:00
Zakk a40b39bcd4 docs(contributing): describe the architecture and lint the engine boundary
"Organize changes" becomes "Architecture": a layer diagram, what each
folder owns, the import table, the data flow of one page, the engine
rule and which check covers which boundary. It did not mention
src/api/engines at all.

Two lint rules back the engine rule. An import-x zone keeps code
outside src/api on the adapter's index. no-restricted-syntax stops
features, the shell and the store from comparing the engine or API
name, or an Engine's id; catalogues and tests are exempt.
2026-09-28 06:35:35 +10:00
Zakk 324c30f8de refactor(config): ask the engine which sections it redacts
The modules tab listed every `experimental { native_api { } }` block as
an incomplete card. That is honk knowledge: honk redacts the native API
token when it returns a source. The engines adapter now answers it
through `redactedSections`, and an unknown engine names none. honk's
cards, ids and text are unchanged.
2026-09-28 06:35:35 +10:00
Zakk eefad4cc03 refactor(login): pull the submit outcomes and the alert out of useLogin
What a submit does with storage and the backend, and which alert the
form shows, are plain decisions the hook only wired up inline. They are
now functions beside it: storeToken writes a pasted token or names a
stale profile or blocked storage, signIn opens and keeps a session or
says why not, and loginAlert picks the refusal or arrival note and when
it takes focus.

The hook keeps its state and applies the outcomes in the same order as
before. New tests cover a rejected sign-in then a retry, a session the
tab cannot store, and focus moving to a refusal on each attempt.
2026-09-28 06:21:40 +10:00
Zakk 3f0cff7fda refactor(settings): move the connection test out of useBackendForm
The connection test has its own state and lifecycle: one request at a
time, a five-second timeout, and an abort on edit, pairing link or
unmount. It now lives in useConnectionTest, and the discovery read and
its failure mapping are a plain async function, probeBackend, with unit
tests for success, a bad discovery, a refused token, timeout and cancel.

useBackendForm keeps what the result means for the form: the toast, the
result line and the sign-in mode. The pairing link now clears the pending
flag in the same layout effect that aborts the request, before paint.
2026-09-28 06:21:40 +10:00
Zakk 915f81ad8b fix(policies): line up large node groups with small ones
A group of more than twelve members lays its tiles out with React Aria's
GridLayout, which spreads its column spacing over both outer edges and
wraps at 200px per tile, while a small group's plain grid wraps at 168px
with no edge inset. The two forms sat at different insets and column
counts, and on a phone the overlay scrollbar landed right on the last
column's edge.

Each virtual cell is now a tile plus the grid's 8px gap, with no column
spacing from the layout, and both forms wrap at 204px, which holds the
demo's longest name beside a three-digit latency. The scroll panel
reaches 8px into the card's padding: the tiles line up with a small
group's and the last gap is the room the scrollbar draws in. Rows and
keyboard navigation are unchanged.
2026-09-28 06:21:28 +10:00
Zakk 94877713a0 fix(tables): scroll tables sideways on phones instead of dropping columns
At phone width DataTable dropped columns until the minima fit, so Logs and
Events kept only their text column, the rule list lost its number, source
and hits, and every table sat at exactly the viewport width with the rest
of each row out of reach.

Below the phone breakpoint no column is dropped now: each keeps its minimum
width and the table scrolls sideways, the container around a native table
and the grid itself once virtualised. A virtualised grid no longer gets the
inline minimum width, which made the container scroll it and carried the
vertical scrollbar off screen. Tablet and desktop widths still drop columns
as before and render the same.

The phone specs now scroll to the trailing columns, and a new spec checks
that the logs table scrolls to its whole message column at 390px and fits
without scrolling at 1440px.
2026-09-28 06:05:20 +10:00
Zakk 59285b56e0 refactor(mock): build group settings and capabilities in one place
The initial inventory and the demo's configuration activation each
wrote out a group's unset settings and its policy-dependent
capabilities. groupDefaults.ts now builds both, with a new object on
every call; callers still choose default_member_id.
2026-09-28 06:00:35 +10:00
Zakk c909d8fd66 test: share the appearance, geometry and deferred helpers
Six e2e loops wrote the language and scheme to localStorage the same
way, and the mirror and right-to-left specs each defined box and turn.
They now come from fixtures.ts. The store tests share one deferred
from testHelpers.ts, and connection-rule.spec.ts builds its rejected
reload from one factory for both tests that use it.
2026-09-28 06:00:35 +10:00
Zakk ef9510c753 fix(i18n): label every write-and-reload button "Apply and reload"
The outbound mode card and the arrange review dialog said "Apply"
while the configuration page said "Apply and reload", though all
three write the configuration and reload it. They now share the
configuration page's key, so the label says what happens and the
three places cannot drift apart.
2026-09-28 06:00:35 +10:00
Zakk 7b7c729bc6 refactor(i18n): share three strings that name the same thing
"Backend URL" in the shell and settings, the IP address check in DNS
and the rule tester, and the "Node latency" card title on the
connections and nodes pages were separate keys with the same text in
every language and the same meaning. Each is now one ui key, so a
translation change reaches both places.
2026-09-28 06:00:35 +10:00
Zakk b7619ce4d2 style(ui): keep one keyboard focus ring rule
Buttons, card links, the brand button, node toggles and table rows
each repeated the ring that interaction-states.css already gives every
[data-focus-visible] element, and the table rows repeated its inset
exception for .rp-table. No rule in between sets an outline on these
elements, so the global rules decide the same ring.
2026-09-28 06:00:35 +10:00
Zakk d32d50f6f1 chore(ui): drop unused code and restated comments
The Copy icon, the GeodataChoice type and the .rp-list-columns rule
have no users. The toast comment no longer repeats the padding and
width values declared under it, and the formatDuration doc comment
now sits on the function instead of its cache.
2026-09-28 06:00:35 +10:00
Zakk 79d581870b refactor(api): gather engine explanations in one adapter
The overview limits and the config read-only badge each carried honk
knowledge: the API name check, the record_* keys, the native_api
section, the geodata URLs and the listener blocks that mark a source as
holding secrets. src/api/engines now turns capabilities and source text
into engine-neutral reasons with structured settings, and the features
map those reasons to messages. An unknown engine gives no reasons, so it
keeps the generic text; honk's text is unchanged.
2026-09-28 05:59:32 +10:00
Zakk 3aa4ea2d4c refactor(activity): use the kit popover for the mode switch
The read-only mode explanation assembled DialogTrigger, Popover and
Dialog from React Aria itself. It now uses PopoverDialog's untitled
note form, with the same placement, label and look, and its private
stylesheet rule goes.
2026-09-28 05:59:26 +10:00
Zakk c67a8f3f82 refactor(ui): let PopoverDialog hold an untitled note
A popover that explains a status needs no heading of its own: the
trigger already asks the question. With label in place of title the
dialog is named by the label and holds running text at the popover's
inset, with the metrics the mode switch's hand-built popover used.
2026-09-28 05:59:26 +10:00
Zakk 4a9b6a2d6d refactor(config): split the page components
Config.tsx held the page and four components beside it. Move NewSource,
Modules, SourceCard and ValidateTab into files of their own, unchanged,
and keep Config.tsx as the page composition.
2026-09-28 05:59:26 +10:00
Zakk 854917faf1 refactor(store): own the notice feed and the fresh config read
The home page's notice feed was kept per backend in a WeakMap inside
features/activity, and the pending-rule apply read the configuration
with api.config() directly. Both are store concerns: the feed now lives
in store/logs.ts beside the events feed as noticeFeed/useNoticeFeed,
and readConfigFresh in store/config.ts names the read that bypasses the
watched config. createSource and the editor's 412 path use it too.
Requests, dedup and error handling are unchanged.
2026-09-28 05:59:19 +10:00
Zakk 4a47fff4f8 fix(mock): issue demo sessions without crypto.randomUUID
Browsers only expose crypto.randomUUID in secure contexts, so the demo
login threw when served over plain HTTP on a LAN address. The mock now
uses uuid() from src/api/hash.ts like the rest of the code, and a lint
rule keeps randomUUID and crypto.subtle out of src outside that module.
2026-09-28 05:34:16 +10:00
Zakk 79e9b6cce2 docs: credit Adobe as the copyright holder of the Noto fonts
Noto Sans TC and SC are Adobe's (their name tables read "(c) 2014-2021
Adobe, with Reserved Font Name 'Source'"), but the bundled OFL.txt had
no copyright line and REUSE.toml said NOASSERTION. OFL 1.1 asks for the
copyright notice to travel with the fonts, so OFL.txt now opens with
it, as the Google Fonts copy does. NOTICE gains a font section in the
shape of the icon one, and the READMEs name Adobe in their credits.
2026-09-28 05:13:08 +10:00
Zakk f01c21ffb1 ci(release): pin the bundled honk commit
The release workflow bundled whatever honk's rolling debug pre-release
held when it ran. honk overwrites that release on every debug tag, so a
debug build published between the honk tag and the doona tag slipped
into the doona release unnoticed.

tools/honk-commit.txt now names the honk commit a doona release ships,
and the release pull request bumps it. fetch-honk.mjs reads it by
default (--commit overrides it) and fails unless the release body, the
release target when it is a commit, and the source tag all name that
commit. It is pinned to 7449f4e2, tag debug.2026.9.28.native-api.2.
2026-09-28 04:08:35 +10:00
Zakk aa8d84e475 fix(config): warn about a new source only when no loaded file includes it
The new source dialog read include patterns from the main file alone,
while the contract lets any file of the resulting set include the path.
It now resolves each loaded file's patterns from where that file lives,
as the demo backend does, and says nothing while a file's text is
unknown. resolveIncludePath moves from the demo backend to dae so both
share it.
2026-09-28 04:08:30 +10:00
Zakk c5d0bdc4bc fix(config): hold the quick setup on a file changed on disk
After a 412 the quick setup took the refetched file as its base and
kept the form, so the next save wrote the form over the change on disk
without the person seeing it, as the source card did before. It now
works like the source card: a changed form over a file that changed on
disk shows the alert, and saving waits until the person keeps the form
over the new text or discards it. The setup has no Cancel of its own, so
the alert offers the discard. An untouched form follows the file.

The alert is one component for the source card, the modules and the
setup.
2026-09-28 04:08:30 +10:00
Zakk 0c067c605b refactor(connections): keep the table key helpers under their comment
groupRowId was exported for no caller, and revealTarget sat between it
and connectionKey, splitting the comment that explains the key scheme.
2026-09-28 04:08:30 +10:00
Zakk 5d23ed5e80 refactor(dae): drop groupNames, which only its test used
The scanner tests read the group names through readGroupEntries
directly.
2026-09-28 04:08:30 +10:00
Zakk ce38cddcf7 fix(mock): check source writes against honk's size and include rules
Creating a source counted only the main file's include patterns, while
the contract lets any file of the resulting set include it; the mock now
resolves each loaded file's patterns from where that file lives. Neither
creating nor replacing a source enforced the JSON body or content limits
honk refuses with 413; both do now.
2026-09-28 04:08:30 +10:00
Zakk 3b181687b8 fix(policies): offer check settings as mutable_config lists them
A selector group never offered check settings, whatever its
mutable_config said. honk already leaves check_url out for a selector,
which it does not probe, so the list alone decides and a backend that
probes selector groups gets the fields it lists.
2026-09-28 04:08:30 +10:00
Zakk 678427a241 fix(overview): give honk's reasons only for resources the backend reports
The client fills resources an older backend leaves out of its
capabilities as unavailable, and the limits then read them as honk
reporting them off: a missing logs resource became a recorder to turn
on, missing probes a service not running, missing geodata a file
conflict. The client now records which resources were left out, and
those fall under features the build does not provide.

Fields get the same care: a config section without writable is not
told to set config_write, and runtime settings without a field list do
not count as record_flows being off.
2026-09-28 04:08:30 +10:00
Zakk 709578993b fix(connections): key groups on raw values in a namespace of their own
Outbound groups keyed on the translated label, so switching language
unfolded every folded group and an outbound named like a built-in label
merged into its group. They now key on the outbound itself, with none
counted as unknown as before, and show the label.

A group's table key was g: and its name, which a connection id could
equal. A connection keeps its id as its key unless the id starts with
g: or a backslash, which is escaped, and the table maps the selection
back.

A selected connection unfolded its group only when its id first
arrived, so moving to another folded group hid it. The reveal now
tracks the group too, and folding that group again still holds.
2026-09-28 04:08:30 +10:00
Zakk 6cf7d25227 fix(config): stop overwriting disk changes and guessing secrets
After a 412 the source card made the refetched file the draft's base and
kept the typed text, so the next save wrote the draft over the change
made on disk without the person seeing it. The card now compares the
draft's base with the file as loaded: when they differ, an alert says
the file changed and saving waits until the person keeps the draft over
it or cancels. A module draft is carried over on its own when the change
is outside its section, since splicing it in keeps that change, and
waits the same way when the section itself changed or was removed.

A read-only main or include file was always labelled as holding a
listener secret. honk also refuses the includes it writes itself, and
another backend may have its own reasons, so the secret is named only
when the text defines a native_api or clash_api block; otherwise the
file is shown as read-only.
2026-09-28 04:08:30 +10:00
Zakk 6944cf6a04 fix(api): time requests to the first byte and body gaps, and release the deadline
openSession and closeSession called fetch directly, so a backend that
accepted the connection and never answered, or stalled the body, left
sign-in waiting forever. They now go through send. Setup keeps the write
wording; a login that timed out is simply tried again.

The read deadline also covered the whole body, so a large list or a slow
validate arriving steadily was cut off as not answering. The limit now
runs until the headers and then between chunks, so only a body that
stalls fails.

send left its timer running after every request, and the fallback for
engines without AbortSignal.any kept its listeners on the caller's
signal. Both are released once the body ends, fails or is cancelled, or
the request fails. The rebuilt response keeps its url, type and
redirected flag.
2026-09-28 04:08:30 +10:00
Zakk a8686ace97 chore(contract): pin api-standardize 3640713
The POST /config/sources 422 schema was bundled as a component named "schema". Upstream now names it ConfigDiagnosticsErrorResponse and the PUT /config/sources/{source_id} 422 shares it. Regenerated src/api/types.ts; no doona code used the old name.
2026-09-28 03:59:52 +10:00
Zakk 52959cc1bb refactor(tools): share the demo sign-in between perf and screenshots 2026-09-28 03:46:04 +10:00
Zakk 7ab9c20895 fix(tools): check the honk commit through its source tag
When the release targets a branch, fetch-honk skipped the commit check
and trusted the body alone. It now resolves the body's source tag,
following an annotated tag, and stops unless it points at the body's
commit.
2026-09-28 03:46:04 +10:00
Zakk 7aa71df39b test(config): click Apply once in the 412 rebase tests
toPass repeated the click with the wait, so a slow reload toast led to a
second save. Both tests now wait for the render that rebases the draft,
seen as the refetched source's line count or the section's shifted line
range, then click once and wait for the toast.
2026-09-28 03:46:04 +10:00
Zakk 24f8cc8436 fix(i18n): translate lifecycle_failed again
d7fa1e96 dropped the code with honk's suspend and resume, but doona still
offers both when a backend advertises them, and honk builds from before
the removal report a failed one with this code. Restore the mapping and
its three messages, and cover it in the operation code test.
2026-09-28 03:46:04 +10:00
Zakk 1e46eef0f4 fix(login): make the showcase a still picture under reduced motion
Under reduced motion the game ignores every press, yet the panel kept a
focusable button named as a game. The button is now disabled and the
panel hidden from assistive technology while the preference holds, and
both follow a change made with the page open. The scene draws the same.
2026-09-28 03:46:04 +10:00
Zakk d4e54f3f6c fix(login): keep the form when the showcase fails to load
The showcase chunk loaded under Suspense with no error boundary, so a
failed import blanked the whole sign-in page. LoadBoundary takes an
optional fallback, and the login page gives it the same empty panel it
shows while the chunk loads; the form beside it keeps working.
2026-09-28 03:46:04 +10:00
Zakk 53822f25b3 fix(login): lift the loading bar off the ground line
The bar's bottom rested on the ground, so the two read as one stroke.
The bar now floats one bar height above the ground, level with the
duck's body, and the barricade's rail runs through its middle. The
barricade and the duck still stand on the ground.
2026-09-28 03:43:09 +10:00
Zakk 5545254af4 feat(login): a barricade in place of the status pill
The status now stands on the ground left of the bar as a sawhorse
barricade: a yellow board with the text, a striped rail and legs outlined
in ink like the duck. The board meets the label's cap height, the rail the
bar's top, and the gap before the bar matches the gap before the duck.
The bar never gets narrower than the loading row; on a panel too narrow for
both, the whole group draws smaller instead of squeezing the text. The
Chinese status reads 施工中.
2026-09-28 02:40:27 +10:00
Zakk 9625f530a9 feat(login): under-construction sign and a centred loading group 2026-09-28 02:40:27 +10:00
Zakk d89a8614da feat(login): a loading bar stuck at 99% in the showcase
The idle scene is now a progress bar one notch short of full with the duck
staring at it; the dots after the label step every half second on a timer
that stops when the panel is hidden, off screen or under reduced motion.
The construction sign and cones go, with the gameSign key.
2026-09-28 02:40:27 +10:00