Commit Graph
67 Commits
Author SHA1 Message Date
Zakk 19ea53114e refactor(shell): drop the unused divider variant and let a light be a bare dot
The popover no longer uses a horizontal divider, so Divider goes back to vertical only and its rule is removed. Light takes no children for a bare dot, replacing the empty child and the :empty rule that hid it. The actions comment now matches the layout, and the indicator test checks what sets it apart from a bare button.
2026-09-26 21:23:51 +10:00
Zakk bee9195da7 fix(shell): tidy the backend popover actions
About doona and Edit backend become two buttons on one end-aligned row, with Edit backend as the filled secondary button. The project page link is dropped; About already links to it.
2026-09-26 21:23:51 +10:00
Zakk c20b062e9d feat(shell): link the backend popover to its Settings card
An Edit backend row opens Settings at the backend card
(#/settings?card=backend) and closes the popover.
2026-09-26 21:23:51 +10:00
Zakk 19053c6743 fix(shell): make the backend popover a compact hover card
The popover read as a stacked form under the word "Backend". It now
takes the engine and version as its title with the status light under
it, lists API, build, backend URL and profile as label and value rows,
and puts About doona and the project page below a divider as plain rows
aligned with the facts. The side-nav trigger drops the Data icon and
shows only the light and the engine.

The kit's Divider gains a horizontal orientation and PopoverDialog a
subtitle line.
2026-09-26 21:23:51 +10:00
Zakk b6e104a80d feat(about): state what doona sends and to whom
The browser talks only to the connected backend: the API client and the
auth calls use the profile's base URL, the service worker handles only
same-origin build files, fonts are self-hosted, and geodata URLs are
written into the backend's config for the backend to fetch. There is no
telemetry. Say so under the credits. The backend may be remote, so the
line does not claim that everything stays local.
2026-09-26 21:23:51 +10:00
Zakk 44ef33272f feat(shell): turn the side nav corner into a backend indicator
The corner linked to the engine's GitHub repository, which is the wrong
action for that spot and assumes honk is the only engine. It now shows
the connection's light, the engine and its version, and opens a popover
with what the shell already knows: engine, API, profile, backend URL and
status, an About doona action and the engine's project page. Below the
side navigation's breakpoint the top bar's overflow menu opens the same
popover.

The status comes from discovery and the version read; nothing new is
fetched. The kit gains PopoverDialog and action rows in the submenu menu,
and About can be opened by its caller.
2026-09-26 21:23:51 +10:00
Zakk c85fdac66b feat(i18n): mirror the page right to left on request
With the preference on, the shell and the first-paint stamp set
dir="rtl" and data-mirror while lang stays as it is, so a reload
paints no left-to-right frame, and I18nProvider gets the direction so
React Aria's keys, popovers and toasts turn with the page. Under
data-mirror every box takes its text direction from its text, so
labels, times and parentheses keep their order, and the page aligns
to the right. Chrome treats match-parent as inherit, so the right is
set on the root and the few boxes that align to start or end name
their side.
2026-09-26 18:34:50 +10:00
Zakk f407866542 feat(settings): add a mirrored layout preference
A switch in Settings, Appearance, stores the new doona-mirror key. It
is off by default, and the Switch passes aria-describedby so its help
text reads as the description.
2026-09-26 18:34:50 +10:00
Zakk 900ad058dd feat(i18n): set the page direction from the language
The direction comes from the locale's Intl text info, or from its
likely script where the engine has none, so a right-to-left language
needs only its catalogue. The first-paint stamp and the shell set dir
wherever they set lang. Right to left, table cells and detail values
take their direction from their text, and code, rule text and keys
stay left to right.
2026-09-26 13:00:04 +10:00
Zakk 3bdd8b1dff chore(lint): guard layers, cycles, the kit and CSS tokens
ESLint now checks the layer boundaries and import cycles (import-x), raw React Aria, native controls and kit classes outside src/ui, heavy chart and editor libraries outside their homes, and colour literals in TS. Stylelint joins the lint script and keeps colours, font sizes, 6px+ radii and durations on tokens and :hover behind a hover media query.

Allowlisted, each with its reason: the single-consumer collection compositions, ModeSwitch's popover and the policies GridList (their kit moves would change the page), the private runAfterTransition import, and the one :hover already inside @media (hover: hover).
2026-09-26 05:53:41 +10:00
Zakk 34d362ef59 perf(shell): fetch the About painting on the first tap
The night painting stays invisible until the duck has been tapped past its honk, yet it was fetched every time the About dialog opened. It now loads on the first tap, which leaves four more taps for it to arrive before it fades in.
2026-09-26 05:22:47 +10:00
Zakk 87778df73c refactor(ui): share one button style between Button and Link
ButtonStyle and buttonClass() carry the quiet, small, icon, accent and negative looks, so button-dressed links take props instead of class strings. The hub and side navigation use the kit Link, and the arrange tray's drag slot, which has to stay a react-aria button, takes its classes from buttonClass().
2026-09-26 05:22:47 +10:00
Zakk 1002c03802 refactor(ui): add a Divider for the top bar rule
TopBar was the one feature file using a raw react-aria Separator with a kit class.
2026-09-26 05:22:47 +10:00
Zakk 29327acf9d refactor(api): name the demo backend and the storage keys once
DEMO_API and isDemoApi replace the 'mock' spellings, src/api/storage.ts holds every storage key with its existing string (a test pins them), and the native-API probe the sign-in screen falls back to moves into api/auth.ts. The discovery timeouts stay 3 s for hosted detection and 5 s for the connection test.
2026-09-26 04:47:54 +10:00
Zakk df4965f3c3 refactor(shell): keep each page's loader and flags in its route definition
The definitions are keyed by path and checked against RoutePath, so a route without a page fails to compile, and the ten loader aliases go. warm: 'intent', offline and defaultRoute replace the checks on the config, settings and activity ids. The idle warm-up now follows navigation order.
2026-09-26 04:47:54 +10:00
Zakk 3e0b5856ad refactor(shell): list the palettes once
src/shell/palettes.ts holds the ids, groups and label keys in menu order, and PaletteId, DEFAULT_PALETTE, the appearance menu, the stored-value check and the first-paint script derive from it; the build injects the ids and the default into tools/stamp.js. readSettings now drops an unknown palette itself, so readAppearance goes.
2026-09-26 04:47:54 +10:00
Zakk fd01bb6502 fix(i18n): show enum values a newer backend adds instead of a blank
Labels for wire enums were looked up as t(labels[value]). A value the
contract gained after this build has no entry, so translate received
undefined: the label came out blank (a log level, a connection state),
"undefined" inside a sentence, or, for an event kind, eventSummary fell
off its switch and the events page threw on the missing summary.

enumLabel(labels, value, t) returns the value as sent when there is no
label, and replaces the lookups on the events, logs, connections,
flows, rules, nodes, config, overview, policies and search views, plus
the hand-written `labels[v] ? t(labels[v]) : v` checks. eventSummary
gets a default branch that names the event's resource.
2026-09-26 04:13:29 +10:00
Zakk 6374434365 refactor(shell): read navigation from features/*/nav.ts
Search listed each page's tabs and cards by importing the pages' view
models, which pulled the setup templates, the dae vocabulary and the
geodata presets into the search chunk. The tab and card lists now live
in leaf modules (dns, rules, config and settings nav.ts), and the
geodata card check moves with the settings cards.

Search also rebuilt the nodes page's provider table to find a node's
owner. The pseudo owner of a node without a provider is now one
selector in api/selectors.ts, used by the nodes page and search alike.
2026-09-26 04:13:29 +10:00
Zakk 62191512b0 refactor(features): share cross-feature code through features/shared
Code that two or more features use lived inside one of them, so pages
imported each other's internals: policy labels and the policy picker,
the region guess and node menu projection, the probe toast, pending
rule writes and rule links, and the lifecycle actions. These now live
in features/shared, each module with its tests, and the shell reaches
the pending-rule and lifecycle hooks there too.

The probe summary test moves next to probeSummary, so api tests no
longer import a feature.
2026-09-26 04:13:29 +10:00
Zakk 094ab84921 fix(shell): give the phone theme row a fixed icon
The row borrowed the top bar's scheme toggle, whose icon follows the scheme and
whose stacked span was squeezed to 10px wide by the row's flex layout. Like
language and palette, the row now shows a fixed category icon, and a test holds
every row icon at 16px in both schemes.
2026-09-26 03:23:15 +10:00
Zakk f781caa636 fix(shell): split the phone overflow menu into submenus
The phone top bar's overflow menu was one flat list: three languages,
three themes, every palette family and variant, then the wordmarks,
running past the bottom of the screen.

ChoiceMenu now takes submenus: rows that show their current value and a
chevron and open a menu of sections, after S2's ActionMenu with
submenus. The overflow menu is four rows (language, theme, palette,
wordmark). From 640px up a row opens a React Aria SubmenuTrigger beside
it. Below that, a submenu beside a row at the screen edge flipped left
and was cut off at 360px, so the submenu replaces the menu in the same
popover with a back row on top, as S2 does on mobile. ArrowRight or
Enter opens a submenu on its current choice, and ArrowLeft or Escape
goes back to the row that opened it. The desktop top bar is unchanged.

The mobile spec now picks a theme, palette, wordmark and language, two
taps each, and checks each choice is on screen. It also covers the
keyboard path, and the side flyout at 800px.
2026-09-26 03:23:15 +10:00
Zakk 4f8e7d1f1a feat(settings): tell Safari users how to install the app
Safari never fires beforeinstallprompt, so Settings showed nothing on an
iPhone, an iPad or a Mac. installHint picks the manual steps from the user
agent and shows them in the row where the install button would be: Share,
then Add to Home Screen on iOS and iPadOS, and File > Add to Dock on macOS
Safari 26 or later, the first release that needs macOS Sonoma. Nothing is
shown when the page already runs as an app or the browser has no path we
can confirm, which includes Firefox for Android: Mozilla's article and the
current Firefox menu disagree.
2026-09-26 01:19:59 +10:00
Zakk b8e3330bc8 fix(shell): use Spectrum icons for refresh and reload
Refresh re-reads data, so it takes the Spectrum DataRefresh icon. Reload
restarts honk with the configuration, so it takes the circular Refresh
arrows a browser uses for reload, and keeps the spin while pending. The
hand-drawn Replay icon is gone.
2026-09-26 01:01:50 +10:00
Zakk b92b11945c fix(shell): replace history when moving between hubs
Tapping through the bottom bar and the hub page switcher pushed an entry
per tap, so Back retraced every tap. Those links now ask the router to
replace the entry, as an Android navigation bar does; the router keeps
the option through the discard prompt. Other navigation still pushes.

The hub page switcher scrolls inside its track when a narrow phone
cannot fit it, since segmented tracks no longer scroll.
2026-09-26 01:01:50 +10:00
Zakk 63554d66db feat(shell): give reload its own top bar button
Refresh only re-reads data again. A reload button beside it reloads honk
through the same lifecycle hook as the overview and settings pages, and
while rules are held it carries their count and applies them instead.
It shows when the backend offers reload or rules are held, and stays in
the phone top bar.
2026-09-26 01:01:50 +10:00
Zakk 8c0fcffb47 feat(shell): link the hub pages and collapse page actions on phones
The open hub's pages were a radio group, but picking one navigates, so
they are now links in a labelled navigation with aria-current on the
current page, keeping the segmented look.

Below the side navigation's breakpoint, ActionGroup keeps a toolbar's
first action as a button and moves the rest into a More actions menu,
after S2's ActionGroup overflowMode="collapse". The DNS log, logs and
overview toolbars use it, so their buttons no longer take extra rows at
phone width. Desktop keeps the separate buttons.
2026-09-26 01:01:50 +10:00
Zakk 08dd8893ff feat(shell): move language and appearance into an overflow menu on phones
Below 1024px the top bar keeps search and refresh or apply, and one More
options menu at the end holds language, theme, palette and wordmark. The
desktop top bar is unchanged.
2026-09-26 01:01:50 +10:00
Zakk c3ebbdd602 feat(shell): group the pages into four hubs with a phone bottom bar
Overview, Traffic, Routing and Settings become the side navigation's
sections. Below 1024px the hubs sit in a bottom bar and the open hub's
pages sit above the content, replacing the page select. A hub reopens on
the page last seen in it this session.
2026-09-26 01:01:50 +10:00
Zakk e126078368 fix(shell): announce a retry wait once
The countdown ticked inside a status live region, so screen readers could
announce it every second. The region now holds the wait as it began,
hidden from view, and the ticking text is hidden from assistive
technology.
2026-09-26 00:31:18 +10:00
Zakk 96f50c3ff5 feat(rules): hold rules and apply them together from the top bar
Adding a rule from a connection no longer has to reload honk each time.
Hold keeps the rule in a session store of pending rules, which the rule
list shows and can discard. While rules are held, the top bar's refresh
button shows their count and applies them: one write and reload per
file, stopping at the first failure and keeping the rest with its
diagnostics. With nothing held it refreshes the data as before. Add and
apply now still writes at once, through the same path.
2026-09-25 22:47:14 +10:00
Zakk 33fd82a453 fix(api): say how long a refused request waits before retrying
A rate-limited DNS query, probe or route trace waits out Retry-After, up to a minute, while the page shows only a spinner and looks hung. A wait longer than three seconds now shows a status under the page title with the reason and a countdown to the automatic retry.
2026-09-25 21:03:15 +10:00
Zakk 62995057f8 fix(auth): sign in from the public discovery view
A caller the listener does not admit now gets a reduced discovery without anonymous_loopback, so the sign-in type reads only the fields both views carry. The password e2e backend serves that view.
2026-09-25 20:10:25 +10:00
Zakk b8482af39c feat(settings): configure geodata sources and automatic updates
Where the backend advertises resources.geodata.configurable_sources, a Geodata card offers the MetaCubeX full, MetaCubeX lite and Loyalsoldier presets or up to four custom URLs per asset, automatic updates with an interval of 6 to 168 hours, the update status with per-asset checksum and download URL, and Update now. Sources have no user-given names: a known list shows its preset, anything else Custom with its host. Choosing a preset whose category list is known warns about the categories the rules use that it lacks. While the config file owns the URLs they are read-only, and a 409 reloads the settings. Without the capability the page keeps the plain table in the backend actions card.
2026-09-25 06:52:31 +10:00
Zakk 3d1e9a9b92 fix: address feedback on 0.1.0-beta.2
Stop shipping a node_modules archive with releases; package recipes now
install the prebuilt program and font tarballs. State in the READMEs and
guides that the native API exists only on the feat/native-api branch of
Glassyiris/honk, and show a clear message when an engine answers 404 for
both discovery and capabilities instead of asking for a token.

Report the page language to the service worker only after it activates,
so an updated build keeps the language for offline start. Keep secondary
facts on a caption line under card values, keep cards in a row equal in
height, lay the capabilities list out in columns, frost sticky headers and
overlays in the glass palette, and fit Overview, DNS and the routing map on
tablets and phones. Localize backend datapath errors and the rule editor's
must switch.

List events received before the Events page opened. Fill the mock
backend with realistic connections, DNS records, logs, events, notices
and history for the public demo, with traffic shaped by destination.
Link the demo from the READMEs and refresh the screenshots.
2026-09-24 14:27:28 +10:00
Zakk 0918f6512d fix(dns): report cache usage from entry counts
Pause hidden cache work, show log errors in place and report cache usage by entries. Restrict offline caching to the active language and keep the tab’s backend session pinned.
2026-09-23 22:17:52 +10:00
Zakk 2169d65464 fix(rules): validate edits before changing source text
Keep group and rule edits anchored to their source lines and reject invalid typed values. Stabilize session handling and table layout while adding DNS cache capacity.
2026-09-23 20:24:18 +10:00
Zakk 8f7fddea6e feat(auth): present sign-in and setup in a dialog
Accept administrator passwords from eight characters and put sign-in and setup in a dialog. Reduce unnecessary polling and improve field errors, labels and compact layouts.
2026-09-23 19:04:29 +10:00
Zakk c7ec045bb2 refactor(ui): unify confirmations, retries and labels
Share confirmation dialogs, formatters, cards and menus across features. Make failed reads retryable, correct cancellation behavior and standardize terminology and status text.
2026-09-23 17:49:06 +10:00
Zakk 6ec531e9c4 perf(features): reduce polling and centralize page ownership
Limit event refetches, load search and font assets on demand and keep active views stable. Move tabs, capability gates and data reads into their feature controllers.
2026-09-23 15:19:41 +10:00
Zakk 92715e341f feat(charts): add fact cards and persistent data tabs
Add reusable fact tiles and titled cards, including DNS rankings and cache state. Keep selected data panels mounted and avoid replacing unchanged poll results.
2026-09-23 13:28:34 +10:00
Zakk 774258cd51 feat(charts): add DNS, node, connection and log analysis
Add chart forms for query logs, node latency, connection traffic and log levels. Show labelled facts and hover detail, and check chart behavior in Chromium and WebKit.
2026-09-23 11:58:32 +10:00
Zakk 177f91b755 feat(policies): edit and arrange group memberships
Use shared dae parsing to edit group members and evaluate filters. Apply group ordering in one action, then align shared pickers, fields, routes and semantic UI tokens.
2026-09-23 09:49:44 +10:00
Zakk d12779a0da feat(auth): add password setup and sign-in
Add password setup, sign-in and sign-out. Place field errors near their controls and correct page loading and links around the new flow.
2026-09-23 08:23:36 +10:00
Zakk cc6bfe99f7 fix(ui): stabilize loading states, edits and responsive pages
Hold card and table geometry while data or fonts load. Keep configuration edits inside their source lines and address regressions across the feature pages.
2026-09-23 04:03:45 +10:00
Zakk 6333b757d6 feat(settings): expose recorder modes and source details
Add recorder settings and an unmasked configuration surface, and link module cards to source sections. Update the guide, control motion and list rendering thresholds.
2026-09-23 01:22:42 +10:00
Zakk 37d724d2e2 build(install): validate distribution recipes
Exercise APK and IPK recipes and install packages on supported distributions. Align Gentoo and other recipes with their target repositories while correcting page and store behavior.
2026-09-22 15:49:07 +10:00
Zakk 47a48a1a89 feat(config): edit modules one section at a time
Add a modules tab for focused source edits. Tighten capability and session handling, align tests and move store and dae code into their top-level modules.
2026-09-22 10:49:44 +10:00
Zakk e660e3a100 perf(shell): warm pages and improve navigation feedback
Warm page chunks during idle time and add keyboard shortcuts. Correct shell and settings details, update screenshots and remove the reference archive and workstation helper.
2026-09-22 03:19:56 +10:00
Zakk d091a0c133 refactor(features): move data work into page controllers
Give flows, rules and the remaining pages controller and view boundaries. Simplify startup and mock sources while correcting stream retries, query limits and guarded drafts.
2026-09-22 02:00:55 +10:00
Zakk d2f319ae48 feat(rules): replace routing lanes with a topology map
Draw routing as a tree and then a mind map, with layouts for different devices. Add rules from flows and correct edge identity, draft handling and retry behavior.
2026-09-22 00:04:02 +10:00