Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/spec/src/ui/page.form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ export const pageForm = defineForm({
{ field: 'addRecord', type: 'composite', disclosure: 'popover', helpText: 'Add-record entry point' },
// Buttons ARE object actions — pick from the source object's actions.
{ field: 'buttons', widget: 'action-multi', dependsOn: 'source', helpText: "Toolbar buttons — pick from this object's actions" },
{
field: 'recordAction',
options: [
{ label: 'Drawer (right-side peek)', value: 'drawer' },
{ label: 'Full page', value: 'page' },
{ label: 'Modal', value: 'modal' },
{ label: 'Not clickable', value: 'none' },
],
helpText: 'How clicking a record opens its detail',
},
{ field: 'showRecordCount', helpText: 'Show the record count bar' },
{ field: 'allowPrinting', helpText: 'Allow users to print this page' },
],
Expand Down
6 changes: 6 additions & 0 deletions packages/spec/src/ui/page.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ export const InterfacePageConfigSchema = lazySchema(() => z.object({
* Buttons ARE object actions (not free text): correct-by-construction. */
buttons: z.array(z.string()).optional().describe("Toolbar buttons — names of the source object's actions to surface in the page toolbar"),

/** How clicking a record opens its detail: 'drawer' (right-side peek panel,
* default), 'page' (full-page navigate to the record route), 'modal', or
* 'none' (rows not clickable). */
recordAction: z.enum(['drawer', 'page', 'modal', 'none']).optional()
.describe("How clicking a record opens its detail (drawer | page | modal | none). Default: drawer"),

/** Record count */
showRecordCount: z.boolean().optional().describe('Show record count at page bottom'),

Expand Down
Loading