From de21e052e1a5f86fbeeb74cc83a369988cd9cdf8 Mon Sep 17 00:00:00 2001 From: Pragati Sharma Date: Thu, 6 Aug 2026 04:31:59 +0530 Subject: [PATCH 1/3] fix(albums): restore custom SVG placeholder for empty album detail view --- frontend/src/pages/Album/AlbumDetail.tsx | 55 +++++++++++++----------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/frontend/src/pages/Album/AlbumDetail.tsx b/frontend/src/pages/Album/AlbumDetail.tsx index b8ba7fae4..ed8a73342 100644 --- a/frontend/src/pages/Album/AlbumDetail.tsx +++ b/frontend/src/pages/Album/AlbumDetail.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useParams, useNavigate, useLocation } from 'react-router'; import { Button } from '@/components/ui/button'; -import { ArrowLeft, Plus, Trash2 } from 'lucide-react'; +import { ArrowLeft, Plus, Trash2, Image as ImageIcon } from 'lucide-react'; import { ImageCard } from '@/components/Media/ImageCard'; import { MediaView } from '@/components/Media/MediaView'; import { AddImagesToAlbumDialog } from '@/components/Albums/AddImagesToAlbumDialog'; @@ -216,7 +216,7 @@ export const AlbumDetail = () => { return (
-

Album not found

+

Album not found

-
-

{album.name}

- {album.description && ( -

- {album.description} -

- )} -
-
+
+ {/* Left section */} +
+

+ {album.name} +

-
-

- {images.length} {images.length === 1 ? 'photo' : 'photos'} - {selectedImages.size > 0 && ` • ${selectedImages.size} selected`} -

+ {album.description && ( +

+ {album.description} +

+ )} +
+ {/* Right section */} +
{isSelectionMode ? ( <> @@ -263,6 +258,7 @@ export const AlbumDetail = () => { > Cancel + )} +
+ +

+ {images.length} {images.length === 1 ? 'photo' : 'photos'} + {selectedImages.size > 0 && ` • ${selectedImages.size} selected`} +

@@ -307,8 +309,9 @@ export const AlbumDetail = () => {
) : images.length === 0 ? (
-
-

+

+ +

No images in this album yet

{' '} to add folders. -
-
+ )} +
+ + {formatsHint && ( +
{formatsHint}
-
+ )}
); -}; +}; \ No newline at end of file diff --git a/frontend/src/pages/Album/AlbumDetail.tsx b/frontend/src/pages/Album/AlbumDetail.tsx index ed8a73342..cb78c0676 100644 --- a/frontend/src/pages/Album/AlbumDetail.tsx +++ b/frontend/src/pages/Album/AlbumDetail.tsx @@ -2,7 +2,8 @@ import { useEffect, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useParams, useNavigate, useLocation } from 'react-router'; import { Button } from '@/components/ui/button'; -import { ArrowLeft, Plus, Trash2, Image as ImageIcon } from 'lucide-react'; +import { EmptyGalleryState } from '@/components/EmptyStates/EmptyGalleryState'; +import { ArrowLeft, Plus, Trash2 } from 'lucide-react'; import { ImageCard } from '@/components/Media/ImageCard'; import { MediaView } from '@/components/Media/MediaView'; import { AddImagesToAlbumDialog } from '@/components/Albums/AddImagesToAlbumDialog'; @@ -308,18 +309,17 @@ export const AlbumDetail = () => { ))}
) : images.length === 0 ? ( -
-
- -

- No images in this album yet -

- -
-
+ setIsAddImagesDialogOpen(true)}> + + Add Images + + } +/> ) : (
{images.map((image, index) => ( From 9e14b1c330762b73a24bbdfd7b3c5f4d4aca8325 Mon Sep 17 00:00:00 2001 From: Pragati Sharma Date: Fri, 7 Aug 2026 22:37:29 +0530 Subject: [PATCH 3/3] Fix responsive album header layout --- frontend/src/pages/Album/AlbumDetail.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Album/AlbumDetail.tsx b/frontend/src/pages/Album/AlbumDetail.tsx index cb78c0676..3919126b5 100644 --- a/frontend/src/pages/Album/AlbumDetail.tsx +++ b/frontend/src/pages/Album/AlbumDetail.tsx @@ -229,9 +229,9 @@ export const AlbumDetail = () => { return (
- {/* Header */} +
- {/* Left section */} +

{album.name} @@ -244,7 +244,7 @@ export const AlbumDetail = () => { )}

- {/* Right section */} +
{isSelectionMode ? (