Root reorg: src/ config/ plans/ layout + admin facelift #9
Reference in New Issue
Block a user
Delete Branch "neuralwatt-router-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root reorganization + admin facelift
File layout (structured: src/ + config/ + plans/)
Admin portal
Config defaults
Decisions page: 50/100/250-per-page pagination with Prev/Next and a page indicator (fetch bumped to 1000 rows to have enough to paginate through); category/source get the same colored-badge treatment kind already had (tier reverted back to plain colored text -- a filled pill was overkill); capability flags (tools/images/json-mode/streamed) as compact on-only chips in a new Flags column; row padding and font-size tightened for a noticeably denser scan. Fixes: - Category Breakdown label truncation ("tool_use_ag...", "coding_refac...") -- it was reusing Verdict Mix's 88px label column, sized for short verdict words, not task_category names. Split into its own 128px .cat-label. - Controls page: Operational Triggers was stretching to match Runtime Knobs' height (Bootstrap row default align-items:stretch) and sitting on a pile of dead space below its own content. align-items-start on that row only; the full-width Persisted Config row below is unaffected. AGENTS.md/CLAUDE.md: admin portal doc updates from the parallel opencode session, plus code_plans/admin-design-standards.md it now links to as the one design-system reference for admin/frontend/*.html. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRQXz5SYZYVWscxS1QqF6Ucircuit_breaker was the one runtime knob with no toggle switch, silently falling through to plain text. Root cause: GET /admin/api/runtime reported it as a nested {"enabled": ...} object while every other knob (including its own POST key, circuit_breaker_enabled) is a flat bool -- an inconsistency with no functional reason, introduced when the knob was added. Flattened to match; the frontend's existing boolean-detection logic picks it up automatically, no JS special-casing needed. Updated the one test asserting the old nested shape. default_flex_preference (Runtime Knobs) and routing.default_flex_preference + logging.level (Persisted Config) were free-text inputs for values that are actually closed 4-way enums on the backend (FlexPreference; logging's own field_validator). Now <select> dropdowns sourced from those legal values, shared between both panels via one ENUM_VALUES table instead of duplicating the list. Also: Operational Triggers no longer stretches to match Runtime Knobs' height (row-level align-items-start), which was leaving a slab of dead space under its four buttons. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VRQXz5SYZYVWscxS1QqF6Uneuralwatt-router-service - Fixes to last iterationto Root reorg: src/ config/ plans/ layout + admin facelift