Skip to content

feat: [CONNECT] Connect dialog with local IP addresses and QR codes - #707

Merged
florent37 merged 7 commits into
mainfrom
feat/desktop-connect-qr-dialog
Oct 29, 2026
Merged

florent37 merged 7 commits into
mainfrom
feat/desktop-connect-qr-dialog

Conversation

@florent37

Copy link
Copy Markdown
Contributor

Description

Adds a Connect button (QR icon) in the desktop top bar, next to "open flocon folder". It opens a dialog that lists the IPv4 addresses of the computer on the local network (one row per interface, loopback and link-local filtered out). Each row has a button that shows the address as a QR code, so devices can connect by scanning it. The QR contains only the IP, the same value as Flocon.connect("192.168.1.20"). Scanning from the SDK comes later.

  • Desktop: domain GetLocalAddressesUseCase (filter/sort, unit tested), JVM NetworkInterface repository in data:remote (expect/actual), ConnectViewModel + ConnectDialog, QR drawn with com.google.zxing:core, EN/FR strings.
  • Docs: new "Connecting with a QR code" section in docs/setup.md.
  • SDK / MCP / protocol: no change.

Checked locally: :domain:desktopTest, :composeApp:compileKotlinDesktop, ktlintFormat. Not checked: running the app to scan a QR visually, mkdocs build --strict.

/gemini review

@florent37
florent37 marked this pull request as draft October 28, 2026 16:51
@florent37
florent37 marked this pull request as ready for review October 28, 2026 17:05
@florent37
florent37 enabled auto-merge (squash) October 28, 2026 17:05
@florent37
florent37 disabled auto-merge October 29, 2026 08:23
@florent37
florent37 merged commit f3bfef9 into main Oct 29, 2026
3 checks passed
@florent37
florent37 deleted the feat/desktop-connect-qr-dialog branch October 29, 2026 08:23
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