feat(menu): Tailscale exit-node rows show country/city
The Exit node picker listed bare hostnames; Mullvad-style nodes are meaningless without their location. Rows are now "hostname — Country City", sliced from `tailscale exit-node list` by the header's fixed-width column offsets (COUNTRY/CITY can be multi-word, so field splitting is wrong by construction); nodes without a location stay a bare hostname, and the pick strips back to the hostname at the first space before `tailscale set --exit-node`. Closes BACKLOG LATER "VPN exit-node richer display"; the VPN HARDWARE-QUEUE entry now covers the location rows. Verification: V1 — the awk was proven against a fabricated fixture (one-word city, multi-word "United States / New York, NY", bare self-hosted node), flake check exit 0, downstream-template-home builds (writeShellScriptBin syntax-gates the script). Real `tailscale exit-node list` output stays V3 (existing VPN menu live-paths entry). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,21 @@ Template:
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-11 — Quick wins: exit-node locations + geo tooltip
|
||||
- **Task:** BACKLOG LATER "VPN exit-node richer display" + a geo-mode
|
||||
tooltip nit from the previous iteration (human asked for quick wins).
|
||||
- **Did:** Tailscale Exit node picker rows now "hostname — Country City",
|
||||
sliced by the header's fixed-width column offsets (COUNTRY/CITY are
|
||||
multi-word; never field-split), locationless nodes stay bare, pick strips
|
||||
back to hostname at the first space. Nightlight Waybar tooltip says
|
||||
"follows your location" in geo mode. Queue's VPN entry updated.
|
||||
- **Verified:** V1 — awk proven against a fabricated 3-case fixture
|
||||
(Mullvad 1-word + multi-word city + bare node); flake check exit 0;
|
||||
downstream-template-home builds (writeShellScriptBin syntax-gates both
|
||||
scripts). Real tailscale output is V3 (existing VPN queue entry).
|
||||
- **Pending:** V3 VPN menu live paths (extended, not new).
|
||||
- **Next suggestion:** wallpapers artifact split (LATER, decided).
|
||||
|
||||
## 2026-07-11 — Night-light geo mode (lat/long → wlsunset)
|
||||
- **Task:** BACKLOG LATER "Night-light geo mode" (human-picked).
|
||||
- **Did:** `nomarchy.nightlight.latitude`/`.longitude` (both set = geo mode):
|
||||
|
||||
Reference in New Issue
Block a user