You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Group - Offline added avatar is not showing with reduced opacity #40427
👋 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:
Identify the pull request that introduced this issue and revert it.
@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.
@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 External and keep you both assigned.
changed the title [-]Group - Offline added avatar is not grayed out[/-][+]Group - Offline added avatar is not showing with reduced opacity[/+]on Apr 18, 2024
@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 errorFields.avatar
@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 ?
Activity
melvin-bot commentedon Apr 18, 2024
Triggered auto assignment to @flodnv (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 18, 2024
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Apr 18, 2024
👋 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:
izarutskaya commentedon Apr 18, 2024
@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.
izarutskaya commentedon Apr 18, 2024
We think this issue might be related to the #vip-vsb.
nexarvo commentedon Apr 18, 2024
Proposal
Please 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
pendingFieldsfor group avatars that's why ThependingActionis null here:App/src/components/AvatarWithImagePicker.tsx
Line 301 in 9b839f4
We are not setting
pendingFieldsin updateGroupChatAvatarWhat changes do you think we should make in order to solve the problem?
We can set
pendingFieldsin optimistic data here: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
pendingActionsbelow to be used in OfflineWithFeedback:App/src/pages/ReportDetailsPage.tsx
Lines 231 to 247 in 9b839f4
What alternative solutions did you explore? (Optional)
flodnv commentedon Apr 18, 2024
This is from #39757 @marcaaron 🙃
10 remaining items
trjExpensify commentedon Apr 18, 2024
Yeah, 50% opacity for pending create. The account profile avatar should have a good example to follow.
nexarvo commentedon Apr 18, 2024
@shawnborton @marcaaron yes it's 50% opacity. Below I attached the screen shot for the result of my RCA above
marcaaron commentedon Apr 18, 2024
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
Externaland keep you both assigned.[-]Group - Offline added avatar is not grayed out[/-][+]Group - Offline added avatar is not showing with reduced opacity[/+]dannymcclain commentedon Apr 18, 2024
Also quick note: I don't think the button should be 50% opacity, just the image, right? The button isn't disabled, so it should still be full opacity.
nexarvo commentedon Apr 19, 2024
Coming from this comment from @s77rt. @marcaaron I think we can continue with your comment here
shawnborton commentedon Apr 19, 2024
That's a great shout Danny, you are totally right about that.
s77rt commentedon Apr 19, 2024
@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
errorFields.avatarnexarvo commentedon Apr 24, 2024
@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 ?
shawnborton commentedon Apr 24, 2024
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?
dannymcclain commentedon Apr 24, 2024
Agree. If we can fix that everywhere that'd be awesome.
marcaaron commentedon Apr 29, 2024
Closing in favor of #39983