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
[HOLD for payment 2024-08-02] [$250] Workspace - Fallback avatar in workspace chat is clickable and leads to not here page #44853
Version Number: 9.0.4-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Go offline
Go to workspace settings > Members
Invite a non-existing user
Go to workspace chat with the invited user
Click on the chat header
Click on the fallback avatar (invited user)
Expected Result:
The fallback avatar should not be clickable
Actual Result:
The fallback avatar is clickable and leads to not here page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@miljakljajic FYI 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
In the navigateToAvatarPage function, we haven't included logic to prevent the user from navigating to the avatar page if the avatar is default
What changes do you think we should make in order to solve the problem?
In the ProfileAvatar component, we currently have logic to display a "not found" page if we cannot find personalDetail matching the accountID prop. We should implement the same logic in the navigateToAvatarPage function
We need to verify whether we can find a personalDetail that matches the icon.id. If we can find a match, then we'll allow the user to navigate to the avatar page.
Even though, we can display the disable pointer when the user hovers over the default avatar
What alternative solutions did you explore? (Optional)
On the Header page, we also disable the header view, including interactions with the avatar.
changed the title [-]Workspace - Fallback avatar in workspace chat is clickable and leads to not here page[/-][+][$250] Workspace - Fallback avatar in workspace chat is clickable and leads to not here page[/+]on Jul 10, 2024
Activity
melvin-bot commentedon Jul 4, 2024
Triggered auto assignment to @miljakljajic (
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.lanitochka17 commentedon Jul 4, 2024
@miljakljajic FYI 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
lanitochka17 commentedon Jul 4, 2024
We think that this bug might be related to #wave-collect - Release 1
daledah commentedon Jul 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The fallback avatar is clickable and leads to not here page
What is the root cause of that problem?
In offline mode, we can't call successfully
openPublicProfilePageand can't getavatarURLinApp/src/pages/settings/Profile/ProfileAvatar.tsx
Line 48 in f73cdc4
What changes do you think we should make in order to solve the problem?
In the function
openPublicProfilePagewe can setavatarUrlto the default avatar when its call failsWhat alternative solutions did you explore? (Optional)
We'll not allow user to navigate to the avatar page when it don't have data and in offline mode
NA
cretadn22 commentedon Jul 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - Fallback avatar in workspace chat is clickable and leads to not here page
What is the root cause of that problem?
App/src/components/RoomHeaderAvatars.tsx
Line 77 in f73cdc4
In the navigateToAvatarPage function, we haven't included logic to prevent the user from navigating to the avatar page if the avatar is default
What changes do you think we should make in order to solve the problem?
In the ProfileAvatar component, we currently have logic to display a "not found" page if we cannot find personalDetail matching the accountID prop. We should implement the same logic in the navigateToAvatarPage function
App/src/components/RoomHeaderAvatars.tsx
Lines 25 to 27 in f73cdc4
We need to verify whether we can find a personalDetail that matches the icon.id. If we can find a match, then we'll allow the user to navigate to the avatar page.
Even though, we can display the disable pointer when the user hovers over the default avatar
What alternative solutions did you explore? (Optional)
On the Header page, we also disable the header view, including interactions with the avatar.
App/src/pages/home/HeaderView.tsx
Lines 175 to 180 in ec19663
Here, we use the function isOptimisticPersonalDetail.
App/src/libs/ReportUtils.ts
Line 1133 in ec19663
I recommend that we do the same in RoomHeaderAvatars (there are two places that need to apply the disabled props)
Note that icon.id refers to accountID as defined
App/src/libs/ReportUtils.ts
Line 2049 in ec19663
neonbhai commentedon Jul 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - Fallback avatar in workspace chat is clickable and leads to not here page
What is the root cause of that problem?
Whe navigating to avatar page here, we do not check if the avatar is the default Fallback avatar.
We should disable navigating if the avatar is the fallback avatar.
What changes do you think we should make in order to solve the problem?
We should have a check that disables clicking on the avatar here and here when it is the fallback avatar:
App/src/components/RoomHeaderAvatars.tsx
Lines 39 to 44 in f73cdc4
Result
Screen.Recording.2024-07-04.at.10.10.29.PM.mov
melvin-bot commentedon Jul 9, 2024
@miljakljajic Huh... This is 4 days overdue. Who can take care of this?
[-]Workspace - Fallback avatar in workspace chat is clickable and leads to not here page[/-][+][$250] Workspace - Fallback avatar in workspace chat is clickable and leads to not here page[/+]melvin-bot commentedon Jul 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0189b738ae283ab8e4
46 remaining items
miljakljajic commentedon Aug 8, 2024
Thank you!
aimane-chnaif commentedon Oct 3, 2024
@miljakljajic I am not paid yet. Can you please reopen and sort payment on upwork? Thanks
melvin-bot commentedon Oct 7, 2024
Triggered auto assignment to @zanyrenney (
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.dangrous commentedon Oct 7, 2024
@miljakljajic is OOO at the moment, so re-assigned via
Buglabel - @zanyrenney please see #44853 (comment) when you have a moment, thanks!zanyrenney commentedon Oct 7, 2024
hey @aimane-chnaif apologies about you getting forgotten!
zanyrenney commentedon Oct 7, 2024
Have sent you another invite for it - https://www.upwork.com/nx/wm/offer/104306643
zanyrenney commentedon Oct 8, 2024
bump @aimane-chnaif please accept
zanyrenney commentedon Oct 9, 2024
Payment summary
paid @aimane-chnaif $250 via upwork.