mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-09-27 16:07:54 +00:00
dborup: "kan vi have en panel med scopes vi ikke kender på corescope som observer neighbors har fundet" -- a panel showing region-scope names that turn up in neighbors' reported OTA scope lists but aren't part of this deployment's configured hashRegions. Backend: computeUnknownScopes (db.go) is a pure function over the same AllObserverNeighborsEntry rows /api/observers/neighbors already fetches -- no second query. Parses each neighbor's comma-joined scopes string, excludes the "*" wildcard, normalizes missing "#" prefixes, diffs against regionutil.NormalizeNames(cfg.HashRegions), and counts DISTINCT neighbors per unknown scope (not raw rows, which would double-count a neighbor seen by multiple observers) with up to 5 example neighbor names. New unknownScopes field on the existing response. Frontend: new "Scopes CoreScope Doesn't Know About Yet" panel on the Observer Neighbors tool page, rendered above the main table, empty (nothing shown) when there's nothing unknown -- absence is the normal case, not an empty-state message. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>