You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a790887
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spec): view form spells out its composite children so their rows get catalog keys
The view form declared selection, pagination, userFilters, appearance,
userActions, navigation and sharing as composites with no children, so
the i18n extractor emitted no key for any of their rows. Each child is
now declared with the hint the panel already showed (its schema
description), userFilters.fields is enumerated as a repeater with
titled row properties, and the retired navigation.view / sharing.type
tombstones are no longer offered.
Claude-Session: https://claude.ai/code/session_01WGufzjGQVFPCizmQreyKkv
Co-authored-by: Claude <noreply@anthropic.com>
{field: 'pageSize',helpText: 'Number of records per page. On a view with no pager (kanban, gallery, timeline) it is the fetch ceiling, and the renderer owes two things: bound its fetch at this number, and, when the filtered set is larger than it, show a visible truncation signal saying what is on screen is not the whole set'},
{field: 'userFilters',type: 'composite',helpText: 'Quick-filter bar: element style (dropdown / tabs / toggle) + exposed fields or tab presets'},
200
+
{
201
+
field: 'userFilters',
202
+
type: 'composite',
203
+
helpText: 'Quick-filter bar: element style (dropdown / tabs / toggle) + exposed fields or tab presets',
204
+
fields: [
205
+
{field: 'element',helpText: 'Filter control style on object views: "dropdown" (per-field value chips). "toggle" is deprecated. "tabs" is page-only — use `listViews` for named presets.'},
206
+
{
207
+
field: 'fields',
208
+
type: 'repeater',
209
+
helpText: 'Fields exposed as quick filters (dropdown/toggle elements)',
210
+
// Row-property names: every authorable row property, `label`
211
+
// equal to the item schema's `.meta({ title })`, as `columns`
212
+
// above does.
213
+
fields: [
214
+
{field: 'field',label: 'Field'},
215
+
{field: 'label',label: 'Label'},
216
+
{field: 'type',label: 'Type'},
217
+
{field: 'options',label: 'Options'},
218
+
{field: 'showCount',label: 'Show Count'},
219
+
{field: 'defaultValues',label: 'Default Values'},
220
+
],
221
+
},
222
+
],
223
+
},
176
224
// [#20301] The `tabs` repeater was REMOVED with the key it wrote — now a
177
225
// `retiredKey()` tombstone on `ListViewSchema` (no renderer ever mounted a
178
226
// tab bar for it). A form input for an unwritable key is the
179
227
// false-compliant UI half of a retirement; named presets are `listViews`
180
228
// entries, each a tab in the saved-view switcher.
181
-
{field: 'appearance',type: 'composite',helpText: 'allowedVisualizations: which renderers users may switch between'},
{field: 'sort',helpText: 'Allow users to sort records'},
244
+
{field: 'search',helpText: 'Allow users to search records'},
245
+
{field: 'filter',helpText: 'Allow users to filter records'},
246
+
{field: 'refresh',helpText: 'Allow users to reload the view data from the backend without a full page reload'},
247
+
{field: 'rowHeight',helpText: 'Allow users to toggle row height/density'},
248
+
{field: 'group',helpText: 'Allow users to change record grouping from the toolbar. Toggle only — the grouping itself is configured in the view-level `grouping` block.'},
249
+
{field: 'addRecordForm',helpText: 'Add records through a form instead of inline'},
250
+
{field: 'editInline',helpText: 'Allow users to edit records inline. On by default: a user who may update the object edits a cell in place with the field\'s type-aware widget (the same control the form uses), under the permission gate that already decides whether the object is editable at all. Declare `editInline: false` to make the list read-only in place.'},
251
+
{field: 'hideFields',helpText: 'Allow users to hide/show fields from the toolbar (the affordance behind the view-level `hiddenFields` list). Boolean toggle — distinct from the record-details component\'s `hideFields`, which is an array of field names to omit. On by default: a reader hides and shows columns for themselves; declare `hideFields: false` to withhold the control.'},
252
+
{field: 'rowColor',helpText: 'Allow users to configure row colouring from the toolbar. Boolean toggle — the colour rules themselves live in the view-level `rowColor` block. Off by default: row colouring is opt-in.'},
253
+
{field: 'buttons',helpText: 'Custom action button IDs to show in the toolbar'},
254
+
],
255
+
},
183
256
// [#24692] Spelled out so the form offers exactly the two live keys:
184
257
// `mode` and `formView` are `retiredKey()` tombstones on
185
258
// `AddRecordConfigSchema` (no renderer ever read them — the Add button
// Children spelled out (#30267) so the i18n extractor emits a catalog
282
+
// key per row, and so the form offers only the live keys:
283
+
// `navigation.view` and `sharing.type` are `retiredKey()` tombstones
284
+
// the schema-derived list used to render as editable rows.
285
+
{
286
+
field: 'navigation',
287
+
type: 'composite',
288
+
helpText: 'Configuration for item click navigation (drawer by default, page, new_window or none)',
289
+
fields: [
290
+
{field: 'mode'},
291
+
{field: 'preventNavigation',helpText: 'Disable standard navigation entirely'},
292
+
{field: 'openNewTab',helpText: 'Force open in new tab (applies to page mode)'},
293
+
{field: 'size',helpText: 'Overlay size bucket for the drawer detail: \'auto\' (default — renderer derives from field count + viewport; AI writes nothing) or a coarse override sm/md/lg/xl/full. Prefer this over the pixel `width`; page mode ignores it.'},
294
+
{field: 'width',helpText: '[DEPRECATED → size] Pixel/percent width of the drawer (e.g. "600px"). A pixel width cannot be chosen at authoring time without knowing the client viewport — use the `size` bucket.'},
295
+
],
296
+
},
297
+
{
298
+
field: 'sharing',
299
+
type: 'composite',
300
+
helpText: 'View sharing configuration: who locked the view configuration',
301
+
fields: [
302
+
{field: 'lockedBy',helpText: 'User who locked the view configuration'},
0 commit comments