Commit ed4a91f
authored
docs(data): describe the built-in value lock that actually exists (#360)
#303 removed `isBuiltInValueLocked` and `lockedBuiltInCellKey`, but the
docs still describe them. Both symbols now have zero references anywhere
in the codebase.
The paragraph is not just naming dead functions, it states the opposite
of current behavior. It says built-in row values are read-only on the
structural system tables. They are editable on existing records, exactly
as the guard's own header says. What survives is a narrower create-time
rule: `protectedBuiltInCreateCellKey` rejects a create that supplies
built-in cells for a structural system table, so those rows are born
through their own authoring surfaces rather than the generic row
endpoint. `posts` is exempt, and the server enforces it in
`server/handlers/cms/data/tables.ts`.
PageTreeCell and its test carried the same dead reference in comments,
justifying the always-read-only button behavior by a predicate that no
longer exists. The behavior is right and unchanged; the reasoning is now
stated in terms of what a `pageTree` cell is (authored in the visual
editor, never typed into a cell) rather than a deleted lock.
Docs only, plus two comments. No behavior change.1 parent 9d787b2 commit ed4a91f
3 files changed
Lines changed: 10 additions & 10 deletions
File tree
- docs/features
- src/admin/pages/data/components/DataGrid/cells
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments