LycheeOrg / Lychee-front

JS implementation of Lychee frontend
https://lycheeorg.github.io/
MIT License
48 stars 53 forks source link

Custom album covers #239

Closed evoludolab closed 3 years ago

evoludolab commented 3 years ago

Draft pull request to implement setting custom cover images for albums, see LycheeOrg/Lychee#442

This pull request implements the front end for setting custom album covers by extends the context menu for photos and albums with Set/Remove Album cover to set/remove custom album covers of the parent album. The corresponding changes in the back end are in a separate pull request LycheeOrg/Lychee#875

IMPORTANT:

kamil4 commented 3 years ago

OK, I added the missing pieces for selecting a subalbum as cover; can you guys test?

Smart albums now display "public" badge for if the Starred or Recent albums are public. I'm undecided if I like that or not... It's probably an improvement, although I may tweak the ordering...

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

ildyria commented 3 years ago

I'm unsure about having the cover badge showing up for albums. For pictures it is pretty obvious but for album I feel this is overkill. :thinking:

kamil4 commented 3 years ago

I'm unsure about having the cover badge showing up for albums. For pictures it is pretty obvious but for album I feel this is overkill. thinking

I don't get it. To me they seem like exactly the same case? A user can select for a cover of an album either a photo from the album as or a cover from a subalbum. In either case we give the same visual indication. Why should one be obvious and the other an overkill?

ildyria commented 3 years ago

I will check. :)

evoludolab commented 3 years ago

In my original attempt only the context menu entry and the colour of its accompanying icon changed for a currently selected photo/sub album. This was subtle to the point of obscurity... I am with @kamil4 and already got totally used to the badges. My initial concerns with them completely evaporated after @ildyria pointed out that badges are only visible for the owner of the album.