Skip to content

Added no album option#1609

Open
koushik24k wants to merge 1 commit intophoto:masterfrom
koushik24k:add/feature-no-album-added
Open

Added no album option#1609
koushik24k wants to merge 1 commit intophoto:masterfrom
koushik24k:add/feature-no-album-added

Conversation

@koushik24k
Copy link

@koushik24k koushik24k commented Sep 24, 2025

Description
This pull request implements a "No Album" virtual album feature that functions like OS X smart folders. When users have photos that aren't assigned to any album, a special "No Album" entry automatically appears in the Albums view, helping users discover and organize unorganized photos.

Related Issue
Resolves the need for better photo organization management when photos are uploaded without album assignment.

Type of change
✅ New feature (non-breaking change which adds functionality)
✅ Enhancement (improves existing functionality)
What's Changed
Backend Changes
DatabaseMySql.php: Added noalbum filter case and getNoAlbumPhotoCount() method
Album.php: Added getNoAlbumCount() method for counting unorganized photos
ApiAlbumController.php: Modified list_() and view() methods to handle virtual album
PhotoController.php: Added support for "noalbum" filter in photo listings
Frontend Changes
underscore.php: Updated album template to handle virtual album with special styling
Added conditional rendering for "No Album" with disabled edit/delete actions
Features Added
📁 Smart Virtual Album: Automatically appears only when unorganized photos exist
🔢 Photo Count: Shows exact number of photos without albums
🎨 Visual Design: Special styling to distinguish from regular albums
🚫 Protected Actions: Can't be edited or deleted (it's virtual)
🔗 Direct Access: Click to browse all unorganized photos at /photos/noalbum/list
Benefits
Photo Discovery: Users can easily find photos that need organization
Batch Management: Select multiple unorganized photos and assign to albums
Clean Interface: Only appears when needed, disappears when all photos are organized
User Experience: Encourages better photo organization habits
Testing
✅ Virtual album appears when photos without albums exist
✅ Virtual album disappears when all photos are organized
✅ Correct photo count display
✅ Browse functionality works correctly
✅ No edit/delete actions available for virtual album
✅ Proper routing for /photos/noalbum/list
Checklist:
✅ My changes are in a separate branch (add/feature-no-album-added)
✅ I have provided a detailed description of my changes
✅ I have linked any related issues
✅ Code follows existing patterns and architecture
✅ Feature is backward compatible
✅ No breaking changes introduced
au

@jmathai
Copy link
Member

jmathai commented Sep 24, 2025

Does this actually work? I don't have a working version of the site to test it :)

@koushik24k
Copy link
Author

koushik24k commented Sep 24, 2025

Does this actually work? I don't have a working version of the site to test it :)

Yes, it works!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants