mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
feat(region-routing): unified per-family routing cards + region-scoped family→channel routing (#87)
* feat(region-routing): P1 tagging + region_routes primitive + read/write API + preview launcher - config.py: add Coverage.region_tagging (bool=False); add RegionRouteMatrix dataclass (enabled, cells) above NotificationsConfig; add region_routes field to NotificationsConfig; add explicit hydration branch for region_routes in _dict_to_dataclass mirroring destinations pattern. - coverage_area.py: add MonitoringArea.name (str|None=None, frozen); update areas_from_config to preserve name; refactor inline geom extraction from classify_event_areas into shared _event_geom_json helper; add matching_area_names(geom_json, areas)->list[str] (additive, all named matches, config-order, deduped; gate unchanged); add event_region_names convenience wrapper. - coverage_filter.py: add region_tagging ctor kwarg; stamp event.region/ regions before the gate when region_tagging=True and areas non-empty and not event.regions (never clobbers satpass preset). - pipeline/__init__.py: wire region_tagging into CoverageFilter construction. - notification_routes.py: add GET /notifications/regions (named coverage area names, config-order, deduped); GET /notifications/region-routing (matrix as JSON); POST /notifications/region-routing (explicit RMW — only region_routes changes, toggles/rules/destinations survive). - scripts/preview_dashboard.py: mesh-free launcher — dashboard API only, no mesh connector, no broadcast loop; vite runs separately. All 87 coverage tests pass; 300 total pass; 6 pre-existing failures unchanged (adapter config count mismatch + MeshCore EventType.NEW_CONTACT). * feat(region-routing): manual region x family matrix editor page Adds RegionRoutingMatrix.tsx — a plain editor over the region_routes config primitive. Rows = families (via useFamilies()), cols = regions (from GET /api/notifications/regions). Each cell exposes MT channel (ChannelPicker single + includeDisabled), MC channel name (text input), min_severity select (routine/priority/critical/immediate), and an enabled checkbox. Only cells where MT or MC is set are included in the sparse POST payload. Master enable toggle maps to top-level enabled. MT budget guard warns when more than 7 distinct MT indices are in use. Sticky family column; horizontal scroll for wide region sets. Registers route /region-routing in App.tsx and adds "Region Routing" nav entry (Map icon) under the Meshtastic section in Layout.tsx, immediately after Routing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(region-routing): regions endpoint reads saved (disk) coverage so routing columns are dynamic without a bot restart; preview reloads config after writes * feat(routing): unify MT/MC routing into per-family cards; region routing as an in-card expand; remove rules/destinations UI + standalone page * refactor(routing): move Meshtastic Routing from /notifications to /meshtastic/routing (mirror /meshcore/routing); redirect legacy path * feat(region-routing): dispatcher honors region_routes matrix (authoritative-on-match, per-region cooldown, per-channel dedup); non-matrix path unchanged Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(region-routing): matrix dedup key must match boot-restore 2-tuple form (prevents restart re-broadcast flood); regression test --------- Co-authored-by: Matt Johnson <mj@k7zvx.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ceb95fb80e
commit
2c46c9104d
8638 changed files with 1589821 additions and 2380 deletions
13
work/dashboard-frontend/node_modules/d3/LICENSE
generated
vendored
Normal file
13
work/dashboard-frontend/node_modules/d3/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Copyright 2010-2023 Mike Bostock
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose
|
||||
with or without fee is hereby granted, provided that the above copyright notice
|
||||
and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
12
work/dashboard-frontend/node_modules/d3/README.md
generated
vendored
Normal file
12
work/dashboard-frontend/node_modules/d3/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# D3: Data-Driven Documents
|
||||
|
||||
<a href="https://d3js.org"><img src="./docs/public/logo.svg" width="256" height="256"></a>
|
||||
|
||||
**D3** (or **D3.js**) is a free, open-source JavaScript library for visualizing data. Its low-level approach built on web standards offers unparalleled flexibility in authoring dynamic, data-driven graphics. For more than a decade D3 has powered groundbreaking and award-winning visualizations, become a foundational building block of higher-level chart libraries, and fostered a vibrant community of data practitioners around the world.
|
||||
|
||||
## Resources
|
||||
|
||||
* [Documentation](https://d3js.org)
|
||||
* [Examples](https://observablehq.com/@d3/gallery)
|
||||
* [Releases](https://github.com/d3/d3/releases)
|
||||
* [Getting help](https://d3js.org/community)
|
||||
92
work/dashboard-frontend/node_modules/d3/package.json
generated
vendored
Normal file
92
work/dashboard-frontend/node_modules/d3/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{
|
||||
"name": "d3",
|
||||
"version": "7.9.0",
|
||||
"description": "Data-Driven Documents",
|
||||
"homepage": "https://d3js.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/d3/d3.git"
|
||||
},
|
||||
"keywords": [
|
||||
"d3",
|
||||
"dom",
|
||||
"visualization",
|
||||
"svg",
|
||||
"animation",
|
||||
"canvas"
|
||||
],
|
||||
"license": "ISC",
|
||||
"author": {
|
||||
"name": "Mike Bostock",
|
||||
"url": "https://bost.ocks.org/mike"
|
||||
},
|
||||
"type": "module",
|
||||
"files": [
|
||||
"dist/d3.js",
|
||||
"dist/d3.min.js",
|
||||
"src/**/*.js"
|
||||
],
|
||||
"module": "src/index.js",
|
||||
"main": "src/index.js",
|
||||
"jsdelivr": "dist/d3.min.js",
|
||||
"unpkg": "dist/d3.min.js",
|
||||
"exports": {
|
||||
"umd": "./dist/d3.min.js",
|
||||
"default": "./src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"d3-array": "3",
|
||||
"d3-axis": "3",
|
||||
"d3-brush": "3",
|
||||
"d3-chord": "3",
|
||||
"d3-color": "3",
|
||||
"d3-contour": "4",
|
||||
"d3-delaunay": "6",
|
||||
"d3-dispatch": "3",
|
||||
"d3-drag": "3",
|
||||
"d3-dsv": "3",
|
||||
"d3-ease": "3",
|
||||
"d3-fetch": "3",
|
||||
"d3-force": "3",
|
||||
"d3-format": "3",
|
||||
"d3-geo": "3",
|
||||
"d3-hierarchy": "3",
|
||||
"d3-interpolate": "3",
|
||||
"d3-path": "3",
|
||||
"d3-polygon": "3",
|
||||
"d3-quadtree": "3",
|
||||
"d3-random": "3",
|
||||
"d3-scale": "4",
|
||||
"d3-scale-chromatic": "3",
|
||||
"d3-selection": "3",
|
||||
"d3-shape": "3",
|
||||
"d3-time": "3",
|
||||
"d3-time-format": "4",
|
||||
"d3-timer": "3",
|
||||
"d3-transition": "3",
|
||||
"d3-zoom": "3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@observablehq/plot": "^0.6.7",
|
||||
"@observablehq/runtime": "^5.7.3",
|
||||
"@rollup/plugin-json": "6",
|
||||
"@rollup/plugin-node-resolve": "15",
|
||||
"@rollup/plugin-terser": "^0.4.0",
|
||||
"eslint": "8",
|
||||
"mocha": "10",
|
||||
"rollup": "3",
|
||||
"topojson-client": "^3.1.0",
|
||||
"vitepress": "^1.0.0-beta.2"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha 'test/**/*-test.js' && eslint src test",
|
||||
"prepublishOnly": "rm -rf dist && rollup -c",
|
||||
"postpublish": "git push && git push --tags",
|
||||
"docs:dev": "node --experimental-network-imports node_modules/vitepress/dist/node/cli.js dev docs",
|
||||
"docs:build": "./prebuild.sh && node --experimental-network-imports node_modules/vitepress/dist/node/cli.js build docs",
|
||||
"docs:preview": "vitepress preview docs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
}
|
||||
30
work/dashboard-frontend/node_modules/d3/src/index.js
generated
vendored
Normal file
30
work/dashboard-frontend/node_modules/d3/src/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
export * from "d3-array";
|
||||
export * from "d3-axis";
|
||||
export * from "d3-brush";
|
||||
export * from "d3-chord";
|
||||
export * from "d3-color";
|
||||
export * from "d3-contour";
|
||||
export * from "d3-delaunay";
|
||||
export * from "d3-dispatch";
|
||||
export * from "d3-drag";
|
||||
export * from "d3-dsv";
|
||||
export * from "d3-ease";
|
||||
export * from "d3-fetch";
|
||||
export * from "d3-force";
|
||||
export * from "d3-format";
|
||||
export * from "d3-geo";
|
||||
export * from "d3-hierarchy";
|
||||
export * from "d3-interpolate";
|
||||
export * from "d3-path";
|
||||
export * from "d3-polygon";
|
||||
export * from "d3-quadtree";
|
||||
export * from "d3-random";
|
||||
export * from "d3-scale";
|
||||
export * from "d3-scale-chromatic";
|
||||
export * from "d3-selection";
|
||||
export * from "d3-shape";
|
||||
export * from "d3-time";
|
||||
export * from "d3-time-format";
|
||||
export * from "d3-timer";
|
||||
export * from "d3-transition";
|
||||
export * from "d3-zoom";
|
||||
Loading…
Add table
Add a link
Reference in a new issue