feat: redesign photo overview (masonry + lightbox) and fix hoch/quer search
The album search could not distinguish portrait from landscape: the format filter ran client-side over a single 60-item page and relied on exifInfo that Immich never returned (no withExif flag), so the orientation guard fell through and every photo matched every filter. Pagination links also dropped format/jahr on the next page. - immich/client: send withExif: true on /search/metadata so exifImageWidth/Height are populated for orientation filtering and masonry aspect ratios. - albums/filter (new): filter + paginate across the full fetched set so total, page slice and has-more-pages stay consistent with active filters; both the album detail and the cross-album search pages use it. - albums/photo-gallery (new client component): masonry grid with native EXIF aspect ratios (object-fit: cover, no more 3:2 letterboxing), hover overlay with filename/date + merken/lizenzieren/vergrößern, and a full-screen lightbox with keyboard nav (Esc/arrow keys). - catalog-content: drop the old PhotoContactSheet; keep AlbumContactSheet and thread format/jahr through PhotoPagination links. - Album detail search form restyled to the editorial design system (sharp ink borders) instead of the shadcn rounded card. - Tests: filter.test.ts covers the orientation/year/pagination logic; catalog-content.test.tsx updated to the gallery + lightbox structure; immich client test expects withExif: true. Skipped: global search form still uses shadcn styling (visually inconsistent but functionally fixed); albums > 1000 photos lose tail items (noted with a ponytail ceiling comment). Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
b81cd7c3e2
commit
a3ec068cac
11 files changed
+949
-267
No files matched your search
@@ -14,6 +14,7 @@ export type SearchVisiblePhotosInput = {
|
||||
requestedAlbumId?: string;
|
||||
description?: unknown;
|
||||
page?: unknown;
|
||||
size?: number;
|
||||
};
|
||||
|
||||
export type AlbumCatalogDependencies = {
|
||||
@@ -59,7 +60,7 @@ export function createAlbumCatalog({ grants, immich }: AlbumCatalogDependencies)
|
||||
...(description === undefined ? {} : { description }),
|
||||
type: "IMAGE",
|
||||
page: normalizePage(input.page),
|
||||
size: PHOTO_PAGE_SIZE,
|
||||
size: input.size ?? PHOTO_PAGE_SIZE,
|
||||
});
|
||||
} catch {
|
||||
throw new AlbumCatalogError("IMMICH_UNAVAILABLE");
|
||||
|
||||
Reference in new issue
Block a user