-
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 2025-02-04] [HOLD for payment 2025-01-24] [$250] mWeb/Safari - BA - The confirmation button jumps when returning to the previous page #53814
Comments
Triggered auto assignment to @CortneyOfstad ( |
I've been trying to test this and I cannot get it to consistently be recreated, so going to see if this can be retested. |
@CortneyOfstad Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still waiting on this being retested! |
Job added to Upwork: https://www.upwork.com/jobs/~021869122959863484757 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.BA - The confirmation button jumps when returning to the previous page What is the root cause of that problem?The input elements in the CompanyStep sub-steps aren't focused. App/src/pages/ReimbursementAccount/BusinessInfo/BusinessInfo.tsx Lines 34 to 44 in 01c0ad9
What changes do you think we should make in order to solve the problem?add auto-focus to CompanyStep substeps inputs using the useAutoFocusInput hook, so when it mounts input gets focused:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional) |
Hey @mananjadhav! Looks like we have a proposal above for review! Also, just a heads up that I will be OOO starting this afternoon (December 20th) and will be returning January 6th. A handful of folks on the BZ team will be online for a few days in between the 25th and the 1st, but we'll be operating with a skeleton crew. If any action is needed from a BZ perspective, please post this issue in #expensify-open-source and someone on the team will jump in. Otherwise I will review when I'm back in office. Thank you and Happy Holidays! |
Edited by proposal-police: This proposal was edited at 2024-12-23 09:40:41 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The confirmation button jumps when returning to the previous page What is the root cause of that problem?When we tap the back button or outside the input, the keyboard will dismiss, and the App/src/components/ScreenWrapper.tsx Line 163 in a8600a1
App/src/components/ScreenWrapper.tsx Lines 276 to 280 in a8600a1
For mWeb Safari on iOS, when the keyboard is dismissed, there is a slight delay in updating the visual viewport. As a result, the Screen.Recording.2024-12-23.at.15.08.23.movWhat changes do you think we should make in order to solve the problem?As I found on Stack Overflow, as of today, there are no real solutions for this, so I suggest a workaround solution to fix the issue. We should set the
function BlurContextProvider({children}: ChildrenProps) {
const [blurState, setBlurState] = useState<boolean>(true);
const blurContext = useMemo(
() => ({
blurState,
setBlurState,
}),
[blurState],
);
return <BlurContext.Provider value={blurContext}>{children}</BlurContext.Provider>;
}
App/src/components/Form/FormProvider.tsx Line 373 in 08f8314
const registerInput = useCallback<RegisterInput>(
(inputID, shouldSubmitForm, inputProps) => {
...
return {
...
onBlur: (event) => {
...
setBlurState(false);
},
...
};
},
[draftValues, inputValues, formState?.errorFields, errors, submit, setTouchedInput, setBlurState, shouldValidateOnBlur, onValidate, hasServerError, formID, shouldValidateOnChange],
);
App/src/components/ScreenWrapper.tsx Lines 276 to 280 in a8600a1
Update to: <KeyboardAvoidingView
style={[
styles.w100,
styles.h100,
blurState ? {maxHeight} : undefined,
isAvoidingViewportScroll ? [styles.overflowAuto, styles.overscrollBehaviorContain] : {},
]}
behavior={keyboardAvoidingViewBehavior}
enabled={shouldEnableKeyboardAvoidingView}
>
useEffect(() => {
const updateDimensions = () => {
if (!Browser.isSafari()) {
return;
}
setBlurState(true);
};
const removeViewportResizeListener = addViewportResizeListener(updateDimensions);
return () => {
removeViewportResizeListener();
};
}, []); POCScreen.Recording.2024-12-23.at.14.56.14.movTest branchWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?This is a UI bug; I don’t think code testing is needed here What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@mananjadhav, @CortneyOfstad Eep! 4 days overdue now. Issues have feelings too... |
@mananjadhav @CortneyOfstad 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! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Reviewing this by tomorrow. |
@mananjadhav can you complete the checklist before EOD? Thanks! |
@CortneyOfstad The original PR was reverted, and the new PR has been merged on staging. We'll payout based on the new PR. |
Issue not reproducible during KI retests. (First week) |
See: #55494 (comment) We should not do a payout for this solution until @huult can update the fix for Android since it's not working there yet. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-8 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 2025-02-04. 🎊 For reference, here are some details about the assignees on this issue:
|
@mananjadhav @CortneyOfstad @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@huult In case you missed out on the previous comment. I did not come across it in my testing. But I didn't test it on a physical device.
|
@huult Quick bump on the previous comment. |
@mananjadhav I will check it soon |
@mananjadhav Same as you, I am unable to reproduce it on my side Screen.Recording.2025-02-03.at.16.10.10.mov |
@huult @mananjadhav @yuwenmemon — is this good for payment now, or is additional action still needed? Thanks for the insight! |
@yuwenmemon @IuliiaHerets Any updates on the previous comment? |
Hi, @yuwenmemon. Tester still can repro this issue on the mWeb/Safari in the latest build ScreenRecording_02-05-2025.11-54-19_1.mp4 |
@IuliiaHerets The video above has fixed the issue. What issue did you mention? |
Issue not reproducible during KI retests. (Second week) |
@yuwenmemon Do you still think this should be held? |
Doesn't seem like it - @CortneyOfstad this should be good to go! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
@CortneyOfstad This is ready for payout, can you please post the payment summary. Please note this one had a regression, so the payout would be 125$ |
Payment Summary@huult – paid $250 via Upwork Regression Test |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.73-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
Email or phone of affected tester (no customers): n/a
Issue reported by: Applause Internal Team
Action Performed:
Precondition: Navigate to the add bank account modal in Workspace settings
Start and follow the flow for adding a Verifying bank account using the credentials found below until you reach the Company info page
Use Regions Bank
Username: user_good | Password: pass_good
Account type: Plaid Saving (2nd option)
CompanyName: Alberta Bobbeth Charleson
CompanyTaxID: 123456789
First Name: Alberta
Last Name: Charleson
Expected Result:
The confirmation button doesn't jump when returning to the previous page
Actual Result:
The confirmation button jumps when returning to the previous page
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6689379_1733785616993.RPReplay_Final1733783851.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @CortneyOfstadThe text was updated successfully, but these errors were encountered: