-
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
fix: Incorrect numpad horizontal padding on the native and mweb devices. #38542
Conversation
Signed-off-by: Krishna Gupta <[email protected]>
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
cc @Expensify/design can you please double check? I mean this PR should fix the tax value modal to mach request money |
They look identical to me, but is there a reason why the offline indicator is in a separate spot? Let's fix that by putting it in the same spot. I prefer the "tax numpad" placement, but given the "request money numpad" is likely canonical, I'd say use that as the guide. |
@Krishna2323 Can you look into that too? |
updating in a hour. |
Good catch @dubielzyk-expensify! |
@mountiny, I need sometime to investigate the other issue, it seems like the modals (pickers) doesn't take the full height. |
@shawnborton @dubielzyk-expensify, could you please confirm which of them is expected? It seems like the tax amount form isn't the expected one since we display the offline text at the very bottom of the page on almost every page. |
Hmm, hard to say. Perhaps the version on tax is correct because it has the correct amount of space for the safe area above the iOS home bar? Or perhaps the request money flow has that gap there for form validation? |
Seems we need to confirm if the screenshots added are accepted from design. Will continue review once the same is done. |
Signed-off-by: Krishna Gupta <[email protected]>
Hey @mountiny, @shawnborton @dubielzyk-expensify @abdulrahuman5196, I've been diving deep into the code and stumbled upon something interesting. So, there's this component called While checking things out, I noticed that the submit buttons/forms within modals don't have enough bottom padding in offline mode. Took a closer look and found out that most forms, including
|
This is awesome investigation, @Krishna2323 👏 ! I definitely think we should apply Here's my take on what it should ideally look like: Which gives us with some outlines: I'm not sure what the spacing is on our offline component at the moment though? Keen to hear what @Expensify/design thinks before we go and change anything |
Yeah, I like Jon's mocks above as it reduces the extra space below the green button and above the offline indicator. |
Same here. I like what Jon has proposed. |
@mountiny, I believe the above issue will require a lot of changes and testing. Can we create a new issue for the second design bug with a regular bounty? I've already spent a lot of time on investigation. |
@Krishna2323 Alright, can you prepare only the horizontal problem fix in this PR and we will look into the rest on separate issue for $250. |
@abdulrahuman5196 can you complete the review on this one please? |
@mountiny sure, Thanks! |
Checking now |
@Krishna2323 The horizontal padding is fixed. But I am now seeing more padding between numpad and the action button and with action button and bottom. The space is high compared to request money and as well as pre-existing padding. Screen.Recording.2024-04-01.at.5.17.09.PM.mov |
Good catch @abdulrahuman5196 - I agree with that |
@Krishna2323 can you please address this comment? |
Signed-off-by: Krishna Gupta <[email protected]>
@abdulrahuman5196 thanks for the testing. I mistakenly added vertical margin while fixing the second issue. Pushed the updated code. |
@abdulrahuman5196 can you please complete the testing and checklist on this one? |
Hi, will check in an hour. |
Reviewer Checklist
Screenshots/Videos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @mountiny
🎀 👀 🎀
C+ Reviewed
@dubielzyk-expensify @shawnborton do you want to give this a final approval before I merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on the design end. Good work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks everyone!
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.61-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.61-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.61-8 🚀
|
Details
Fixed Issues
$ #38523
PROPOSAL: #38523 (comment)
Tests
Save
button.Offline tests
Save
button.QA Steps
Save
button.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop