-
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
[$500] Android - Scan - '+n' box in the expense preview has monotone design compared to other platforms #29827
Comments
Triggered auto assignment to @JmillsExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01bb1eaa9608e54e7c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The +n text of receipt images only has one color on Android compared to other platforms where there are 2 different colors. What is the root cause of that problem?The +n triangle has a style below Lines 3754 to 3766 in 9664f8c
To show the highlighted red triangle background color below, we set it through After doing some investigation, setting both What changes do you think we should make in order to solve the problem?Set the border color one by one. borderTopColor: 'transparent',
borderLeftColor: 'transparent',
borderRightColor: 'transparent',
borderBottomColor: theme.cardBG, |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Scan - '+n' box in the expense preview has monotone design compared to other platforms. What is the root cause of that problem?The root cause of this issue is that the way we draw triangle is not working in RN of Android, see Lines 3755 to 3767 in b3c4419
We're using What changes do you think we should make in order to solve the problem?To solve this issue, instead of drawing triangle using To achieve it, we replace this line with
and define triangle width variable like
See demo 0-android.mp4What alternative solutions did you explore? (Optional)N/A |
|
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Still waiting on issue proposal review |
|
Working on review today. If not complete by today, will re-assign myself to provide faster update. |
@bernhardoj 's solution here #29827 (comment) doesn't seem to be working for me. |
@eh2077 's proposal here #29827 (comment) looks good and works well. 🎀 👀 🎀 |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Looks good to me. Let's test it on all platforms regardless of issue happening on Android only and for various screen sizes |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @eh2077 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@abdulrahuman5196 Can you recheck my proposal? It works totally fine Screen.Recording.2023-10-31.at.10.57.35.movIsn't it better to fix the styling instead of re-creating it with an SVG? 😄 |
@JmillsExpensify @MonilBhavsar @abdulrahuman5196 @eh2077 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
PR will be ready by tmr. |
@abdulrahuman5196 can you check my comment before @eh2077 raise the PR? cc: @MonilBhavsar |
Thanks for raising up @bernhardoj. I tried again and your solution is working. |
I think creating the triangle with an SVG isn't a straightforward fix.
May I know why it's better for the long term? Creating a triangle with a border seems a common thing to do. I would like to know @MonilBhavsar opinion on which solution is better, pure CSS vs SVG. (fyi, my proposal comes first 😄) |
I think using border to create triangle is more like a trick. My understanding is that the App always prefers holistic approaches over tricks. |
Looks like react-native have issues with the properties we use to generate triangle using CSS and chances are we could run into similar issue again. |
If we are talking about the potential issues in the future, then I think every approach has it. The issue we have here is that we can't combine the |
@abdulrahuman5196 PR #30701 is ready for review, thanks! |
Not a regression. A platform specific present from implementation.
No. Not beneficial for this minor UI bug. Seems melvin didn't update here automatically. This issue should be on payment due today - #30701 (comment) |
Payment summary:
|
Everyone paid out based on summary above. Closing! |
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.85-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: Applause - Internal Team
Slack conversation:
Action Performed:
Take a look at the '+n' box in the expense preview and see the difference between Android app and web app
Expected Result:
The '+n' box in the expense preview on Android app shares the same design as the web app
Actual Result:
The '+n' box in the expense preview on Android app does not have two shades of triangles compared to other platforms (web, mweb, desktop and iOS app)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
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: