Skip to content

perf: pagination, debounced search, capped dropdowns, lazy pages and locales

Ines Soltani requested to merge feat/perf into Dev
  • Backend: StandardPagination accepts ?page_size= (max 200, default 20); pages that asked for 25/100/200 rows now get them.
  • Page controls on Invoices, Clients, Products, Quotations, Suppliers, Purchase orders, Supplier invoices, Payments and Outgoing payments.
  • Search waits for a 300 ms pause (useDebouncedValue) on 17 list pages: 1 request instead of one per keystroke.
  • Client/supplier dropdowns in invoice, quote, PO and supplier-invoice forms draw at most 50 options with a "type to narrow" hint (0.7 s freeze on phones with 3000 clients is gone).
  • Pages load on demand (React.lazy + Suspense in each layout) and only the current language file is downloaded: main bundle 530 KB -> 124 KB gzip, phone first paint 3.35 s -> 1.58 s.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Merge request reports