mirror of
https://github.com/zvx-echo6/central.git
synced 2026-06-10 11:54:37 +02:00
Central - data hub spine. Adapters -> NATS/JetStream -> archive.
- Python 89.1%
- HTML 9.3%
- CSS 1.3%
- PLpgSQL 0.3%
PR #6 of the v0.7.x GUI rework arc, and its close-out. Production code; central-gui restart only (templates + a static stylesheet; supervisor untouched). The v0.7.0-v0.7.4 arc shipped the FEATURES the gui_preview.html mock shows (chip-pickers, active pills, markercluster + shape/opacity markers, collapsed grouped legend, real paginator, telemetry tab) but on top of the old CSS framework. v0.7.5 closes the visual gap: the framework is removed entirely and replaced by a hand-authored design system that IS the preview (neutral greys, a single blue accent, 6px radii, 14px type, bordered cards/tables). - New static/css/central.css: design tokens + element base (forms, buttons, tables, cards, nav) + every events-feed component, authored so the existing template class names + element IDs the page JS/HTMX depends on (.chip-picker*, .events-table, .event-row, .legend-chip, .evt-marker, #fit-to-results, #map-filter-toggle, ...) render in the preview's language unchanged. Mounted at /static (already wired in __init__.py); linked from base.html + base_wizard.html. - base.html / base_wizard.html: framework <link> removed; nav restructured to the preview shell (.nav / .brand / .nav-links / .logout-btn); flash messages moved off framework color vars to .flash-* classes. - events_list.html: 190-line inline <style> deleted (moved to central.css); map wrapped in .map-container with a floating .map-toolbar (Fit / map-filter toggle), legend below. HTMX wiring (hx-get/hx-target/hx-push-url), the v0.7.1 chip-picker JS, the v0.7.2 marker shapes/opacity, and the v0.7.4 base_path split are untouched. - Every other page (dashboard, adapters, api-keys, enrichment, streams, login, change-password, and the full setup wizard) de-framework'd: framework class names (outline/secondary/contrast/grid/container) renamed to neutral .btn-*/.cols; no framework default rendering; same tokens/typography/forms/tables. - /events.json + the v0.7.1 registry-index adapter palette + v0.7.2 severity opacity + v0.7.4 stable cross-tab chip colors are all unchanged -- this is a visual shell swap, not a behavior or data change. grep -rn pico over templates + static returns zero. All GUI routes return 200 (authed) / 302 (unauthed); no 5xx. Full suite: 682 passed, 1 skipped (central and unprivileged zvx, 3x each). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| etc-templates | ||
| scripts | ||
| sql | ||
| src/central | ||
| systemd | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| CHANGELOG.md | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Central
Central is the data hub spine for the infrastructure. Adapters normalize upstream sources into a canonical event shape, publish CloudEvents to NATS/JetStream, and archive to TimescaleDB for historical query. Single-LXC deployment.
Status
Phase 0 — scaffold. Not yet operational.
Architecture
- Python 3.12 (uv-managed)
- NATS + JetStream for live event bus
- TimescaleDB + PostGIS for archive and geospatial query
- One supervisor process managing adapter lifecycle
- One archive consumer process persisting events to TimescaleDB
- Both processes systemd-managed
Testing
See docs/test-database.md for test database setup.
License
MIT. See LICENSE.