You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-03-11] [$250] Status - With status message entered, save button hidden behind keypad on opening #53692
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]Status - With status message entered, save button hidden behind keypad on opening[/-][+][$250] Status - With status message entered, save button hidden behind keypad on opening[/+]on Dec 9, 2024
Edited by proposal-police: This proposal was edited at 2023-10-07T06:34:00Z.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Status - With status message entered, save button hidden behind keypad on opening.
What is the root cause of that problem?
the issue happens when the clear status element is added after we type something in, that element takes space and so the save button will be pushed down for lack of space.
What changes do you think we should make in order to solve the problem?
Edited by proposal-police: This proposal was edited at 2024-12-16 15:04:30 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
With status message entered, save button hidden behind keypad on opening
What is the root cause of that problem?
The RCA of this issue is that the available height is not sufficient to display all elements when the keyboard opens. As a result, the keyboard overlaps the button, and scrolling is required to access it.
This issue commonly occurs on smaller devices like the iPhone SE...
Screen.Recording.2024-12-11.at.21.49.24.mov
What changes do you think we should make in order to solve the problem?
To resolve this issue, we should scroll the form to the end when the keyboard opens to prevent the keyboard from overlapping the button, ensuring the button is visible as expected. To implement this, follow the steps below:
FormWrapper receives a new prop shouldScrollToEnd and sets up useEffect to trigger scrolling.
When the TextInput is focused, meaning the keyboard is open, we scroll the TextInput to the top to maximize the visibility of the elements below it (68 is height of label)
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.
changed the title [-][$250] Status - With status message entered, save button hidden behind keypad on opening[/-][+][Due for payment 2025-03-11] [$250] Status - With status message entered, save button hidden behind keypad on opening[/+]on Mar 4, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.8-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@allgandalf@lschurr@allgandalf 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]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other: This existed from the start
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A (this existed for smaller screens from the start)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Launch the app on both mobile web (mWeb) and the mobile app.
Navigate to Settings → Profile → Status.
Check if the Save button is visible when the status message is empty.
Enter a status message and tap Save.
Reopen the Status option from Profile → Status.
Verify that the Save button is not hidden behind the keyboard.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Dec 6, 2024
Triggered auto assignment to @lschurr (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.[-]Status - With status message entered, save button hidden behind keypad on opening[/-][+][$250] Status - With status message entered, save button hidden behind keypad on opening[/+]melvin-bot commentedon Dec 9, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021866149099136907717
melvin-bot commentedon Dec 9, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (
External)M00rish commentedon Dec 10, 2024
Edited by proposal-police: This proposal was edited at 2023-10-07T06:34:00Z.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Status - With status message entered, save button hidden behind keypad on opening.
What is the root cause of that problem?
the issue happens when the clear status element is added after we type something in, that element takes space and so the save button will be pushed down for lack of space.
What changes do you think we should make in order to solve the problem?
check if clear status element should be present:
and only if
shouldShowClearStatusis true scroll down:and obviously, we use the shouldShowClearStatus instead in the component:
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Lines 213 to 222 in 64d6c38
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI issue
What alternative solutions did you explore? (Optional)
huult commentedon Dec 11, 2024
Edited by proposal-police: This proposal was edited at 2024-12-16 15:04:30 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
With status message entered, save button hidden behind keypad on opening
What is the root cause of that problem?
The RCA of this issue is that the available height is not sufficient to display all elements when the keyboard opens. As a result, the keyboard overlaps the button, and scrolling is required to access it.
This issue commonly occurs on smaller devices like the iPhone SE...
Screen.Recording.2024-12-11.at.21.49.24.mov
What changes do you think we should make in order to solve the problem?
To resolve this issue, we should scroll the form to the end when the keyboard opens to prevent the keyboard from overlapping the button, ensuring the button is visible as expected. To implement this, follow the steps below:
shouldScrollToEndand sets upuseEffectto trigger scrolling.App/src/components/Form/FormWrapper.tsx
Line 41 in 25127ff
function FormWrapper({ onSubmit, children, errors, inputRefs, submitButtonText, footerContent, isSubmitButtonVisible = true, style, submitButtonStyles, submitFlexEnabled = true, enabledWhenOffline, isSubmitActionDangerous = false, formID, shouldUseScrollView = true, scrollContextEnabled = false, shouldHideFixErrorsAlert = false, disablePressOnEnter = false, isSubmitDisabled = false, shouldScrollToEnd = false, }: FormWrapperProps) {useEffect(() => { if (!shouldScrollToEnd) { return; } InteractionManager.runAfterInteractions(() => { requestAnimationFrame(() => { formRef.current?.scrollToEnd({animated: true}); }); }); }, [shouldScrollToEnd]);shouldScrollToEndto trigger scrolling to the end when visiting the status pageApp/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 166 in 1a0b9a1
const {keyboardHeight} = useKeyboardState();<FormProvider formID={ONYXKEYS.FORMS.SETTINGS_STATUS_SET_FORM} style={[styles.flexGrow1, styles.flex1]} ref={formRef} submitButtonText={translate('statusPage.save')} submitButtonStyles={[styles.mh5, styles.flexGrow1]} onSubmit={updateStatus} validate={validateForm} enabledWhenOffline shouldScrollToEnd // shouldScrollToEnd={keyboardHeight !== 0} >shouldEnableMaxHeightinScreenWrapper.App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Line 158 in 77c56cd
POC
Screen.Recording.2024-12-11.at.22.57.34.mp4
What 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 we need to test it
What alternative solutions did you explore? (Optional)
When the text input is focused, we scroll it to the top to maximize the visibility of the elements below.
App/src/components/Form/FormProvider.tsx
Lines 265 to 267 in bfe4e35
App/src/components/Form/FormWrapper.tsx
Lines 106 to 119 in bfe4e35
App/src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Lines 210 to 214 in bfe4e35
POC
Screen.Recording.2024-12-16.at.23.28.44.mov
Test branch
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.
83 remaining items
[-][$250] Status - With status message entered, save button hidden behind keypad on opening[/-][+][Due for payment 2025-03-11] [$250] Status - With status message entered, save button hidden behind keypad on opening[/+]melvin-bot commentedon Mar 4, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 4, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.8-1 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-03-11. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 4, 2025
@allgandalf @lschurr @allgandalf 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]
lschurr commentedon Mar 10, 2025
@allgandalf could you work on the checklist for this one?
allgandalf commentedon Mar 10, 2025
sure, will complete tomorrow, please put this back to daily
lschurr commentedon Mar 11, 2025
Payment summary:
lschurr commentedon Mar 11, 2025
We can close once the checklist is complete @allgandalf :)
allgandalf commentedon Mar 12, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A (this existed for smaller screens from the start)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Verify that the Save button is not hidden behind the keyboard.
Do we agree 👍 or 👎