ADR-0007 — Generic admin UI generated from schemas
Status: Accepted
Context
Section titled “Context”Building a custom React app per deployment in CI is slow, fragile and requires Node in every pipeline. Owners need a management UI, not a bespoke one.
Decision
Section titled “Decision”- One generic admin UI, prebuilt and embedded in the
cicordbinary. - Plugin settings pages are generated from each plugin’s
config.schema.json. - Cicord JSON Schema extensions drive widgets and validation:
x-cicord-ref: channel | category | role— the value is a resource key, rendered as a picker and checked by semantic validation;x-cicord-widget: textarea | color | markdown | duration— rendering hints;x-cicord-access: admin | moderator— who may edit the field (defaultadmin).
- Every save goes through write-back (ADR-0004).
Consequences
Section titled “Consequences”- No per-deployment build for the admin side.
- Plugins needing richer admin screens are a later extension point (plugin-provided ES modules loaded into defined slots).