A lightweight, self-hosted multi-tenant web publishing platform

feat: runtime configuration (config.toml) container #10

Merged pre1ude.dev
targeting dev from feat/runtime-config
Merged opened by pre1ude.dev
targeting dev from feat/runtime-config

Collapsible Runtime Configuration Viewer #

Changelog #

Backend #

  • Added an in-memory runtime configuration snapshot helper that resolves the active configuration source name, flattens nested tables into dotted section headers, and excludes startup-only database settings and environment secrets.
  • Included the active runtime configuration snapshot in the administrator instance info response so dashboard reloads reflect in-memory state without re-reading disk until an explicit refresh occurs.

Admin Panel #

  • Added a collapsible read-only runtime configuration viewer to the administrator dashboard using a native disclosure toggle with a plain-text plus/minus indicator, aligned source label, and syntax-highlighted monospace display.
  • Added case-insensitive client-side filtering across sections, keys, and values alongside a compact read-only notice and subtle line highlighting for settings updated during the latest configuration refresh.
  • Relocated the runtime configuration refresh action into the viewer header bar and automatically expanded the panel when a refresh applies changes.

Testing #

  • Added backend unit and integration tests verifying nested section flattening, exclusion of database settings, and that instance info reports in-memory configuration until a refresh is triggered.
  • Added frontend component and helper tests covering default collapsed state, read-only syntax-highlighted rendering, changed-key highlighting, string escaping, and case-insensitive filtering.
Commits 2

fix: tangled workflows failing due to node setup
feat: runtime configuration (config.toml) container
Sign up or Sign in to add to the discussion.