Skip to content

ADFA-5339 Dashboard update — Details log, website checkbox, dialog consistency + l10n (Phase 1 UI, part 2) - #519

Merged
luisguzman-adfa merged 4 commits into
mainfrom
feat/ADFA-5339-dashboard-update-details
Sep 1, 2026
Merged

luisguzman-adfa merged 4 commits into
mainfrom
feat/ADFA-5339-dashboard-update-details

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Second app-side PR for the Dashboard (REST core) card: Surfaces 2 and 4, the confirm-dialog polish
that finishes Surface 1's consistency, and the full l10n sweep for all the new strings.

Stacked on feat/ADFA-5339-dashboard-update-ui — merge that PR first. This branch contains its
commit; once -ui lands and this is rebased on main, the diff is just the commits below. Consumes
the server-half endpoints (GET /rebuild/log, the rebuild site flag), already on main (1.2.12).

What's in it

  • Surface 4 — "Update the Website" checkbox. A versionless checkbox (default on) in the rebuild
    confirm dialog, threaded to POST /system/dashboard/rebuild as {site:true} so finalize also
    refreshes the served landing page. It carries no version — the site is a separate, unversioned
    artifact. The proot bridge rebuild (< 1.2.0) has no site step, so the flag isn't carried there; an
    older box (< 1.2.12) simply ignores it.
  • Surface 2 — expandable Details. A "Show details" toggle on the detail card reveals the live
    rebuild log in place (GET /rebuild/log, polled 1.5s while updating); the action button stays
    fixed. The toggle appears only once there are log lines, so an older box without the endpoint shows
    no Details affordance. The poll is bounded to the updating window and torn down on onDestroyView.
  • Dialog consistency (finishes Surface 1). The confirm dialog now follows Update ⇄ Rebuild — its
    title and positive button read "Update the REST core?" / "Update" when a newer build exists, and the
    rebuild wording otherwise, so the dialog can't say "Rebuild" over an "Update" button. The
    MaterialCheckBox is themed and aligned with the dialog's title/message inset.
  • l10n. All nine new strings translated into the 33 locales; strings_5339.xml (the
    translatable="false" holding file) is deleted; lint's strict MissingTranslation passes. First
    iterative pass — see the l10n commit for the per-language confidence note.

Verification

Device-verified over a box behind main (1.2.11 < 1.2.12), the state that shows the whole flow:

  • Card + hub show "Update" with the "v1.2.11 → v1.2.12" subtitle; the confirm dialog reads
    "Update the REST core?" / "Update" with the checkbox aligned and on by default.
  • Confirming with the checkbox on runs the update end-to-end and refreshes the served site
    (site-updater mirrors static/site → /library/www/html/home, /home serves fresh), while the
    reported version is unaffected by the site step — the versionless semantics hold.
  • The Details toggle appears once the log has lines; the log endpoint returns the real tail.

:app:testDebugUnitTest + :app:lintDebug green (the latter now with real translations, not the
holding-file suppression).

Not in this PR

Phase 2 (script-emitted real percentage → determinate bar) and Phase 3 (plain-language rename +
Settings IA). And the three auto-generated assets (help.db, module_sizes.csv, rootfs_sizes.csv) stay
out of every commit.

…ite checkbox (Surfaces 2 & 4)

Surface 4: the rebuild confirm dialog gains a versionless "Update the Website" checkbox (default on),
threaded to POST /system/dashboard/rebuild as {site:true} so finalize also refreshes the served
landing page. It carries no version — the site is a separate, unversioned artifact. The proot bridge
rebuild (< 1.2.0) has no site step, so the flag isn't carried there.

Surface 2: the detail card gains an expandable Details panel — a "Show details" toggle that reveals
the live rebuild log in place (GET /system/dashboard/rebuild/log, polled 1.5s while updating), with
the action button fixed above it. The toggle appears only once there are log lines, so an older box
without the endpoint shows no Details affordance. The poll is bounded to the updating window and torn
down on onDestroyView.

New string in strings_5339.xml (translatable=false, pending l10n like the rest); the Details chevron
reuses the existing k2go_maps_log_show/hide. Adds DashboardClient.rebuildLog + a JSON-body rebuild
POST; drops the now-unused bodyless POST helper.
The "Update the Website" option was a plain CheckBox — off-theme fill and an oversized gap to the
label in the Material 3 dialog. Switched to MaterialCheckBox (teal, correct drawable spacing) and
aligned its padding with the dialog's title/message inset.
…ld, and align its checkbox

Surface 1 made the card button read "Update" when a newer build exists, but the confirm dialog still
said "Rebuild the REST core?" / "Rebuild" — the button and dialog disagreed. The dialog now takes the
same update-available flag the card resolved, so its title and positive button match ("Update the
REST core?" / "Update" vs the rebuild wording). Also aligns the "Update the Website" checkbox with the
dialog's title/message: a custom setView gets less horizontal inset than the title, so it was flush
left; wrapping it in a container padded by dialogPreferredPadding lines it up.
…locales; retire strings_5339.xml

The nine ADFA-5339 UI strings move out of the temporary translatable="false" holding file
(strings_5339.xml) into values/strings.xml (now translatable) and are added to all 33 translation
locales, so the strict MissingTranslation lint passes with real translations instead of the English
fallback. The config-only qualifiers (values-night/-v31/-sw###dp) carry no strings and are untouched.

The version subtitle (k2go_dash_card_sub_update_fmt) reuses each locale's own "REST core" wording
harvested from the existing k2go_dash_card_sub_fmt, so the term stays consistent across the card.

This is the first, iterative pass — complete, not final. Romance / Germanic / Slavic / CJK are solid;
the Indic scripts (hi, bn, gu, ta), Arabic and Persian (ar, fa — the RTL rendering of the "v1 → v2"
arrow is worth a look), Swahili and Yoruba (yo flagged in-file) should get a native review. Building
green; corrections land as follow-ups.
@luisguzman-adfa
luisguzman-adfa merged commit 0655838 into main Sep 1, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-5339-dashboard-update-details branch September 1, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant