8dfaf8284eb7c9d24c0b0eee5c3dff335bdd1d5b
Immich v3 (server runs v3.1.0) returns search `nextPage` as an opaque cursor string instead of a page number. The client schema validated `nextPage` as `number`, so every album open failed schema validation and surfaced as "Fotos momentan nicht erreichbar" (the catalog catch swallows the real IMMICH_INVALID_RESPONSE into IMMICH_UNAVAILABLE). Accept `string | number` for nextPage/previousPage in the schema and the ImmichSearchPage type; we only use nextPage as a has-more-pages signal. Pagination links are now derived from the current page number (currentPage ± 1) instead of the returned nextPage value, since the v3 cursor can't be used as a page number. Album page passes the normalized current page through. Add a client test locking the v3 cursor-string response. Co-Authored-By: Claude <noreply@anthropic.com>
Languages
TypeScript
98.4%
CSS
1.3%
Shell
0.2%
Dockerfile
0.1%