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): Add Partner Sharing Avatars to Timeline and Info Cards #12413

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

x24git
Copy link
Contributor

@x24git x24git commented Sep 6, 2024

This Feature adds user avatars to the timeline for both partner sharing, and shared albums.

Timeline

The avatar uses the user's avatar image (if one is set) or the server's information is used to make an avatar using the user's assigned color and first letter of their name.
(In the screenshot below, the partner's icon is an Orange 'T'). Implements a simple store for user data to efficiently pull user data for the timelines.
image

New Settings

In order to control this feature there is a new setting added in the sharing config (changed from partner sharing to generic sharing).
image

Asset View

Additionally, there is improvements to the asset view to make it clear the source of the image (either shared, when in an album, or from partner sharing in the main timeline)
image

Is the companion feature for the same capability set on the mobile app #12089

@x24git
Copy link
Contributor Author

x24git commented Sep 6, 2024

Implements Feature Request #7608

@mertalev
Copy link
Contributor

You might want to rebase - the diff is looking pretty gnarly

@x24git
Copy link
Contributor Author

x24git commented Oct 16, 2024

Cleaned up commit history and rebased on main. Thanks @mertalev

@x24git x24git closed this Oct 16, 2024
@x24git x24git reopened this Oct 16, 2024
@x24git x24git closed this Oct 16, 2024
@x24git x24git reopened this Oct 16, 2024
@x24git
Copy link
Contributor Author

x24git commented Oct 16, 2024

Resolved all merge conflicts and test cases. Ready to merge. (Apologies for opening and reopening)

web/src/lib/components/asset-viewer/detail-panel.svelte Outdated Show resolved Hide resolved
web/src/lib/components/assets/thumbnail/thumbnail.svelte Outdated Show resolved Hide resolved
web/src/lib/i18n/en.json Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if we need a complete store just for this. I'll let that to the web experts though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If there is another store that is worth integrating into, I don't think that would be an issue. We do need a store though, otherwise there would be API requests for User info for each thumbnail in the asset view.

@aviv926
Copy link
Contributor

aviv926 commented Oct 17, 2024

Maybe it should be placed under Partner Sharing?
image

@x24git
Copy link
Contributor Author

x24git commented Oct 17, 2024

Maybe it should be placed under Partner Sharing?

Agreed, updated the PR description with the new placement. Swapped out the Partner Sharing title to a generic Sharing configuration, and then moved partners into an accordion box. Allow for future sharing specific settings to be added in the future.
image

@aviv926
Copy link
Contributor

aviv926 commented Oct 18, 2024

Maybe it should be placed under Partner Sharing?

Agreed, updated the PR description with the new placement. Swapped out the Partner Sharing title to a generic Sharing configuration, and then moved partners into an accordion box. Allow for future sharing specific settings to be added in the future.
image

Looks good I like that, but it's not my job to decide so let's see what the opinion of the core development team is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:feature cli Tasks related to the Immich CLI documentation Improvements or additions to documentation 🧠machine-learning 📱mobile 🗄️server 🖥️web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants