keycloak/js/apps
André Rocha 95cfffc4c4
Fix duplicated resource on current and next page in Auth Resources (#47446)
The Authorization Resources table was incorrectly duplicating the last
element of the current page as the first element of the next page.

This occurred because the fetching logic requests 'max + 1' items to
detect if a subsequent page exists. However, the UI was rendering the
entire array instead of limiting the display to the 'max' value.

Fixed by applying a .slice(0, max) before mapping the resources to
table rows. Added a Playwright E2E regression test to ensure unique
resource distribution across pages and prevent future regressions.

Closes #46088

---------

Signed-off-by: André Rocha <andre.queiroz.rocha@tecnico.ulisboa.pt>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-04-17 18:59:59 +02:00
..
account-ui Account UI throws error when opening an unknown path (#48054) 2026-04-15 08:10:08 -04:00
admin-ui Fix duplicated resource on current and next page in Auth Resources (#47446) 2026-04-17 18:59:59 +02:00
create-keycloak-theme Bump simple-git from 3.30.0 to 3.32.3 in /js (#47035) 2026-03-30 11:41:57 +02:00
keycloak-server Added typescript based module for the client admin v2 (#46440) 2026-02-18 19:34:00 +01:00
.prettierrc use group resource from context instead (#45883) 2026-02-03 11:39:50 -05:00