Repository navigation
ADFA-5339 Dashboard update — Details log, website checkbox, dialog consistency + l10n (Phase 1 UI, part 2) - #519
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What's in it
confirm dialog, threaded to
POST /system/dashboard/rebuildas{site:true}so finalize alsorefreshes 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.
rebuild log in place (
GET /rebuild/log, polled 1.5s while updating); the action button staysfixed. 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.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.
strings_5339.xml(thetranslatable="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:
"Update the REST core?" / "Update" with the checkbox aligned and on by default.
(
site-updatermirrorsstatic/site → /library/www/html/home,/homeserves fresh), while thereported version is unaffected by the site step — the versionless semantics hold.
:app:testDebugUnitTest+:app:lintDebuggreen (the latter now with real translations, not theholding-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.