feat(web): admin settings page — module cards, toggles, config forms #105
Reference in New Issue
Block a user
Delete Branch "feat-admin-settings-api"
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?
Summary
Add admin-only Module Configuration section to the Settings page (issue #100).
Changes
New components:
AdminModules.tsx— Top-level section fetchingGET /api/modules+GET /api/admin/settings, rendering Infrastructure/Features groups with restart-required bannerModuleCard.tsx— Collapsible card per module with:PUT /api/admin/settings/{module})POST /api/admin/settings/{module}/test)Modified:
types.ts— AddedModuleInfo,ModulesResponse,AdminSettingsResponse,UpdateSettingsResponse,TestConnectivityResponseSettingsPage.tsx— Renders<AdminModules />for admin usersBackend (included from prior commits on this branch)
SettingsRepositoryformodule_stateandsettings_overridestablesCloses #100
Add four admin-only endpoints under /api/admin/settings: - GET / — full config (secrets redacted) - GET /{module} — single module config - PUT /{module} — toggle modules + persist config overrides - POST /{module}/test — test external connectivity (database, storage) PUT publishes a settings.changed SSE event. Config overrides are persisted for future hot-reload support; changes to database/storage/ server/schemas namespaces return restart_required: true. Wires SettingsRepository into Server struct. Closes #99