Skip to content

ADFA-5154 feat(clone): 2-page Send (Join + Get app, then Copy) - #414

Merged
luisguzman-adfa merged 7 commits into
mainfrom
feat/ADFA-5154-clone-2page
Aug 15, 2026
Merged

luisguzman-adfa merged 7 commits into
mainfrom
feat/ADFA-5154-clone-2page

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Collapses the Clone > Send flow from a 3-step wizard into two pages, matching
the Connect stacked-QR pattern (shared QrSection / view_k2go_qr_section).

  • Page 1 (Prepare): Join ① and Get app ② stacked, both QRs live at once.
  • Page 2 (Copy): transfer QR + sizes. One gate ("Installed? Copy the library"
    / "Back to step 1") advances between them.
  • Removes the stage/sendApp state machine and the separate "Send the app"
    sub-screen; the daemon/transfer logic is unchanged.
  • Chrome parity with Connect/Library: the header/back + Send/Receive tabs +
    Hotspot/Wi-Fi selector are pinned above a ScrollView, and the action button
    (Stop / Start / Share anyway / Recover) is a pinned bottom footer.
  • "Starting service…" animates its dots (shared EllipsisAnimator).
  • Switching Hotspot/Wi-Fi scrolls back to the top (the two tabs differ in
    height, since Wi-Fi's Join has no QR).
  • Library's sharing banner now reads "Transferring between devices", matching
    the notification wording — base string + all 33 locales.

Follow-up: remove the now-vestigial deep app view / skip-app / send-app entry
scaffolding (kept GONE this PR to keep the diff focused).

Verified: build + lint pass; device-tested both tabs, the gate round-trip,
Receive, no-system, and re-bind to a live session.

…R sections

The stacked "scan this" section — teal badge + title, QR on a Paper card (with a placeholder), caption/subcaption, and the reveal-on-tap fallback — as a reusable <include>, bound by the shared QrSection holder (ADFA-5157). Generic sec_* ids so a page can include it more than once. Deferred from 5157 until both shapes were concrete; Connect's two-section page and Clone Page 1 (Join + Get app) now consume it.
Collapse the Send wizard into two pages, matching the Connect stacked-QR
pattern. Page 1 (Prepare) stacks two QrSection cards — ① Join the network
and ② Get the app — both live at once; Page 2 (Copy) starts the daemon and
shows the transfer QR. One gate ("Installed? Copy the library" / "Back to
step 1") replaces the old 3-step stage machine.

Removes the stage/sendApp state and the separate "Send the app" sub-screen
(the APK QR is inline on Page 1 now); the daemon/transfer logic in
renderStartState is unchanged. The deep app view, skip-app and send-app
entry are left GONE for a follow-up cleanup once the flow is validated.
Collapse the Send wizard into two pages, matching the Connect stacked-QR
pattern. Page 1 (Prepare) stacks two QrSection cards — ① Join the network
and ② Get the app — both live at once; Page 2 (Copy) starts the daemon and
shows the transfer QR. One gate ("Installed? Copy the library" / "Back to
step 1") replaces the old 3-step stage machine.

Removes the stage/sendApp state and the separate "Send the app" sub-screen
(the APK QR is inline on Page 1 now); the daemon/transfer logic in
renderStartState is unchanged. The deep app view, skip-app and send-app
entry are left GONE for a follow-up cleanup once the flow is validated.

Adds three Page-1 strings (join hotspot/Wi-Fi titles, get-app caption) with
translations across all 33 locales.
@luisguzman-adfa
luisguzman-adfa merged commit ec668f3 into main Aug 15, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-5154-clone-2page branch August 15, 2026 15:44
Match Connect's layout: move the header/back + Send/Receive tabs +
Hotspot/Wi-Fi selector out of the ScrollView into a pinned block, so the
active network stays visible while the QR content scrolls. Only fork, the
stepper, the two Send pages and the Receive box scroll now.

Also stop showing the "STEP 2 BELOW" hint on Page 1 — Connect keeps its
equivalent hidden, so Clone matches.
…on, align sharing label

Page 2 (Copy) polish plus a matching Library label:
- "Starting service" now animates its trailing dots via the shared
  EllipsisAnimator (as Library/Backup do), so the wait never looks frozen.
- Stop sharing (and its Start sharing / Share anyway / Recover variants)
  moves to a pinned bottom footer, fixed like Library's "Get more" and
  Settings' "Turn off K2Go", instead of scrolling with the content.
- Library's sharing banner "Sharing with another phone" becomes
  "Transferring between devices", matching the notification wording, across
  the base string and all 33 locales.
The Send common chrome didn't reset the pinned footer, so returning from
Copy to Page 1 (Prepare) left "Stop sharing" showing there. Default it to
GONE; only Copy's states re-show it.
Page 1's Join section has a QR on Hotspot but not on Wi-Fi, so the two tabs
differ in height and switching mid-scroll left the view offset. Snap the
content ScrollView back to the top on mode change.
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