Skip to content

ADFA-4776: Connect — share the library over hotspot / Wi-Fi - #222

Merged
luisguzman-adfa merged 3 commits into
mainfrom
feat/ADFA-4776-connect
Jul 20, 2026
Merged

ADFA-4776: Connect — share the library over hotspot / Wi-Fi#222
luisguzman-adfa merged 3 commits into
mainfrom
feat/ADFA-4776-connect

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Makes the Connect tab functional (was a preview), reusing the existing backend — no new transport.

  • Hotspot: starts a LocalOnly hotspot (LocalHotspotManager); two-code Join → Open flow. QR [tools] fix proot static binary build #1 joins the network (SSID/passphrase fallback), "show next" → QR [android] stick to yarn on proot by default #2 of the browse URL (http://:8085), and a "Done" button ticks step 2 and returns to the Library tab.
  • Wi-Fi: one code — a single Open QR/URL for devices already on the same LAN (NetworkInterfaces.discover); same "Done" forward exit.
  • QR via QrCodec; ACCESS_FINE_LOCATION requested before starting the hotspot; STARTING / FAILED / unsupported / no-Wi-Fi states handled.
  • Step badges keep their number and gain a corner check when done.

Related to ADFA-4725.

… Wi-Fi

Replaces the Connect preview shell with a working two-code flow per the final
design, reusing the existing backend (no new transport):

- Hotspot mode: starts a LocalOnly hotspot (LocalHotspotManager), then a two-step
  Join -> Open flow. Step 1 shows a QR to join the network (SSID/passphrase
  fallback below); "show next" advances to step 2, a QR of the browse URL
  (http://<hotspotIp>:8085) with the URL as fallback.
- Wi-Fi mode: no join needed — a single Open QR/URL for devices already on the
  same LAN (NetworkInterfaces.discover()).
- QR bitmaps via QrCodec; ACCESS_FINE_LOCATION requested before starting the
  hotspot; STARTING / FAILED / unsupported / no-Wi-Fi states handled.
- Step badges keep their number and gain a corner check when done (never replace
  the digit) — matches the wizard's step pattern.
Step 2 only had a backward link ("‹ Back to step 1"), so once the other device was
browsing there was no way forward — the user had to walk back through step 1.

Add a "Done" button above the back link (hotspot, step 2): it ticks step 2 Open
with a corner check, holds ~1.5s so the completion reads, then returns to the
Library tab. Sharing keeps running in the background.
Wi-Fi has no Join→Open steps, so it lacked a forward exit; only the bottom nav
returned home. Show the same 'Done' button in the valid Wi-Fi state so both modes
end the flow consistently and return to the Library tab.
@luisguzman-adfa
luisguzman-adfa merged commit 6443866 into main Jul 20, 2026
1 check passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-4776-connect branch July 20, 2026 17:47
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