Skip to content

ADFA-5154: Connect (Hotspot) — both QRs on one scrollable page - #412

Merged
luisguzman-adfa merged 4 commits into
mainfrom
feat/ADFA-5154-connect-stacked-qr
Aug 15, 2026
Merged

luisguzman-adfa merged 4 commits into
mainfrom
feat/ADFA-5154-connect-stacked-qr

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Connect half of ADFA-5154. The Hotspot tab stops hiding the QR of the step you're not on:
both codes now sit on one scrollable page at fixed positions, so the user builds a stable
spatial map instead of chasing a code that swaps in place.

What changes

  • Hotspot: two stacked sections — (1) Join, (2) Open — always present, replacing the
    single-QR Join->Open wizard. The old wizard controls ("show next" / "back to step 1") are
    gone; the two QRs are independent, so there is no gate.
  • Sticky chrome: the segmented tabs are pinned outside the ScrollView; only the middle
    scrolls, with a visible scrollbar and a "STEP 2 BELOW" hint between the sections so the
    lower one is discoverable on small screens.
  • Both hotspot codes need the hotspot ON (ssid/pass for Join, the IP for Open), and the
    manager publishes all three together at Phase.ON. While it is still starting, both slots
    show a caption placeholder in a fixed-size frame (record-time on LocalOnly, so a blink) and
    the QR fills in with no layout shift. A genuine failure / unsupported device is one status
    in the single container, not two dead frames.
  • Wi-Fi tab is unchanged (single QR), served by the same single container.
  • New teal section-badge drawable; new strings (section titles, the hint, Done) across all
    33 locales.

Preserved (no functional loss)
Both QR payloads, per-section scan fallback (reveal-on-tap), the hotspot lifecycle states,
no-system -> Recover (ADFA-5150), redraw on network change, the location-permission prompt,
and Done -> Library.

Scope / follow-up

  • Connect only. Clone (the matching 2-page restructure that keeps the mechanism symmetric)
    is a separate PR; nothing here depends on it. The shared pieces (section card, numbered
    badge, "STEP N BELOW" hint) originate here and Clone will reuse them.
  • Design-only in intent; app's real Material 3 tokens.

Verification
javalang parse on ConnectFragment; XML well-formedness on the layout, the badge drawable and
all 34 strings files; every locale carries the 4 new strings (MissingTranslation is a hard
error). Visual/interaction pass is on-device (a layout + render change can't be rendered in
CI); the 33-locale wording is a first pass and may want a human review.

…shing step)

Replace the single-QR Join/Open wizard with two stacked sections (1 Join, 2 Open), always
present, on one scroll; sticky tabs pinned outside the scroll; a "STEP 2 BELOW" hint between
them; per-section fallback reveal. While the LocalOnly hotspot is still starting both slots
show a placeholder (record-time, so a blink); a genuine failure/unsupported is one status, not
two dead frames. Wi-Fi keeps its single QR. Preserves no-system->Recover (5150), network
re-render, location permission and Done->Library. Adds the teal section-badge drawable.
New strings: section titles (Join my hotspot / Open the library), the "STEP 2 BELOW" hint,
and Done. Translated across all 33 locales.
New strings: section titles (Join my hotspot / Open the library), the stepper labels
(Join / Open), the "STEP 2 BELOW" hint, and Done. Translated across all 33 locales.
…port

Collapse the three QR sections (Join / Open / single) into a Section holder (frame, code,
placeholder, captions, and its own fallback-reveal state), so the fragment no longer carries
parallel field sets or an index into a fbOpen[] array. Remove the now-unused
android.graphics.Color import (the section badge is always filled). No behavior change.
@luisguzman-adfa
luisguzman-adfa merged commit afd9455 into main Aug 15, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-5154-connect-stacked-qr branch August 15, 2026 08:01
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