Secure Sakani portal and show full album titles

This commit is contained in:
Leon Tonhäuser committed 2026-11-30 19:14:57 +01:00
1 parent c40ccf77cf
commit 69264ce165
49 files changed
+1362 -601

No files matched your search

+12 -16
View File
@@ -33,12 +33,12 @@ test("renders granted albums as labelled contact-sheet links", () => {
const photo = {
id: "asset-1",
type: "IMAGE" as const,
originalFileName: "tor-des-sieges.jpg",
originalMimeType: "image/jpeg",
localDateTime: "2026-08-08T18:42:00.000Z",
fileCreatedAt: null,
albums: [{ id: "heimspiel" }],
filename: "tor-des-sieges.jpg",
takenAt: "2026-08-08T18:42:00.000Z",
width: null,
height: null,
albumId: "heimspiel",
albumName: "Heimspiel gegen Nord",
};
test("renders the gallery list labelled by album name", () => {
@@ -52,7 +52,6 @@ test("renders the gallery list labelled by album name", () => {
test("renders the server-scoped download choices for a catalog photo", () => {
render(
<PhotoGallery
albumId="33333333-3333-4333-8333-333333333333"
albumName="Heimspiel gegen Nord"
downloadOptions={{
priceCents: 1_500,
@@ -68,13 +67,10 @@ test("renders the server-scoped download choices for a catalog photo", () => {
}}
items={[
{
...photo,
id: "22222222-2222-4222-8222-222222222222",
type: "IMAGE",
originalFileName: "tor.jpg",
originalMimeType: "image/jpeg",
localDateTime: null,
fileCreatedAt: null,
albums: [{ id: "33333333-3333-4333-8333-333333333333" }],
filename: "tor.jpg",
albumId: "33333333-3333-4333-8333-333333333333",
},
]}
/>,
@@ -91,7 +87,7 @@ test("offers the existing download workflow on a global search result and its li
items={[{
...photo,
id: "22222222-2222-4222-8222-222222222222",
albums: [{ id: "33333333-3333-4333-8333-333333333333" }],
albumId: "33333333-3333-4333-8333-333333333333",
}]}
showAlbumName
/>,
@@ -107,8 +103,8 @@ test("opens a full-screen lightbox when a photo tile is clicked", () => {
<PhotoGallery
albumName="Heimspiel gegen Nord"
items={[
{ ...photo, id: "a", originalFileName: "first.jpg" },
{ ...photo, id: "b", originalFileName: "second.jpg" },
{ ...photo, id: "a", filename: "first.jpg" },
{ ...photo, id: "b", filename: "second.jpg" },
]}
/>,
);