-
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
[HOLD for payment 2023-10-27] [$500] IOS- Receipt border radius is not round #29230
Comments
Triggered auto assignment to @lschurr ( |
Job added to Upwork: https://www.upwork.com/jobs/~01c9f60635e933b6e7 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Receipt border radius is not round What is the root cause of that problem?App/src/components/ReportActionItem/ReportActionItemImage.js Lines 41 to 48 in b5445bd
It seems that the styles.reportContainerBorderRadius which is responsible for Border radius is not. assigned to ThumbnailImage .
What changes do you think we should make in order to solve the problem? |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOS- Receipt border radius is not round What is the root cause of that problem?We are not applying the border radius properties to the inner container of the images. App/src/components/ReportActionItem/ReportActionItemImages.js Lines 54 to 78 in 11acdc2
Lines 3600 to 3607 in b5445bd
What changes do you think we should make in order to solve the problem?Border radius and overflow style should also be added to reportActionItemImage. Styles to be added: Lines 3592 to 3596 in b5445bd
Optional:We may want to subtract 4 from
Result |
ProposalPlease re-state the problem that we are trying to solve in this issueReceipt border radius should be rounded. What is the root cause of that problem?The problem comes from the fact that App/src/components/ReportActionItem/ReportActionItemImage.js Lines 41 to 53 in 11acdc2
This causes both receipt and receipt placeholder pictures to not have rounded borders since currently both only have What changes do you think we should make in order to solve the problem?Add const receiptImageComponent = thumbnail ? (
<ThumbnailImage
previewSourceURL={thumbnailSource}
- style={[styles.w100, styles.h100]}
+ style={[styles.w100, styles.h100, styles.reportContainerBorderRadius]}
isAuthTokenRequired
shouldDynamicallyResize={false}
/>
) : (
<Image
source={{uri: image}}
- style={[styles.w100, styles.h100]}
+ style={[styles.w100, styles.h100, styles.reportContainerBorderRadius]}
/>
);
What alternative solutions did you explore? (Optional)N/A VideosiOSios.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Receipt border radius should be rounded. What is the root cause of that problem?We don't have borderRadius to wrapper of What changes do you think we should make in order to solve the problem?We need to add borerRadius and overflow: hidden to wrapper.
Need to add reportActionItemImage
Line 3588 in 562f9d8
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOS- Receipt border radius is not round What is the root cause of that problem?Clearly we need borderRadius here, App/src/components/ReportActionItem/ReportActionItemImage.js Lines 42 to 47 in 502df9b
We are missing What changes do you think we should make in order to solve the problem?We need to add <ThumbnailImage
previewSourceURL={thumbnailSource}
- style={[styles.w100, styles.h100]}
+ style={[styles.w100, styles.h100, styles.reportContainerBorderRadius]}
isAuthTokenRequired
shouldDynamicallyResize={false}
/> What alternative solutions did you explore? (Optional)NA Result: |
@allroundexperts could you review the proposals here? |
I'm going to post a proposal to fix this issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOS- Receipt border radius is not round What is the root cause of that problem?The root cause of issue is from RN lib. On iOS platform, border radius is not working when using transparent border color. See style of Lines 3711 to 3719 in fe282b4
We can reproduce it using snack: https://snack.expo.dev/@eh2077/4c412a?platform=ios iOS Screen.Recording.2023-10-14.at.11.45.41.AM.movI reported this issue to upstream RN repo, see facebook/react-native#40969 It seems that the transparent or opacity border issue is tricky in RN, see also facebook/react-native#39286 What changes do you think we should make in order to solve the problem?From the style of Lines 3711 to 3719 in fe282b4
We're using We can use We can just replace Lines 3713 to 3714 in fe282b4
with margin: 4, By doing so, we can get rid of the tricky inconsistent case of RN and solve the issue on iOS. Note we need to ensure the fix works for one or more than one receipts. See demo ios.mp4What alternative solutions did you explore? (Optional)N/A |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @eh2077 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @gadhiyamanan 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@allroundexperts PR #29776 is ready for review. Thanks! |
🎯 ⚡️ Woah @allroundexperts / @eh2077, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.87-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-27. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Could you work on the checklist for this one @allroundexperts? Thanks! |
Payment summary:
|
Payments made in Upwork for @eh2077 and @gadhiyamanan. Bump @allroundexperts for the checklist :) |
ChecklistSince this issue is very much related to RN, I don't think that there is any PR in our repo that we can point to that resulted in this. I also think that a Slack discussion is not needed here. However, a regression test would be helpful. Regression Test
Verify the receipt border radius is round. Do we 👍 or 👎 ? |
All set! |
$750 payment approved for @allroundexperts based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.80.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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696931354301509
Action Performed:
Expected Result:
receipt border radius should be round
Actual Result:
receipt border radius not round
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
RPReplay_Final1696921036.1.MP4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: