You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin settingsSchema does not auto-generate admin settings UI #341
"Declare a settings schema in admin.settingsSchema to auto-generate an admin UI"
"EmDash generates a settings form in the plugin's admin section. Users edit settings without touching code."
This doesn't work. Declaring settingsSchema has no visible effect in the admin. The schema is validated in manifest-schema.ts and the types exist in PluginAdminConfig, but nothing in @emdash-cms/admin consumes it to render form fields.
Expected
A settings form rendered from the schema with the documented field types (string, number, boolean, select, secret), reading/writing via ctx.kv with the settings: prefix.
What exists today
settingFieldSchema in manifest-schema.ts validates 5 field types
PluginAdminConfig.settingsSchema type is defined in types.ts
ctx.kv with settings: prefix works for reading/writing (atproto plugin uses it)
The admin shows the settings gear only when plugin.hasAdminPages is true (admin.pages.length > 0), not based on settingsSchema
The forms plugin declares settingsSchema with two fields but gets no UI from it — its gear icon appears only because it has custom admin.pages
Steps to reproduce
Reproduction
Create a plugin with admin.settingsSchema (the forms plugin already does this with turnstileSiteKey and turnstileSecretKey)
Enable the plugin
Navigate to the plugin's admin section
No auto-generated settings form appears
A plugin with settingsSchema but no admin.pages gets no settings gear icon at all, since hasAdminPages only checks admin.pages.length.
Environment
OS: macOS (Darwin 25.2.0)
Runtime: Cloudflare Workers (production) + Wrangler local dev
EmDash: 0.1.0
Astro: 6
Reproduces in: both local dev and deployed Cloudflare Workers
Triage check (2026-07-09): still valid on current main.
Nothing in packages/admin references settingsSchema — the schema is validated and typed but never rendered.
hasAdminPages in packages/core/src/api/handlers/plugins.ts still only checks admin.pages?.length, so a plugin with a settingsSchema but no custom pages gets no settings entry point at all.
No open PR for this; it's tracked on the 1.0 roadmap (#1873) under the plugins/registry track. Keeping open.
Activity
jdr8 commentedon Apr 30, 2026
Interestingly, the documentation states this functionality exists but it doesn't appear present in 0.8.0 - which is very limiting
marcin-misiewicz-pl commentedon May 2, 2026
In 0.9.0 it doesn't work either
gruntlord5 commentedon May 3, 2026
crazy, I filled this back in the first version
swissky commentedon Jul 9, 2026
Triage check (2026-07-09): still valid on current
main.packages/adminreferencessettingsSchema— the schema is validated and typed but never rendered.hasAdminPagesinpackages/core/src/api/handlers/plugins.tsstill only checksadmin.pages?.length, so a plugin with asettingsSchemabut no custom pages gets no settings entry point at all.No open PR for this; it's tracked on the 1.0 roadmap (#1873) under the plugins/registry track. Keeping open.
feat(plugins): auto-generate admin settings UI from settingsSchema (e…