feat(17-02): tree reorder page and singleton form in the admin

- ReorderView: indented tree with drag handle, move up/down, outdent and
  indent (buttons and arrow keys on the handle), pointer drag before, after
  or inside a row and never into its own subtree; one POST with the whole
  node set 400 ms after the last move, flushed on leave; a failed save
  restores the saved tree, a 409 reloads; loading, empty, load-failure and
  403 states; partition selector
- ListView: outline Reorder button before New record, passing the filtered
  partition
- SettingsIndexView opens a singleton controller's record through
  GET …/singleton; FormView in singleton mode has no Delete and returns to
  the settings index
- reorder.* and messages.list.reorder phrase keys (en, pl), smoke spec, docs
This commit is contained in:
2026-10-12 16:18:31 +02:00
parent 204149ccd2
commit 872fd6535f
15 changed files with 1092 additions and 19 deletions

View File

@@ -195,6 +195,7 @@ messages:
many: ":count rekordów"
other: ":count rekordu"
create: Nowy rekord
reorder: Zmień kolejność rekordów
empty_search: Nic nie znaleziono
empty_search_hint: Żaden rekord nie pasuje do frazy „:term”. Spróbuj innej frazy.
selected: "Zaznaczono :count"
@@ -409,3 +410,17 @@ repeater:
reorder:
stale: Rekordy zmieniły się w międzyczasie. Lista została wczytana ponownie.
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ść
empty: Nie ma jeszcze czego porządkować
empty_hint: Najpierw dodaj rekordy, a potem wróć tutaj, aby ustalić ich kolejność.
untitled: "Bez tytułu (#:id)"
tree: Kolejność rekordów
move: "Przenieś: :name"
move_up: "Przenieś wyżej: :name"
move_down: "Przenieś niżej: :name"
indent: "Przenieś do poprzedniej pozycji: :name"
outdent: "Przenieś poziom wyżej: :name"
moved: "Przeniesiono :name na pozycję :position z :total."
nested: ":name jest teraz wewnątrz :parent."
unnested: "Przeniesiono :name na poziom :level."