Files
summercms/admin/tests/fixtures/widgets.relation-candidates.json
Jakub Zych f4e97cccad feat(10-04): search, link and unlink related records through the relation manager
- relation-manager registered in the field registry; renders only on an
  existing record, never on create, and is never part of the save body
- RelationManager: relation schema label and comment, debounced search,
  selectable linked list (DataTable relation variant), toolbar buttons in
  declared order, confirmed unlink with plural messages and toasts
- RelationPickerModal: Reka Dialog (aria-modal, focus trap, Esc) over the
  candidates endpoint five per page, selection kept across pages, Dodaj (N)
  POSTs link, focus returns to the opener
- admin OpenAPI documents search, sort, dir, page and per_page on the linked
  and candidate relation routes so the SPA sends them typed
- neutral acme.demo.widgets members fixtures and relation smoke tests
2026-09-27 17:18:14 +02:00

82 lines
1.4 KiB
JSON

{
"page1": {
"data": [
{
"id": 11,
"name": "Alan Turing",
"email": "alan.turing@example.test"
},
{
"id": 12,
"name": "Grace Hopper",
"email": "grace.hopper@example.test"
},
{
"id": 13,
"name": "Emmy Noether",
"email": "emmy.noether@example.test"
},
{
"id": 14,
"name": "Niels Bohr",
"email": "niels.bohr@example.test"
},
{
"id": 15,
"name": "Marie Curie",
"email": "marie.curie@example.test"
}
],
"meta": {
"page": 1,
"per_page": 5,
"total": 7,
"last_page": 2
}
},
"page2": {
"data": [
{
"id": 16,
"name": "Carl Gauss",
"email": "carl.gauss@example.test"
},
{
"id": 17,
"name": "Rosalind Franklin",
"email": "rosalind.franklin@example.test"
}
],
"meta": {
"page": 2,
"per_page": 5,
"total": 7,
"last_page": 2
}
},
"search": {
"data": [
{
"id": 13,
"name": "Emmy Noether",
"email": "emmy.noether@example.test"
}
],
"meta": {
"page": 1,
"per_page": 5,
"total": 1,
"last_page": 1
}
},
"empty": {
"data": [],
"meta": {
"page": 1,
"per_page": 5,
"total": 0,
"last_page": 0
}
}
}