Skip to content

JSON field type has no editor in admin UI #405

@rodsom

Description

@rodsom

Description

Selecting json as a field type in the schema editor works, but the field has no input renderer in the post editor — falls through to default text Input which renders empty for object values. Missing case in field renderer switch (@emdash-cms/admin@0.1.0)

Steps to reproduce

  1. Fresh install of @emdash-cms/template-blog-cloudflare (or any EmDash project on emdash@0.1.0)
  2. Run pnpm dev and complete the setup wizard
  3. Go to Admin → Collections → Posts (or any collection) → Add field
  4. In the field type picker, select JSON (icon: brackets-curly, label: "JSON", description: "Arbitrary JSON data")
  5. Fill in slug/label, save the field
  6. Go to Posts → New post (or edit any existing post)
  7. Scroll to the new JSON field

Environment

  • emdash: 0.1.0
  • @emdash-cms/admin: 0.1.0
  • @emdash-cms/cloudflare: 0.1.0
  • astro: 6.1.4
  • @astrojs/cloudflare: 13.1.7
  • wrangler: 4.81.0
  • Node: v22.22.2
  • OS: Windows 11
  • Browser: Chrome
  • Template: @emdash-cms/template-blog-cloudflare@0.0.1

Logs / error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions