-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
base: main
Are you sure you want to change the base?
Conversation
Implements Feature Request #7608 |
You might want to rebase - the diff is looking pretty gnarly |
e9046e8
to
0c3e599
Compare
Cleaned up commit history and rebased on main. Thanks @mertalev |
Resolved all merge conflicts and test cases. Ready to merge. (Apologies for opening and reopening) |
web/src/lib/components/asset-viewer/asset-viewer-nav-bar.svelte
Outdated
Show resolved
Hide resolved
web/src/lib/stores/users.store.ts
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
1103a30
to
df65197
Compare
df65197
to
70a6a25
Compare
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.
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).
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)
Is the companion feature for the same capability set on the mobile app #12089