Files
summercms/admin/tests/fixtures/extension.list-schema.json
Jakub Zych 61d5fc72ad feat(12.1-01): list row states from one controller call per page
- pact.ListRowStates with the fixed RowState set deleted, negative, disabled
- list response meta.row_states keyed by row id; unknown values dropped
- list messages rowStateDeleted, rowStateNegative, rowStateDisabled
- update writes through the scope the load used, so a soft-deleted record
  a controller includes stays soft-deleted
- DataTable row state badges and text styles
- roster fixture, smoke tests, OpenAPI, TS types, dist, READMEs, docs
2026-10-04 23:45:44 +02:00

122 lines
2.5 KiB
JSON

{
"data": {
"title": "Widgets",
"recordsPerPage": 20,
"perPageOptions": [],
"showSearch": true,
"showSetup": false,
"showCheckboxes": true,
"showSorting": true,
"searchTerm": "",
"recordUrl": "acme/demo/widgets/update/:id",
"toolbarButtons": [
"create",
"delete",
"recount"
],
"toolbarActions": [
{
"name": "recount",
"label": "Recount"
}
],
"assets": {
"scripts": [],
"styles": [
"/admin-test/assets/acme/demo/css/demo.css?v=abc"
]
},
"columns": [
{
"key": "name",
"label": "Name",
"searchable": true,
"sortable": true
},
{
"key": "code",
"label": "Code",
"searchable": true,
"sortable": true
},
{
"key": "tags",
"label": "Tags",
"searchable": false,
"sortable": false,
"type": "relation",
"relation": "tags",
"select": "name"
},
{
"key": "created_at",
"label": "Created",
"searchable": false,
"sortable": true,
"type": "datetime"
},
{
"key": "active",
"label": "Active",
"searchable": false,
"sortable": false,
"type": "switch"
}
],
"filters": [],
"rowActions": [],
"bulkActions": [],
"messages": {
"create": {
"other": "New widget"
},
"deleteConfirm": {
"one": "Delete :count widget?",
"other": "Delete :count widgets?"
},
"deleteSelected": {
"other": "Delete selected"
},
"deleted": {
"one": "Deleted :count widget",
"other": "Deleted :count widgets"
},
"empty": {
"other": "No widgets yet."
},
"emptySearch": {
"other": "Nothing found"
},
"emptySearchHint": {
"other": "No widget matches “:term”."
},
"recordCount": {
"one": ":count widget",
"other": ":count widgets"
},
"searchPrompt": {
"other": "Search widgets…"
},
"selected": {
"other": "Selected :count"
},
"rowStateDeleted": {
"other": "Deleted"
},
"rowStateNegative": {
"other": "Blocked"
},
"rowStateDisabled": {
"other": "Inactive"
}
},
"meta": {
"locale": "en"
},
"headerPartial": "stats"
},
"meta": {
"locale": "en"
}
}