-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Group - Offline added avatar is not showing with reduced opacity #40427
Comments
Triggered auto assignment to @flodnv ( |
Triggered auto assignment to @abekkala ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@abekkala I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Offline added avatar is not grayed out What is the root cause of that problem?Right now we don't set App/src/components/AvatarWithImagePicker.tsx Line 301 in 9b839f4
We are not setting pendingFields in updateGroupChatAvatar
What changes do you think we should make in order to solve the problem?We can set const optimisticData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`,
value: {
avatarUrl: file?.uri ?? '',
+ pendingFields: {
+ avatar: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
+ },
},
},
]; Finally we will pass App/src/pages/ReportDetailsPage.tsx Lines 231 to 247 in 9b839f4
What alternative solutions did you explore? (Optional) |
This is from #39757 @marcaaron 🙃 |
Definitely not a Deploy Blocker.
@shawnborton What do you think about this? We could use a greyscale filter on the image. There's a library here that can do it: https://github.com/iyegoroff/react-native-color-matrix-image-filters |
@nexarvo I think it would have a default avatar, but not match the user uploaded avatar or default avatars for Group Chats. Or what else would it look like? |
Ah, for offline pending patterns, we don't use grayscale filters - we just reduce opacity to something like 50%. Gut check from @trjExpensify & @Expensify/design please! |
Yeah, 50% opacity for pending create. The account profile avatar should have a good example to follow. |
@shawnborton @marcaaron yes it's 50% opacity. Below I attached the screen shot for the result of my RCA above
|
Ok cool, thanks for the memory refresh @trjExpensify @shawnborton 🙇 @nexarvo There's a small detail though that this already has an open issue here. And @s77rt is assigned. @s77rt have you made progress on that or would you like to work with @nexarvo on this one as the C+? If so, I will close this and mark that other issue as |
Coming from this comment from @s77rt. @marcaaron I think we can continue with your comment here |
That's a great shout Danny, you are totally right about that. |
@marcaaron Working with @nexarvo sounds great! @nexarvo Please comment on the other issue so you can be assigned. For the PR let's add the errors logic too, it's pretty straightforward, add |
@dannymcclain @shawnborton for Profile and Workspace pages when we change picture offline then the icon also fades to 50% opacity. Do we need to make the behaviour of Group Chat avatar consistent with other pages ? |
I think fading the icon is a bug and we should fix that so that only the picture is faded out and not the pencil icon. Can we fix that everywhere? |
Agree. If we can fix that everywhere that'd be awesome. |
Closing in favor of #39983 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Avatar should be grayed out
Actual Result:
Avatar is not grayed out
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6453314_1713426435179.offline_avatar.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: