Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): show favorite icon in duplicate asset #10688

Merged

Conversation

Pascal-So
Copy link
Contributor

This show the favorite-heart on the duplicate review page:

screenshot of the updated duplicate review UI

Note that here it is shown in the top left rather than the bottom left, because the view button is already located in the bottom right. I also experimented with moving the heart up above the view button, but that didn't look as nice in my opinion:

alternative design where the heart is located in the bottom left

Feel free to object if you think otherwise.

I think this change would be beneficial for the following reason: When reviewing duplicates, I find it useful to know if one of the assets is favorited, because in that case I would then want to ensure afterwards that the asset that I keep is favorited. That way I avoid losing information during the cleanup, i.e. the "isFavorite" information.

What do you think about this suggested change?

@@ -38,6 +38,13 @@
draggable="false"
/>

<!-- FAVORITE ICON -->
{#if !isSharedLink() && asset.isFavorite}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't actually understand why the !isSharedLink is here. I copied this snippet from thumbnail.svelte so I'm guessing we also need this condition here? Let me know if I should take it out 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need it. We hide those types of icons when you are viewing stuff as an anonymous user.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I've removed the condition

@alextran1502
Copy link
Contributor

Nice job, thanks!

@alextran1502 alextran1502 changed the title Show favorite icon in duplicate asset feat(web): show favorite icon in duplicate asset Jun 28, 2024
@bo0tzz
Copy link
Member

bo0tzz commented Jun 28, 2024

Nice! Imo having the favorite icon always be in a consistent place would be nice, feel free to move the view button out of the way to another corner if you want.

@Pascal-So
Copy link
Contributor Author

@bo0tzz okay I moved the heart back to bottom-2 left-2 just like in thumbnail.svelte.

As for the view button, the only thing in immich that i could kinda consider a precedent to guide its placement is the select button in the asset grid, so I chose to place it in the top left just like the select button.

image

It's not really the same functionality (select vs view) but overall this feels the least inconsistent to me. What do you think?

@alextran1502 alextran1502 merged commit 821570f into immich-app:main Jun 28, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants