Secure Sakani portal and show full album titles
This commit is contained in:
1 parent
c40ccf77cf
commit
69264ce165
49 files changed
+1362
-601
No files matched your search
@@ -81,10 +81,10 @@ test("restores the queried granted album when Immich omits an asset album associ
|
||||
|
||||
const result = await catalog.searchVisiblePhotos("editorial-1", { page: 1 });
|
||||
|
||||
expect(result.items[0]?.albums).toEqual([{ id: "allowed" }]);
|
||||
expect(result.items[0]?.albumId).toBe("allowed");
|
||||
});
|
||||
|
||||
test("moves the queried granted album to the active gallery context without losing metadata", async () => {
|
||||
test("projects only display fields and the queried granted album for the client gallery", async () => {
|
||||
const { catalog, immich } = createCatalog({ grantedAlbumIds: ["allowed"] });
|
||||
immich.searchPhotos.mockResolvedValue({
|
||||
items: [{
|
||||
@@ -94,6 +94,8 @@ test("moves the queried granted album to the active gallery context without losi
|
||||
originalMimeType: "image/jpeg",
|
||||
localDateTime: null,
|
||||
fileCreatedAt: null,
|
||||
originalPath: "/private/photos/tor.jpg",
|
||||
exifInfo: { exifImageWidth: 1200, exifImageHeight: 800, latitude: 12 },
|
||||
albums: [
|
||||
{ id: "other", albumName: "Anderes Album" },
|
||||
{ id: "allowed", albumName: "Erlaubtes Album" },
|
||||
@@ -106,10 +108,15 @@ test("moves the queried granted album to the active gallery context without losi
|
||||
|
||||
const result = await catalog.searchVisiblePhotos("editorial-1", { page: 1 });
|
||||
|
||||
expect(result.items[0]?.albums).toEqual([
|
||||
{ id: "allowed", albumName: "Erlaubtes Album" },
|
||||
{ id: "other", albumName: "Anderes Album" },
|
||||
]);
|
||||
expect(result.items).toEqual([{
|
||||
id: "asset-1",
|
||||
filename: "tor.jpg",
|
||||
takenAt: null,
|
||||
width: 1200,
|
||||
height: 800,
|
||||
albumId: "allowed",
|
||||
albumName: "Heimspiel gegen Nord",
|
||||
}]);
|
||||
});
|
||||
|
||||
test("global search keeps hits when a granted album is no longer visible in Immich", async () => {
|
||||
|
||||
Reference in new issue
Block a user