Skip to content

feat(app): polish the Pair a device card - #550

Merged
linroid merged 1 commit into
mainfrom
feat/polish-pair-card
Oct 14, 2026
Merged

linroid merged 1 commit into
mainfrom
feat/polish-pair-card

Conversation

@linroid

@linroid linroid commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Why

In Settings › Sharing, Stop sharing previously sat in the section header where it drew undue attention among navigation and section controls. The warning explaining that anyone with the pairing link can control Ketch also sat on the same line as the action buttons, crowding them on narrow layouts.

What changed

  • Stop sharing row: Moved from the section header to the bottom of the "Pair a device" card under the settings it ends, styled in danger color using a new KetchButtonVariant.DangerGhost variant (with negative ghost overhang to align with card content).
  • Pairing details layout:
    • The warning that anyone with the link controls Ketch now sits directly under the address.
    • The "New code" action is now a Secondary button with KetchIcon.Retry beside "Copy pairing link" inside the flow row.

Testing

  • :app:shared:jvmTest passed cleanly.

Wi-Fi, mobile data, Ethernet and VPN chips all used the same icon, as the
app did not know what kind of network an interface is. NetworkInterfaceInfo
now carries a NetworkKind (unknown values decode as OTHER, so older and
newer peers interoperate).

Android passes the kind it already read from the transport. The JVM engine
guesses it from macOS hardware ports (networksetup), interface names and
Windows adapter descriptions, counting virtual adapters as OTHER.

The chips show a glyph per kind (new Cellular, Ethernet, Vpn, Bluetooth and
Globe icons) and keep it while selected (KetchChip's checkWhenSelected).
@claude

claude Bot commented Oct 14, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Note: the diff at fb49da0 adds NetworkKind and network-kind chip icons. It has no Pair a device card, Stop sharing or DangerGhost changes, so the title and description may not match this branch.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T03:13:16.506495Z fb49da0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@linroid
linroid merged commit 7bad42b into main Oct 14, 2026
24 checks passed
@linroid
linroid deleted the feat/polish-pair-card branch October 14, 2026 03:18
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