Skip to content

0.37.0: content editor renders only 4 of 23 fields on a database-backed collection (manifest is complete) #3006

Description

@eisenbruch

Upgrading 0.36.0 -> 0.37.0 left the content editor rendering 4 of the 23 fields on a database-backed collection. Rolling the same site back to 0.36.0 restores all 23 immediately, with no other change.

What renders

For an articles collection with 23 fields, the editor shows only:

  • Title (string)
  • Excerpt (text)
  • Hero image (image)
  • Body (portableText)

Missing from the main column: two select fields (both with option lists), one repeater, six boolean fields, two datetime fields, one integer and several string fields. Field labels are redacted; the kinds are what matter here.

Missing from the sidebar: the whole Publish panel (slug, content locale, publication date, "Created and updated") and the Ownership panel. Bylines, SEO, Revisions and Move to Trash still render.

What the server sends

GET /_emdash/api/manifest is correct and complete. It returns all 23 fields with their metadata, e.g.

"title":    { "kind": "string", "label": "Title", "required": true,  "id": "<ulid>" },
"type":     { "kind": "select", "label": "Type",  "required": false, "id": "<id>",
              "options": [ { "value": "article", "label": "Article" }, { "value": "guide", "label": "Guide" } ] },

and

"supports": ["drafts", "revisions", "search", "seo", "scheduling"],
"hasSeo": true,
"urlPattern": "/articles/{slug}",
"titleField": "title"

The fields are also intact in _emdash_fields. So this looks like the admin rendering a subset of what it is handed, rather than missing data.

There are no console errors — the panels and fields simply do not draw. The only console output is repeated Uncompiled message detected ... fallback was used warnings from the i18n catalog, which we ruled out (see below).

Reproduction

  1. A collection created through the schema API / admin (database-backed, not file-defined) with select, boolean, datetime and repeater fields.
  2. Open an entry in the content editor on 0.37.0.
  3. Only string / text / image / portableText fields render; the Publish and Ownership panels are absent.
  4. Downgrade to 0.36.0 and reload — all fields and panels return.

One inconsistency worth knowing

It is not perfectly deterministic. On the first load after the upgrade, type and category did render, and the Publish panel with the slug and dates was present; every load afterwards showed the reduced form, including after a hard navigation, and on a second deployment and a second article. Reported to us as intermittent for about a day before becoming constant. That pattern might point at something cached client-side rather than a pure render bug, but we have not isolated it.

Ruled out

  • The manifest — verified complete, as above.
  • A locale/message-catalog build optimisation of ours that aliases non-English admin locale chunks to English. We deployed one environment with all 27 locale chunks and one with the optimisation, on identical code. Both showed the identical reduced editor, so this is not the cause.
  • Data loss — all 23 rows present in _emdash_fields.

Possibly related

#1645 ("Fixes admin manifest field mapping so database-backed collections expose field IDs, widget hints, selected validation, SEO flags, and URL patterns with matching public types") landed in 0.37.0 and touches exactly this path for exactly this kind of collection. #2891 reworked the Publish section, which is one of the missing panels. I have not confirmed either.

Environment

emdash 0.37.0 (broken) / 0.36.0 (fine)
@emdash-cms/admin 0.37.0 / 0.36.0
@emdash-cms/cloudflare 0.37.0 / 0.36.0
Astro 7.2.10
Runtime Cloudflare Workers, D1, R2, KV
Build Node 22

Happy to supply the full manifest response or test a patch — we have a staging environment on the same data where this reproduces.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions