Skip to content

Show JSON and list fields as readable forms - #17

Merged
kasinadhsarma merged 1 commit into
mainfrom
feat/readable-json-fields
Nov 23, 2026
Merged

kasinadhsarma merged 1 commit into
mainfrom
feat/readable-json-fields

Conversation

@kasinadhsarma

Copy link
Copy Markdown
Member

Summary

  • JSON and array fields in the record editor now render as a form instead of a raw JSON textarea: simple lists get one box per item (add, remove, reorder), lists of objects get one card per item, and objects get labelled sub-fields (publishedAt → "Published at").
  • "Edit as code" stays available on each field; shapes that can't be shown as a form (mixed lists, empty JSON with no known shape) fall back to the code box.
  • _system is hidden by default with the other bookkeeping fields; it can still be shown from the Fields picker.

Testing

  • pnpm typecheck and pnpm test pass.
  • Rendered FieldInput with a sample project record in a local Vite page and checked add, edit, remove and reorder produce the right values. Not tested against a live gateway.

Lists get one box per item with add, remove and reorder; objects get
labelled sub-fields. Edit as code stays available. _system is hidden
by default like other bookkeeping fields.
@kasinadhsarma
kasinadhsarma merged commit ffb0609 into main Nov 23, 2026
7 checks passed
@kasinadhsarma
kasinadhsarma deleted the feat/readable-json-fields branch November 23, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant