Commit Graph
11 Commits
Author SHA1 Message Date
Zakk 72472849dc fix(errors): explain configuration refusals by honk's reason
honk names why it refused a configuration write in details.reason. Map
each reason to a translated sentence and show it once without a second
prefix. When a configuration write carries no reason or an unknown one,
show the backend's message as is; other 403s keep the localized text.
2026-10-01 12:15:35 +10:00
Zakk e320195747 refactor(api): carry request IDs as error metadata
Toasts dropped the request note by matching request_id in the already
translated text. The ID now travels with the error and the notice, the
caller decides whether to show it before formatting, and a toast logs it
instead. What users see is unchanged: toasts without the ID, inline and
detail views with it.
2026-09-30 02:37:28 +10:00
Zakk b455068db5 fix(settings): explain config-file geodata URLs and download failures
Without the state database honk takes the geodata download URLs from
experimental.native_api.geosite_download_url and geoip_download_url, never
updates on a schedule, and doona only showed the plain table. The backend
actions card now says so, names both keys through the engine adapter and
links the state database docs and the configuration page.

A failed update showed the raw stage beside a generic failure, e.g.
checksum_unavailable. Each download stage honk reports now has its own
message with what to try.
2026-09-28 15:25:56 +10:00
Zakk 99d9c5592b fix(errors): keep the backend message for state_conflict
honk returns state_conflict for a node name already in use, a provider
refresh or geodata update already queued, and a connection whose
transport userspace does not own. The canned "conflicts with the
current state" phrase cannot tell these apart, so state_conflict joins
the codes whose backend message is shown as the detail line.
2026-09-28 01:01:31 +10:00
Zakk 89bd98d546 fix(errors): keep the backend message for reused error codes
honk returns unsupported_value and invalid_request for unrelated
failures, so the one canned phrase per code left them indistinguishable.
backendMessage now returns a summary plus, for those two codes, the
backend's own message as the detail: a second line under ErrorMessage,
part of the toast detail elsewhere. Config diagnostics already show the
backend text and take the summary only.
2026-09-28 01:01:31 +10:00
Zakk e90cfeb798 refactor(ui): split toast summaries from error details
toastFailure() takes the action's summary instead of a wrapper, and the
error becomes the toast's detail line, without the request id. The
failure keys lose their {error} slot in zh-TW, zh-CN and en; the places
that show a failure inline join summary and error with ui.valuePair, so
their text is unchanged.

Converted: the seven toastFailure calls, the edit problems of the main
source, and the toasts that wrapped errorText in a sentence (refresh,
trace, install, runtime options, wizard preview, geodata update and
save, connection close, DNS delete, sign out, refresh all). Toasts whose
whole message is the error stay as they are.

The e2e layout checks follow the new rows: the error under the
summary, icon and close on its first line, the footer action ending
where close ends, and no footer row without an action or a stack, at
1280px and 390px.
2026-09-27 04:12:31 +10:00
Zakk 0e52234fbc fix(ui): keep the request id out of toast text
A request id is a long UUID that pushed failure toasts to three or four lines. A toast now drops the request note errorText appends and logs the full message with the id through console.warn, so a bug report can still quote it. Inline alerts, dialogs and tooltips keep the note.
2026-09-27 04:12:31 +10:00
Zakk 40ca57f0b3 fix(errors): name the step a failed operation stopped at
A failed geodata update only said the update failed; the stage honk puts
in error.details (destination_rejected, asset_conflict, ...) was dropped.
A stage doona has words for now replaces the code's text, and any other
stage is shown beside it, for operation failures and HTTP errors alike.
2026-09-26 23:45:48 +10:00
Zakk b9c6edbf2a fix(config): report a written but unapplied file on its own
failureNotice wrapped ui.writtenNotApplied in the caller's failure
wording, so a main-source edit read "Could not write the configuration:
Written to the configuration file but not applied". The notice now
stands alone, still negative, for every caller.
2026-09-26 00:18:10 +10:00
Zakk 2f0db600f7 fix(ui): report an unknown operation outcome neutrally
An operation the backend forgot was reported inside each action's failure wording, such as "Could not run the operation: Result unknown", in a failure toast. The outcome is not a failure. Error toasts and edit problems now go through one notice helper that shows an unknown outcome on its own, in a neutral tone, and says the data was reloaded.
2026-09-25 19:30:40 +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