-
Notifications
You must be signed in to change notification settings - Fork 987
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: render all avatars using media server #16193
Conversation
Jenkins BuildsClick to see older builds (285)
|
7eedf79
to
e7d17ab
Compare
d7a0ec5
to
4cd0a68
Compare
e047350
to
6394e3d
Compare
6394e3d
to
60eb947
Compare
@@ -18,124 +13,5 @@ | |||
|
|||
(h/test "Renders even if `:full-name` is passed" | |||
(h/render | |||
[user-avatar/user-avatar |
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.
status indicator, initials are renderd by status-go now
@@ -45,11 +45,10 @@ | |||
:on-press (when on-press on-press) | |||
:on-long-press (when on-long-press on-long-press)} | |||
[user-avatar/user-avatar | |||
{:full-name primary-name | |||
:profile-picture photo-path | |||
:status-indicator? true |
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.
:status-indicator?
defaults to true
src/status_im2/events.cljs
Outdated
@@ -57,6 +72,7 @@ | |||
(-> multiaccount | |||
(dissoc :customizationColor) | |||
(assoc :customization-color (keyword customizationColor)) | |||
(assoc :ens-name? (ens/is-valid-eth-name? (:name multiaccount))) |
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.
for multiaccount before login
eabbc10
to
8cae06b
Compare
including home view, shell, community, chat
Signed-off-by: yqrashawn <namy.19@gmail.com>
the image file on android is something like file:///storage/emulated/0/Android/data/im.status.ethereum.debug/files/Pictures/dd9acd6f-8906-4641-a800-3aad09fcdfc0.jpg which can't be accessed directly with status-go changed to use the URI directly, no need to go through image server
Signed-off-by: yqrashawn <namy.19@gmail.com>
status-im/status-go@cf2d72b...f2f599f Signed-off-by: yqrashawn <namy.19@gmail.com>
22916a7
to
30513c7
Compare
fixes #15271
fixes #15751
fixes #16552
status-go PR status-im/status-go#3513
Note: I cleaned up the this PR's commit history recently so that it can be reviewed commit by commit and will have fewer conflicts in future rebase.
Summary
use status-go media server to render all avatars
{:uri ...}
->{:uri ... :fn ...}
,user-avatar
component calls the newly added:fn
, passes style related options to that fn and generates the media server URI:setup
to get the absolute font file path for initials avatar, which is used by status-go to render the initialsuser-avatar
component to support the new patternno-flicker-image
component to cache the image to avoid flicker when re-render on androidmissing avatar for none contact membersame on nightly, separate issueAreas that maybe impacted
affects everywhere has an avatar including onboarding placeholder avatar and avatars in old component/view (profile, contact profile)
status: ready