fix(admin): scope remembered list state to the signed-in admin and recover from bad restored queries

- Store list queries under summer-admin.list:<admin id>:<controller>; me()
  and setCurrentUser set the owner, which removes other admins' keys and
  the unscoped keys of older builds; nothing is read or written without one
- clearUser removes every stored query, so logout, session expiry and an
  unrecoverable 401 (expireSession, now used by main.ts) all clear them
- A list request built from a restored query that fails for any reason
  (422, 500, network) forgets the query and loads the plain list once
- A failing URL query keeps the error and offers a reset button
  (backend::lang.list.reset_list, en and pl)
- Document remembered list state in docs/backend/lists-and-filters.md
- Rebuild modules/boardwalk/dist
This commit is contained in:
2026-10-09 23:53:19 +02:00
parent 5be98a0c83
commit cd25af0878
15 changed files with 594 additions and 75 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -7,7 +7,7 @@
<meta name="summer-admin-base" content="__SUMMER_ADMIN_BASE__" />
<link rel="icon" href="./favicon.ico" sizes="48x48" />
<title>SummerCMS</title>
<script type="module" crossorigin src="./assets/index-Dm9E9btv.js"></script>
<script type="module" crossorigin src="./assets/index-CNLOPBsM.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-COkYalVD.css">
</head>
<body>

View File

@@ -40,6 +40,7 @@ list:
other: ":count results"
empty_value: "—"
clear_search: Clear search
reset_list: Reset search, filters and sorting
select_all: Select all on this page
select_row: Select row
sort_ascending: Sort ascending

View File

@@ -44,6 +44,7 @@ list:
other: ":count wyniku"
empty_value: "—"
clear_search: Wyczyść wyszukiwanie
reset_list: Wyczyść wyszukiwanie, filtry i sortowanie
select_all: Zaznacz wszystkie na stronie
select_row: Zaznacz wiersz
sort_ascending: Sortuj rosnąco