Skip to content

Plugin settingsSchema does not auto-generate admin settings UI #341

Closed

Description

@gruntlord5

Description

Bug

The plugin settings docs state:

"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

  1. Create a plugin with admin.settingsSchema (the forms plugin already does this with turnstileSiteKey and turnstileSecretKey)
  2. Enable the plugin
  3. Navigate to the plugin's admin section
  4. 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

Logs / error output

Activity

  1. added
    bug
    on Apr 7, 2026
  2. jdr8 commented on Apr 30, 2026

    @jdr8

    Interestingly, the documentation states this functionality exists but it doesn't appear present in 0.8.0 - which is very limiting

  3. marcin-misiewicz-pl commented on May 2, 2026

    @marcin-misiewicz-pl
    Contributor

    In 0.9.0 it doesn't work either

  4. gruntlord5 commented on May 3, 2026

    @gruntlord5
    ContributorAuthor

    crazy, I filled this back in the first version

  5. added this to the 1.0 milestone on Jul 1, 2026
  6. added
    roadmap/1.0
    roadmap/plugins-registry
    on Jul 2, 2026
  7. swissky commented on Jul 9, 2026

    @swissky
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/pluginsbugroadmap/1.0roadmap/plugins-registry

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions