Uh oh!
There was an error while loading. Please reload this page.
fix(grid): don't inline-edit read-only / computed / binary fields - #2121
Merged
Conversation
Found by browser-testing the field-zoo (57 field types): inline editing opened a plain text box for every field without a dedicated widget — including Formula / Roll-up / Auto Number (system-computed) and File / Image / Avatar / Video / Audio / Signature (binary). You could type into a computed cell; worst case the server accepts it and clobbers the derived value. - `isFieldInlineEditable(fieldDef)` (plugin-grid/inline-edit-options) → false for `readonly` fields and inherently non-authorable types. - ObjectGrid column enrichment sets `editable: false` for those; data-table already honors per-column editable (startEdit returns early), so the cell simply doesn't enter edit mode. Ordinary types are unaffected. - +6 tests. Verified live on :5417: Formula/Roll-up/Auto Number/File/Image → read-only; Number/Date/Boolean/Select still edit. Relational/structured types (lookup, master-detail, json, …) keep their text fallback for now — they want a proper picker, not a hard lock (follow-up). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This was referenced Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Inline cell editing opened a plain text box for every field lacking a dedicated widget — including ones you can never author a value for.
Found by browser-testing
Drove the showcase Field Zoo (57 field types) cell-by-cell. Result:
Formula,Roll-up,Auto Number(system-computed) andFile / Image / Avatar / Video / Audio / Signature(binary) opened an editableinput[text]. Typing into a computed cell is meaningless; if the server accepted it, it would clobber the derived value.Fix
isFieldInlineEditable(fieldDef)→falseforreadonlyfields and inherently non-authorable types.editable: false. The data-table already honors per-column editable (startEditreturns early), so the cell just doesn't enter edit mode. Ordinary types are untouched.Verified live (:5417, re-ran the matrix)
input[text]input[text]Scope note
Relational/structured types (lookup, master-detail, json, composite…) keep their text fallback for now — they want a proper picker, not a hard read-only lock. Not data-unsafe: the server validates and rejected saves now surface (#2106).
+6tests (14 total in the file pass). ESLint clean.🤖 Generated with Claude Code