Let the owner change regions by place name, without a restart

The p2p node can now add and drop regions while running (SetRegions):
topics, validators, subscriptions and per-region peer discovery start and
stop with them, and a newly followed region catches up by sync.

PUT /api/v1/regions (owner token) applies a change and the node saves it in
regions.json, which wins over --region from then on. The owner's browser
gets a "Regions" page: search a place by name (GeoNames cities, offline,
CC BY 4.0), follow its cell plus any cell within about 40 km.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 10:28:16 +01:00
co-authored by Claude Sonnet 5.5
parent e7bec4fb63
commit fd439710df
24 changed files with 70080 additions and 42 deletions
+10
View File
@@ -269,6 +269,16 @@ label.check { flex-direction: row; align-items: center; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.muted { color: var(--muted); background: transparent; border: 1px solid var(--line); }
/* the region picker */
.rp-chips, .rp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-results { flex-direction: column; flex-wrap: nowrap; }
.rp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.rp-chip-x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 8px; color: inherit; }
.rp-result { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px; padding: 8px; cursor: pointer; color: inherit; font: inherit; }
.rp-result:hover, .rp-result:focus-visible { border-color: var(--line); background: var(--bg); }
.rp-cells { display: grid; gap: 6px; }
.stack label.rp-cell { flex-direction: row; align-items: center; gap: 8px; color: inherit; font-size: 1rem; }
p.ok { color: var(--ok); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
min-height: 2.25rem;