-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Web - Expense request avatar is broken in LHN #23821
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The expense report first avatar is not full circle. What is the root cause of that problem?The first avatar/icon size is 32, but the width of the container of the avatar is 40 and the border-radius style is applied to the container. The width of 40 comes from the containerStyle here that is applied to the SubscriptAvatar container. App/src/components/SubscriptAvatar.js Line 51 in eb02006
and because the default flex-direction is column, the children, including the avatar container, will have the same width, that is 40. That's why you can notice the border-top radius looking weird What changes do you think we should make in order to solve the problem?Apply alignSelf flex start to the first avatar container of SubscriptAvatar, so the width follows the content/children of it. App/src/components/SubscriptAvatar.js Lines 56 to 63 in eb02006
What alternative solutions did you explore? (Optional)If we look at MultipleAvatars that is stacked diagonally, it doesn't have this issue. That is because we manually set the width and the height of the container (imageStyles) to be the same size as the avatar icon. (just a note: avatar has a total of 3 view wrappers that we can style: iconAdditionalStyles, imageStyles, containerStyles) App/src/components/MultipleAvatars.js Lines 253 to 262 in eb02006
We can do the similar thing, but I still prefer the main solution. |
@situchan How can I get account with policyExpenseChat beta permission? |
@ahmedGaber93 yes |
@bernhardoj |
You can ask for help from the internal team to add you to the beta. |
@ahmedGaber93 please request permission in slack. You need to provide emails to be added to beta. |
Thanks for help @situchan. |
@stephanieelliott can I C+ review this if possible? As I found the root cause and solution while reporting this bug. |
@Christinadobrzyn No, it's different issue. #23815 was deployed to staging 6 hrs ago but broken avatar issue is still reproducible. |
FYI: #23815 (comment) |
thanks for confirming @rezkiy37! Closing this as it's confirmed to be fixed with #23815 (comment) @situchan feel free to reach out in the Expensify-Bugs room if you find any regressions |
Hey @rezkiy37, can you double-check this issue will be fixed? @situchan believes to think the issue still exists after the merge. Sorry for all the confusion @stephanieelliott - tried to save you some time! |
Hi, @situchan! Could you please take a look at this comment where I attached examples. The second video associated with this issue. Do I still have the bug there? |
@rezkiy37 you can test on staging right now |
@rezkiy37 I checked your video. It's IOU request (in DM). The issue is in expense request (in workspace chat). |
Appreciate you, thanks @Christinadobrzyn! 💕 |
@situchan, I've tried to reproduce it one more time on the staging. Everything looks good. Avatars are circles. Avatar.mp4 |
It's already fixed in this PR #22467 |
Ah it's merged 12 hrs ago. So @rezkiy37 it's not your PR but Georgia's PR which fixed this issue. |
Yes, it is fixed. This was known to us before this issue was reported. Here is the related discussion https://github.com/Expensify/App/pull/21657/files#r1275373499 #22467 (comment) and we were actively working on this via discussion #19905 (comment). Thus this report is not eligible for reporting. @stephanieelliott We can close it. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Avatar is not broken
Actual Result:
Avatar is broken
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-07-28.at.6.18.34.PM.1.mov
Recording.3986.mp4
Expensify/Expensify Issue URL:
Issue reported by: @situchan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690545428804849
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: