Skip to content

Connections panel: listen-interface preset control (#8) - #16

Merged
Khang5687 merged 3 commits into
fork-mainfrom
feat/preset-control
Sep 16, 2026
Merged

Khang5687 merged 3 commits into
fork-mainfrom
feat/preset-control

Conversation

@Khang5687

Copy link
Copy Markdown
Owner

Ticket: #8 (parent spec #1, ADR 0003). Closes #8.

The Connections panel's Network access switch becomes a listen-interface control: preset select (Local only / Tailscale only / LAN / Custom), custom panel with kind checkboxes (loopback always on) and an IPv4 address list, a read-only "Listening on" line from the resolved addresses, resolver warnings inline, and a confirmation dialog stating the relaunch. Reads selection, preset, resolved addresses and warnings from the desktop exposure state; writes through the selection IPC that #7 added. Derives no preset in the web layer.

Exactly one edit in the upstream Connections settings file (the switch swap plus what the swap orphaned); the control itself is a fork-only component. Settings search retitled to "Exposure" with the old terms retained.

Deviations, both deliberate:

  1. Tailscale Serve toggle is absent rather than disabled when no tailnet address resolves. Since Desktop exposure carries a listen-interface selection #7, the Tailscale endpoint (and its row control) only renders once a tailnet address has resolved, so there is no toggle to disable; rendering one would need a second edit to the Connections file, which this ticket forbids.
  2. The endpoint list's "Exposed on all interfaces" fallback copy is dropped. Under ADR 0003 there is no all-interfaces bind, and the "Listening on" line carries the addresses.

Verification: typecheck clean on web and contracts; lint clean on every touched file; 293 tests across web settings components, web state, and the contracts exposure suite. No browser pass yet; the integrated vp run dev client pass happens on fork-main after merge.

Settings -> Connections drove exposure with a two-valued switch. It now picks
an exposure preset (Local only, Tailscale only, LAN, Custom) over the desktop's
listen-interface selection, with kind checkboxes and an IPv4 address list under
Custom, a read-only "Listening on" line, and resolver warnings inline.

Selection, preset, resolved addresses and warnings all come from the desktop
exposure state; the control never derives a preset itself. Widening the
selection confirms first, because applying one relaunches the backend.

The upstream Connections file gets the swap plus the removal of what the swap
orphans; the control itself is a fork-only component.
…g guide

The confirmation dialog printed raw kind tokens ("loopback, tailnet") while the
checkboxes right above it said "Loopback" and "Tailnet". Both now read the same
label table, and the preset row looks its option up once.

docs/user/remote-access.md still told people to enable a Network access switch
that no longer exists.
Typing an explicit 127.x address opened the relaunch dialog, though it reaches
no further than the loopback kind every selection already carries. The address
box also cleared itself before the dialog resolved, so cancelling made the user
retype what they had entered; the draft now clears once the change lands.
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Sep 16, 2026
@Khang5687
Khang5687 merged commit a164a65 into fork-main Sep 16, 2026
7 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant