Skip to content

ADFA-4790: Receive confirm size breakdown + compact QR keys#236

Merged
luisguzman-adfa merged 3 commits into
mainfrom
feat/ADFA-4790-receive-confirm-breakdown
Jul 21, 2026
Merged

ADFA-4790: Receive confirm size breakdown + compact QR keys#236
luisguzman-adfa merged 3 commits into
mainfrom
feat/ADFA-4790-receive-confirm-breakdown

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator
  • Receive CONFIRM keeps the backend's localized title/message and appends a System/Content split (sizes travel in the QR) plus the replace warning, both via string resources in strings_k2go.xml (translatable=false, picked up by the redesign l10n pass) — no hardcoded English, so it follows the device language like the rest of the redesign UI.
  • Payload size keys shortened to sb / cb (lighter QR).

Cross-version: an older QR (long keys) parses with sizes = 0 (split hidden); the transfer itself is unaffected.

- Receive CONFIRM keeps the backend's localized title/message and appends a
  System/Content split (sizes travel in the QR) plus the replace warning, both
  via string resources in strings_k2go.xml (translatable=false, picked up by the
  redesign l10n pass) — no hardcoded English, so it follows the device language
  like the rest of the redesign UI.
- Payload size keys shortened to sb / cb (lighter QR).

Cross-version: an older QR (long keys) parses with sizes = 0 (split hidden);
the transfer itself is unaffected.
Match the design mockup: the confirm now shows a 'FROM THE OTHER PHONE' card
with System / Content / (divider) / Total rows, the pink replace notice, and
full-width Continue / Cancel — instead of a single run-on text line. Sizes come
from the QR (getPendingCreds); the table hides if the sender didn't send sizes.
Mirrors the Send 'SHARING NOW' card styling.
On a fresh install (no local rootfs) there's nothing to overwrite, so the
'This replaces your K2Go library / No undo' warning is misleading. Detect it
with rootfsPresent(): if empty, show a benign green 'Nothing to replace' notice;
otherwise keep the clay replace warning. New drawable k2go_ok_bg.
@luisguzman-adfa
luisguzman-adfa merged commit 198015a into main Jul 21, 2026
1 check passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-4790-receive-confirm-breakdown branch July 21, 2026 19:54
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