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
[HOLD for payment 2024-07-10] [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Chat - Compose box is hidden when editing multiple line break message #40767
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
changed the title [-]Chat - Compose box is hidden when editing multiple line break message[/-][+][$250] Chat - Compose box is hidden when editing multiple line break message[/+]on Apr 24, 2024
Please re-state the problem that we are trying to solve in this issue.
Chat - Compose box is hidden when editing multiple line break message
What is the root cause of that problem?
When editing a message item on report item list will be focus and scrollToIndex immediate, but the keyboard shown 100% after the list item scrollToIndex and the height of report item will resize to smaller so the keyboard will overlap the edit composer
What changes do you think we should make in order to solve the problem?
We will be waiting the keyboard open 100% before scrollToIndex. We can use InteractionManager.runAfterInteractions and requestAnimationFrame to wait the keyboard opened then scroll to index
Update onFocus function to
[@rojiphil] The PR that introduced the bug has been identified. Link to the PR: Offending PR
[@rojiphil] 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: Added comment
[@rojiphil] A discussion in #expensify-bugs 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: Not Required. Existing checklist is good enough to capture such issues.
[@rojiphil] Determine if we should create a regression test for this bug. : Given the spooky nature of this issue, it is better to have a regression test case to ensure this does not occur again.
[@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Go to any chat.
Send a message with 10 line breaks.
Tap and hold on the recently sent message.
Tap on "Edit comment".
Verify that the page auto-scrolls to the bottom and the compose box is fully visible without manual scroll.
changed the title [-][HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Chat - Compose box is hidden when editing multiple line break message[/-][+][HOLD for payment 2024-07-10] [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Chat - Compose box is hidden when editing multiple line break message[/+]on Jul 3, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@rojiphil / @suneox] The PR that introduced the bug has been identified. Link to the PR:
[@rojiphil / @suneox] 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:
[@rojiphil / @suneox] A discussion in #expensify-bugs 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:
[@rojiphil / @suneox] Determine if we should create a regression test for this bug.
[@rojiphil / @suneox] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Apr 23, 2024
Triggered auto assignment to @trjExpensify (
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.izarutskaya commentedon Apr 23, 2024
We think this issue might be related to the #vip-vsb.
trjExpensify commentedon Apr 24, 2024
I can reproduce it. Couldn't find a recent issue, looks like @kosmydel fixed it once before here in Oct 2023: #24502
[-]Chat - Compose box is hidden when editing multiple line break message[/-][+][$250] Chat - Compose box is hidden when editing multiple line break message[/+]melvin-bot commentedon Apr 24, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0179a22c17165154c1
melvin-bot commentedon Apr 24, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)suneox commentedon Apr 24, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - Compose box is hidden when editing multiple line break message
What is the root cause of that problem?
When editing a message item on report item list will be focus and scrollToIndex immediate, but the keyboard shown 100% after the list item
scrollToIndexand the height of report item will resize to smaller so the keyboard will overlap the edit composerWhat changes do you think we should make in order to solve the problem?
We will be waiting the keyboard open 100% before
scrollToIndex. We can useInteractionManager.runAfterInteractionsandrequestAnimationFrameto wait the keyboard opened then scroll to indexUpdate onFocus function to
onFocus={() => { setIsFocused(true); + InteractionManager.runAfterInteractions(() => { + requestAnimationFrame(() => { reportScrollManager.scrollToIndex(index, true); + }); + }); setShouldShowComposeInputKeyboardAware(false); ...Same solution with this and this
Before fix
Screen.Recording.2024-04-24.at.12.39.49.mov
After fix
Screen.Recording.2024-04-24.at.12.40.57.mov
What alternative solutions did you explore? (Optional)
suneox commentedon Apr 24, 2024
@trjExpensify This issue still happens when you edit the last item has multiple lines
Screen.Recording.2024-04-24.at.12.39.49.mov
80 remaining items
trjExpensify commentedon Jun 20, 2024
👋 checklist time, please!
suneox commentedon Jun 24, 2024
@rojiphil you're a reviewer for this issue so could you please complete a check list?
rojiphil commentedon Jun 24, 2024
rojiphil commentedon Jun 24, 2024
@trjExpensify Completed BZ checklist and accepted the offer too. Thanks.
trjExpensify commentedon Jun 24, 2024
Thanks! Regression test issue created for Applause.
Payment summary as follows:
Paid you both, closing!
[-][HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Chat - Compose box is hidden when editing multiple line break message[/-][+][HOLD for payment 2024-07-10] [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Chat - Compose box is hidden when editing multiple line break message[/+]melvin-bot commentedon Jul 3, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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 2024-07-10. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 3, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed: