Skip to content

feat(start-wrt): draw chained outbound VPNs as nested tunnels - #4320

Merged
Dominion5254 merged 10 commits into
masterfrom
wrt/vpn-chain-pipes
Nov 11, 2026
Merged

Dominion5254 merged 10 commits into
masterfrom
wrt/vpn-chain-pipes

Conversation

@gStart9

@gStart9 gStart9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

VPN Tunnel Diagram Added:

Replaces the outbound VPN page's connection-path avatar row with a diagram of nested tunnels.

A VPN's endpoint is routed through its target, so the VPN being viewed is the innermost tunnel. It runs from the router to its own server, where traffic exits. Each VPN it connects through wraps it in a further tunnel that ends at an earlier server.

The diagram draws each tunnel as a pipe sized to fit exactly around the next, with your traffic as a core running from the router to the internet. Every pipe runs back into the router. Near the router, each pipe's front half is cut away, and each outer layer's cut extends farther, so the exposed layers show where each tunnel starts and which ones run inside which. Each pipe ends at a server card titled with that VPN's label, and the pipes inside it continue out the far side. The diagram extends to any chain length and scrolls sideways on narrow screens. Colors follow distance from the Internet-facing end, so a VPN keeps its color on every page that shows it. A legend names each tunnel.

The avatar row listed the chain from the client outward, which reads as the reverse of the actual nesting. The "Connection Path" help entry said traffic exits through the last VPN in the chain. It now describes the nesting correctly in all five languages. buildConnectionPath becomes buildChain, which returns only the VPN labels, and the now-unused Client string is removed from the dictionaries.

"Connects to" and "Target" relabeled "Connects via":

The setting that chooses how a VPN reaches its server was labelled "Target" when adding a VPN and "Connects to" on its page. It now reads "Connects via" everywhere: the Add VPN dialog, the VPN table, the VPN page, the in-app help and the docs, in all five languages. The warnings shown when a VPN can't be deleted or disabled were assembled from word fragments, which can't be translated with correct word order. Each is now one sentence, such as "To delete this VPN, first change Mullvad to connect via something else." The nine unused fragment strings are removed.

The docs' Connection Path entry described the old arrow row and said traffic exits at the first VPN listed. It now describes the nested tunnels.

Verified with npm run check:wrt, npm run check:i18n:wrt, prettier --check and npm run build:wrt. Rendered against the mock API in headless Chromium with one- and three-VPN chains, in light and dark themes and at a 420px width.

Merged master 4812945 (#4662, USB Ethernet ports) as ab30820. #4662 took dictionary IDs 634–638, so this PR's four strings moved to 639–642 in all five locales. npm run check:wrt and npm run check:i18n:wrt pass on ab30820.

🤖 Generated with Claude Code

@gStart9

gStart9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Member Author

Here are the images it pumped out for me as what it will look like:
zoom
ivpn
ivpn-m

@gStart9
gStart9 requested a review from Dominion5254 October 20, 2026 19:53
@gStart9
gStart9 force-pushed the wrt/vpn-chain-pipes branch 2 times, most recently from c8f0456 to 12d7516 Compare October 22, 2026 15:52
@dr-bonez
dr-bonez marked this pull request as draft October 22, 2026 17:21
@helix-white

Copy link
Copy Markdown
Member

Updated release metadata for #4459: pending fragments declare their audience and unreleased notes retain framing/notices only; Highlights compile from the fragments. Inherited pending SDK 3.1.2 metadata is migrated where present. Published notes and implementation files are unchanged. The current master compiler validated/rendered this PR’s migrated metadata overlaid on current master, and scoped pinned-Prettier checks passed. This metadata-only update does not resolve older inherited histories/manifests or pre-existing integration conflicts; the branch still needs its normal base refresh before release.

@helix-white

Copy link
Copy Markdown
Member

Merged current master (d510a40), added German, Spanish, French and Polish companions for every changed fragment, and adopted generated Highlights/Security sections. Summary-only files were removed; Important notices were retained.

Affected-product version checks, complete localized release-bundle compilation and scoped formatting passed. Preserved both the VPN chain diagram and master’s status/handshake information. Reassigned the two colliding dictionary IDs; StartWRT typechecking/i18n checks and scoped formatting passed. Product-level builds and tests remain with CI.

gStart9 and others added 3 commits November 9, 2026 13:21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The setting was called "Target" in the Add VPN dialog and the help, and
"Connects to" on a VPN's page and in the table. Both now read "Connects
via" in the UI, help and docs. The delete and disable warnings were built
from word fragments that could not be reworded or translated correctly;
each is now one sentence. The docs' Connection Path entry describes the
nested-tunnel diagram, and the changelog fragment gets its frontmatter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gStart9
gStart9 force-pushed the wrt/vpn-chain-pipes branch from b35c904 to f56fc71 Compare November 9, 2026 21:14
@gStart9 gStart9 added the patch label Nov 9, 2026
@gStart9
gStart9 marked this pull request as ready for review November 9, 2026 21:14
gStart9 and others added 4 commits November 9, 2026 14:55
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-fixes

Master took dictionary IDs 619-632, so this branch's four new strings
move to 633-636.
Two pairs of tunnel colors were hard to tell apart with full color
vision: the second and fourth, yellow and orange (OKLab ΔE 11.3, below
15), and the adjacent fifth and sixth, dark red and magenta (12.5). The
first three stay; the new last three make every pair of the six distinct
under protan, deutan and normal vision, in both themes. Measured against
@taiga-ui/styles' chart palette, which the app loads.

A 12-character label of wide glyphs ran past its 140px server card into
the next one. The label is now HTML in a foreignObject, cut with an
ellipsis; realistic labels measure at most ~103px of the 124px available.

The diagram is announced as one image, labelled with the route from the
router through each server to the Internet.
The VPN page's help still defined Connects via as "where traffic from
this VPN should be routed" and said chained traffic exits through
multiple servers, as did the outbound overview. Traffic passes through
every server in the chain but leaves for the Internet from one, which
the Connection Path entry and the docs already say. Both passages are
corrected in all five languages, matching the Add VPN dialog's help.

The label fragment drops its release-notes selection: a renamed label
is a routine change.
fix(start-wrt): review fixes for the nested VPN tunnel diagram

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 8fe0c4ba54e0257bbf61e237d34ef7eed895c787. I found no correctness regressions in the diff. The head merges cleanly with current master.

Brief

  • Outbound VPNs → a VPN’s detail page now draws nested tunnels instead of an avatar-and-arrow row. For Mullvad connecting via Proton, Proton’s outer tunnel ends first; Mullvad’s inner tunnel continues to its own server, where traffic leaves for the Internet. Existing status, handshake and profile-use information remains intact.
  • Connects via replaces Target / Connects to in the add dialog, table, detail page, help and book. Delete/disable hints become whole translated sentences rather than word fragments. All five dictionaries are updated, and unused strings are removed.
  • This changes presentation, not routing, stored configuration or RPC contracts. Existing VPNs need no migration. The existing chain traversal remains the owner of chain membership; the new component owns SVG geometry and reuses the existing translation/interpolation helpers and Taiga palette tokens. Custom SVG represents the tunnel nesting that the old avatar row could not show.
  • The diagram shrinks to 70% of its intrinsic width before scrolling horizontally. Its six colors repeat for longer chains; server names and the legend provide identification independently of color. Wide server labels are ellipsized inside their cards, with complete names retained in the legend and accessible route label. The diagram represents configured topology, not live tunnel availability; the separate status summary remains authoritative for availability.

Implementation diff: +393 / −169 lines in 11 files (excludes lockfiles, tests, docs, release notes, and changelog). In-app explanatory help content is classified as documentation; dictionaries remain implementation.

Evidence

The author records successful StartWRT typechecking, dictionary checking, formatting, production building and mock-browser rendering. The incorporated fixes in #4675 additionally record palette measurements and current-label rendering. I reviewed those changes, the affected callers, translated placeholders and the backend’s target semantics. I ran no tests, lint or standalone typechecks as reviewer.

For the required screenshots only, I built this exact head with the demo/mock API and captured its one- and two-VPN pages in Chromium, including a 420px viewport. Screenshots follow separately. The build completed with bundle-budget and CommonJS warnings. This is mock UI evidence, not a live router/VPN exercise; Safari remains unverified.

Current CI has passed formatting/lockfiles, Prettier, changelog/version validation, dependency licenses and conflict-marker checks. Automated tests, generated artifacts and the riscv64 binary build are still running; OpenWrt image/deploy jobs are skipped. Approval does not establish completion of those pending checks.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Reviewed head: Mullvad’s tunnel runs inside Proton’s; Connects via identifies the carrier.

Reviewed head at 420px: the nested diagram scrolls horizontally and its legend wraps.

Reviewed head: a single VPN tunnel ends at Proton before traffic continues to the Internet.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested for base integration. The reviewed head 8fe0c4ba54e0257bbf61e237d34ef7eed895c787 now conflicts with master at bee51e17c12c2d7fd794e3bf0dba3574bde723da. git merge-tree --write-tree confirms conflicts in projects/start-wrt/web/src/app/i18n/dictionaries/{en,de,es,fr,pl}.ts.

Both branches allocated dictionary ID 633: master uses it for the refused automatic-port-forward request notice, while this PR uses it for the VPN tunnel legend. The proposed merge preserves master's ID 633 and moves this PR's four strings to IDs 634–637 consistently in all five dictionaries. Wording and behavior are otherwise unchanged. All other base changes merge automatically.

Proposed changes: 8fe0c4b...proposal/4320

The proposal contains the base merge and conflict resolution in commit f4745afa4. Git confirms that proposal merges cleanly with the fetched base. As reviewer, I pushed only proposal/4320, not this PR's branch, and ran no builds, tests, typechecks or lint. The author must adopt and verify the integration, then request review again. This supersedes the earlier approval's mergeability assessment; it is not a finding against the tunnel implementation.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

helix-white commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Resolved in ab30820. The author merged master 4812945 and adopted the refreshed proposal exactly, preserving USB-Ethernet IDs 634–638 and moving VPN strings to 639–642 across all five dictionaries. The author records passing StartWRT typechecking and i18n checking on that head. Re-review confirms the complete tree matches proposal/4320 and merges cleanly with current master; approval has been renewed. The PR branch was not modified by this reviewer session.

# Conflicts:
#	projects/start-wrt/web/src/app/i18n/dictionaries/de.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/en.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/es.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/fr.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/pl.ts
@Dominion5254

Copy link
Copy Markdown
Member

Merged master 246876d31 as e994764e4. Master keeps dictionary ID 633 for the refused port-forward notice, and this PR's four strings move to 634–637 in all five dictionaries, with wording unchanged. The resolved dictionaries match proposal/4320 (f4745afa4) exactly. No other file conflicted.

Verified on e994764e4: npm run check:wrt passes, npm run check:i18n:wrt passes (588 keys), prettier --check passes on every file the PR changes, and node scripts/changelog.mjs check-version projects/start-wrt passes.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at e994764e47c92057387378248f2ece94019fc352. The base-integration request is resolved: all five dictionaries exactly match the proposed resolution, retaining master's port-forward notice at ID 633 and assigning the four VPN strings to IDs 634–637. The head merges cleanly with current master; no additional correctness findings.

Brief

  • A VPN's detail page replaces the arrow/avatar row with nested tunnels. For Mullvad connecting via Proton, Proton carries Mullvad's tunnel to Proton's server, then Mullvad's tunnel continues to its own server, where traffic exits to the Internet. Existing status, handshake and profile-use information remains intact.
  • Connects via replaces Target / Connects to across the add dialog, table, detail page, translated help and book. Delete/disable hints now use whole translated sentences instead of word fragments. All five dictionaries are updated and unused strings removed.
  • Routing, RPC contracts and stored configuration remain unchanged; no migration is required. The existing traversal owns chain membership. Custom SVG expresses the nesting the former avatar row could not, while reusing the existing interpolation helpers and Taiga color tokens.
  • The diagram shrinks to 70% of intrinsic width before scrolling horizontally. Six colors repeat for longer chains; names and the legend identify tunnels independently of color. Wide card labels are ellipsized, with full names retained in the legend and accessible route label. The diagram shows configured topology; availability remains in the separate status summary.

Implementation diff: +393 / −169 lines in 11 files (excludes lockfiles, tests, docs, release notes, and changelog). In-app explanatory help is classified as documentation; dictionaries remain implementation.

Verification evidence

The author reports successful StartWRT typechecking, i18n checking (588 keys), scoped formatting and product-version validation on this exact head. Earlier recorded evidence covers production building, mock-browser rendering and palette measurements. I inspected the merge resolution and confirmed the outbound implementation, help and summary styling are unchanged since the prior approval. I ran no tests, builds, typechecks or lint during this re-review.

The screenshots below remain representative: captured previously in Chromium against the mock API, showing the unchanged one-/two-VPN UI and a 420px viewport. They do not establish live VPN behavior or Safari compatibility. Current-head CI is pending, including Prettier, conflict-marker, changelog/version and riscv64-build checks; OpenWrt image/deploy jobs are skipped. Approval does not imply CI completion.

Two-VPN chain: Mullvad runs inside Proton; Connects via selects its carrier.

At 420px the diagram scrolls horizontally and the legend wraps.

A single VPN tunnel ends at Proton before traffic continues to the Internet.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Final approval is recorded on e994764, and the PR remains mergeable. The riscv64 build and all completed checks passed; Run Automated Tests and Generated Artifacts are still running. No code changes are needed in response to the approval. Leaving merge handling to the normal workflow.

# Conflicts:
#	projects/start-wrt/web/src/app/i18n/dictionaries/de.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/en.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/es.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/fr.ts
#	projects/start-wrt/web/src/app/i18n/dictionaries/pl.ts
helix-white added a commit that referenced this pull request Nov 11, 2026
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested for a new base-integration conflict. e994764e47c92057387378248f2ece94019fc352 conflicts with master 4812945752a1357b9ecd2fef33a0fbab5fb1b043 in all five StartWRT dictionaries: projects/start-wrt/web/src/app/i18n/dictionaries/{en,de,es,fr,pl}.ts.

Master's USB-Ethernet feature now owns IDs 634–638, which overlap this PR's VPN strings. The refreshed proposal preserves those USB strings and IDs, moves the four VPN strings to 639–642 consistently across all five dictionaries, and retains every translation unchanged. It merges the current base; the Ethernet help updates merge automatically alongside this PR's VPN help.

Proposed changes: e994764...proposal/4320

Proposal commit: 72284c3b4. Git confirms it merges cleanly with the fetched base. I pushed only the proposal branch and ran no builds, tests, typechecks or lint as reviewer. The author must adopt and verify the base integration, then request re-review. No change to VPN behavior is proposed.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at ab3082087acd0c4036677f007d683d18670737e3. Its complete tree matches the refreshed proposal exactly. The merge preserves master's USB-Ethernet strings at IDs 634–638 and moves the four VPN strings to 639–642 in every locale, without changing wording. The head merges cleanly with current master. No additional correctness findings.

Brief

  • VPN detail pages replace the arrow/avatar row with nested tunnels: for Mullvad connecting via Proton, Proton's outer tunnel ends first and Mullvad's inner tunnel continues to its own server, where traffic exits to the Internet. Existing availability, handshake and profile-use information remains intact.
  • Connects via replaces Target / Connects to in the add dialog, table, detail page, help and book. Delete/disable hints use whole translated sentences instead of word fragments. All five dictionaries are updated; unused strings are removed.
  • Routing, RPC contracts and stored configuration remain unchanged; no migration is needed. The existing traversal owns chain membership, while custom SVG expresses the nesting and reuses existing interpolation helpers and Taiga color tokens. The diagram represents configured topology, not observed availability.
  • The diagram shrinks to 70% of intrinsic width before horizontal scrolling. Six colors repeat on longer chains; full names in the legend and accessible route label identify tunnels independently of color and truncated card labels.

Implementation diff: +393 / −169 lines in 11 files (excludes lockfiles, tests, docs, release notes, and changelog). In-app explanatory help is classified as documentation; dictionaries remain implementation.

Evidence

The author records passing StartWRT typechecking and i18n checking on this exact head. Earlier evidence covers formatting, version validation, production building, palette measurements and mock-browser rendering. This re-review confirms exact adoption of the proposed merge and no VPN implementation changes. I ran no builds, tests, typechecks or lint.

The existing Chromium/mock screenshots remain representative of the unchanged VPN UI. They do not establish live VPN behavior or Safari compatibility. Current-head CI remains pending, including Prettier, changelog/version validation and the riscv64 build; conflict-marker checks passed. OpenWrt image/deploy jobs are skipped. Approval does not imply CI completion.

Two-VPN nesting and the Connects via setting.

420px viewport: horizontally scrolling diagram and wrapping legend.

Single-VPN tunnel ending at its server.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@Dominion5254
Dominion5254 merged commit a3c3e3e into master Nov 11, 2026
20 of 21 checks passed
@Dominion5254
Dominion5254 deleted the wrt/vpn-chain-pipes branch November 11, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants