58b179b275
feat: dark/light theme — CSS variables, OS preference, toggle button
...
- theme.css: CSS custom properties for both modes (surface, accent, text,
sev, badge); .dark class override; smooth 0.15s transitions
- uno.config.ts: colors now reference var() — all semantic classes
auto-switch with the .dark class; dark: 'class' strategy enabled
- main.ts: apply saved preference (localStorage ts-theme) or
prefers-color-scheme before first paint to prevent flash
- App.vue: ☾/☀ toggle button persists choice to localStorage
- IncidentsView: severityStyle() uses badge CSS variables via inline
style — fixes /opacity modifier incompatibility with CSS vars
2026-05-09 16:20:07 -07:00
1ee364fc97
feat: Incidents tab — Vue view with time-bucket picker and entry drawer ( #2 )
...
- New IncidentsView.vue: create/list/delete incidents, inline entry drawer
- Time-bucket quick-pick: Ongoing, Just now, Last hour, Last day
- Optional custom datetime-local range picker for precise control
- Incident label doubles as the LLM/FTS search term for entry retrieval
- Entry drawer shows up to 100 associated log entries with severity colour
- Add /incidents route and nav link (between Diagnose and Sources)
2026-05-09 15:58:21 -07:00
a45fa901dd
feat: Vue 3 frontend and FastAPI REST layer
...
- app/rest.py: FastAPI app wrapping search/diagnose/sources with CORS
- web/: Vue 3 + Vite + UnoCSS + Pinia frontend at port 8535
- LogSearchView: sidebar filters (source, severity, limit) + FTS search
- DiagnoseView: layered symptom investigation matching MCP diagnose tool
- SourcesView: corpus table with entry count, error count, time range
- LogEntryRow: severity badge, pattern chips, repeat count, timestamp
- StatusDot: live API health indicator in nav
- scripts/start_dev.sh: launch FastAPI (:8534) + Vite dev server (:8535)
- .gitignore: add web/node_modules/ and web/dist/
- Caddy: /turnstone* route added to menagerie.circuitforge.tech block
(API → :8534 with /turnstone strip, SPA fallback → :8535)
2026-05-08 16:27:59 -07:00