feat(18.1-01): task 3 flat reorder on the server

- config_reorder.yaml without parentColumn on a record with no parent_id
  column compiles as a flat (WinterCMS Sortable) reorder; maxDepth above 0
  on it fails boot, an explicit parentColumn still means a tree
- ListReorder.Flat and AdminReorderTree.Flat (flat, omitempty); flat nodes
  carry parent_id null, a save writes only the sort column, a parent is a
  422 on nodes (reorder.flat_parent); 409 and duplicate rules unchanged
- swag descriptions, OpenAPI and schema.d.ts regenerated
- acme.catalog badges reorder fixture, TestReorderFlatCompile and
  TestReorderFlatSmoke; docs Flat reorder section and cabana README
This commit is contained in:
Jakub Zych
2026-10-14 15:56:57 +02:00
parent cf63fb3152
commit 9edff8890f
13 changed files with 300 additions and 28 deletions

View File

@@ -399,6 +399,7 @@ repeater:
remove_confirm: "Remove “:title”? The change is saved together with the record."
reorder:
stale: The records changed in the meantime. The list has been reloaded.
flat_parent: A flat reorder has no parents.
load_failed: The records could not be loaded. Refresh the page to try again.
failed: The new order could not be saved. The previous order is back.
saved: Order saved

View File

@@ -427,6 +427,7 @@ repeater:
remove_confirm: "Usunąć „:title”? Zmiana zostanie zapisana razem z rekordem."
reorder:
stale: Rekordy zmieniły się w międzyczasie. Lista została wczytana ponownie.
flat_parent: Kolejność płaska nie ma elementów nadrzędnych.
load_failed: Nie udało się wczytać rekordów. Odśwież stronę, aby spróbować ponownie.
failed: Nie udało się zapisać nowej kolejności. Przywrócono poprzednią.
saved: Zapisano kolejność