-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: android tax overlap suffix #60693
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: android tax overlap suffix #60693
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@hungvu193 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] |
Hi @Expensify/design team! This PR updates the autoGrow
textAlign
|
The after doesn't have the weird left side cutoff issue, but it feels a bit delayed in how it enters the digit. Is there a way to smoothen that out a bit? |
Hmm, this only changes the UI, and I didn’t notice delay before or after. I recorded the screen in debug mode, so that might be the reason. |
Hmm yeah, something about the after feels a lot less smooth than the before? |
The fact that he ran the app on an emulator so you can see it's a bit laggy than before. The changes in this PR only affect the UI. I suggest that we should trigger a build. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid.movAndroid: mWeb ChromemChrome.moviOS: HybridAppIOS.moviOS: mWeb SafarimSafari.movMacOS: Chrome / SafariChrome.movMacOS: DesktopDesk.mov |
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.
Leaving to @dangrous for a final review
|
Pinged @danieldoglas via Slack |
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.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊 (1/3)Significant Changes To Duration
Show details
|
Performance Comparison Report 📊 (2/3)Meaningless Changes To Duration (1/2)Show entries
Show details
|
Performance Comparison Report 📊 (3/3)Meaningless Changes To Duration (2/2)Show entries
Show details
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.47-0 🚀
|
Explanation of Change
On
Android
native, theautoGrow
feature enables theInput
to automatically expand based on the entered text by allocating extra space to the right of the input. However, this functionality only worked correctly when a prefix (a symbol displayed on the left side of the input) was present. When a suffix (a symbol displayed on the right side) was used instead, theautoGrow
behavior failed, causing layout issues.In this PR, we've updated the
Input
component to supportautoGrow
in cases where a suffix is present. This ensures that theInput
expand correctly whether aprefix
orsuffix
Fixed Issues
$ #59607
PROPOSAL: #59607 (comment)
Tests
The entered digit does not overlap with the percentage symbol.
The tax value is not cut off while typing.
Verify that no errors appear in the JS console
Offline tests
Same as test above
QA Steps
Same as test above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)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
after.mov
Android: mWeb Chrome
Screen.Recording.2025-04-23.at.10.18.00.mov
iOS: Native
Screen.Recording.2025-04-23.at.10.10.52.mov
iOS: mWeb Safari
Screen.Recording.2025-04-23.at.10.16.42.mov
MacOS: Chrome / Safari
Screen.Recording.2025-04-23.at.10.19.11.mov
MacOS: Desktop
Screen.Recording.2025-04-23.at.10.21.37.mov