Skip to content

[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

Closed

Description

@izarutskaya

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v1.4.64-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4503695
Email or phone of affected tester (no customers): vdargentotest+ios042224@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Pre-requisite: user must be logged in.

  1. Go to any chat.
  2. Send a message with 10 line breaks.
  3. Tap and hold on the recently sent message.
  4. Tap on "Edit comment".
  5. Verify the compose box is partially hidden, the chat does not auto-scroll to the bottom.

Expected Result:

The page should auto-scroll to the bottom and the compose box should be fully visible without manual scroll.

Actual Result:

The page is not auto-scrolled to the bottom, the compose box is partially hidden, manual scroll is required.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6457792_1713810082838.Vbjf1205_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0179a22c17165154c1
  • Upwork Job ID: 1782955414960959488
  • Last Price Increase: 2024-05-29
  • Automatic offers:
    • rojiphil | Reviewer | 102547928
    • suneox | Contributor | 102547931
Issue OwnerCurrent Issue Owner: @trjExpensify

Activity

  1. added
    Daily
    Bug
    on Apr 23, 2024
  2. melvin-bot commented on Apr 23, 2024

    @melvin-bot

    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.

  3. izarutskaya commented on Apr 23, 2024

    @izarutskaya
    Author

    We think this issue might be related to the #vip-vsb.

  4. trjExpensify commented on Apr 24, 2024

    @trjExpensify
    Contributor

    I can reproduce it. Couldn't find a recent issue, looks like @kosmydel fixed it once before here in Oct 2023: #24502

  5. added
    External
    on Apr 24, 2024
  6. 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
  7. melvin-bot commented on Apr 24, 2024

    @melvin-bot
  8. added
    Help Wanted
    on Apr 24, 2024
  9. melvin-bot commented on Apr 24, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

  10. suneox commented on Apr 24, 2024

    @suneox
    Contributor

    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 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

        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)

  11. suneox commented on Apr 24, 2024

    @suneox
    Contributor

    I can reproduce it. Couldn't find a recent issue, looks like @kosmydel fixed it once before here in Oct 2023: #24502

    @trjExpensify This issue still happens when you edit the last item has multiple lines

    Screen.Recording.2024-04-24.at.12.39.49.mov
  12. 80 remaining items

  13. added
    Daily
    and removed
    Weekly
    on Jun 18, 2024
  14. trjExpensify commented on Jun 20, 2024

    @trjExpensify
    Contributor

    👋 checklist time, please!

  15. suneox commented on Jun 24, 2024

    @suneox
    Contributor

    @rojiphil you're a reviewer for this issue so could you please complete a check list?

  16. rojiphil commented on Jun 24, 2024

    @rojiphil
    Contributor
    • [@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.
    1. Go to any chat.
    2. Send a message with 10 line breaks.
    3. Tap and hold on the recently sent message.
    4. Tap on "Edit comment".
    5. Verify that the page auto-scrolls to the bottom and the compose box is fully visible without manual scroll.
  17. rojiphil commented on Jun 24, 2024

    @rojiphil
    Contributor

    👋 checklist time, please!

    @trjExpensify Completed BZ checklist and accepted the offer too. Thanks.

  18. trjExpensify commented on Jun 24, 2024

    @trjExpensify
    Contributor

    Thanks! Regression test issue created for Applause.

    Payment summary as follows:

    Paid you both, closing!

  19. added
    Weekly
    and removed
    Daily
    on Jul 3, 2024
  20. 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
  21. melvin-bot commented on Jul 3, 2024

    @melvin-bot

    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:

  22. melvin-bot commented on Jul 3, 2024

    @melvin-bot

    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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions