feat(per-page-persistence): remember selected rows per page in localStorage

table-list component now saves per_page selection to localStorage and
restores it when navigating back to any list without explicit per_page
in URL. URL parameter takes priority over stored value to ensure
bookmarked links work predictably.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 08:26:53 +02:00
parent 6d0905d97a
commit 24df01cfde
7 changed files with 251 additions and 9 deletions

View File

@@ -1,5 +1,13 @@
# Tech Changelog
## 2026-04-07 (Phase 72 - Per Page Persistence, Plan 01)
- `resources/views/components/table-list.php`:
- Dodano klucz localStorage `perPageKey` (`tableList_[path]_[key]_per_page`).
- Przy zmianie selecta per_page: zapis do localStorage przed submit formularza.
- Przy ladowaniu strony: odczyt z localStorage i auto-submit jesli per_page nie jest w URL.
- URL per_page ma priorytet nad localStorage (sync, nie override).
- Brak zmian backendu — per_page nadal przychodzi jako query param.
## 2026-04-07 (Phase 71 - Attributes Import, Plan 01)
- `ShopproOrderMapper::extractPersonalization()`: rozszerzono o odczyt pola `attributes` z API shopPRO.
- Metoda iteruje po `['attributes', 'custom_fields']` i laczy niepuste wyniki separatorem `\n`.