Skip to content

[$500] Compose-Sending message page flickers & sending link page shows loading for a second #30495

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: 1.3.92-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @

Action Performed:

  1. Launch app
  2. Tap on a report
  3. Send any message
  4. Send any url

Expected Result:

Sending message page must not flicker & sending link page must not show loading for a second also.

Actual Result:

Sending message page flickers & sending link page shows loading for a second

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

Android: Native
Bug6252894_1698387558125.load.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e22aad449d431bed
  • Upwork Job ID: 1717861795790860288
  • Last Price Increase: 2023-11-10
  • Automatic offers:
    • 0xmiroslav | Reviewer | 27654846

Activity

  1. added
    External
    Daily
    Bug
    on Oct 27, 2023
  2. melvin-bot commented on Oct 27, 2023

    @melvin-bot

    Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. changed the title [-]Compose-Sending message page flickers & sending link page shows loading for a second[/-] [+][$500] Compose-Sending message page flickers & sending link page shows loading for a second[/+] on Oct 27, 2023
  4. melvin-bot commented on Oct 27, 2023

    @melvin-bot
  5. melvin-bot commented on Oct 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  6. added
    Help Wanted
    on Oct 27, 2023
  7. melvin-bot commented on Oct 27, 2023

    @melvin-bot

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

  8. tienifr commented on Oct 28, 2023

    @tienifr
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Sending link page shows loading for a second

    What is the root cause of that problem?

    We'll show the loading in the bottom of the screen whenever we're loading new messages, when we scroll to the bottom of the screen, it will trigger onStartReached which will trigger the loading of newest chats.

    The problem is when we send a new message to the chat ourselves, we'll also trigger scrolling to the bottom here, which will also trigger the loading. That's why we see the loading after sending the message, and the flicker.

    What changes do you think we should make in order to solve the problem?

    We should not load new chats when the scroll to bottom happens due to automatic scrolling (when we send a new message to the chat ourselves).

    We need to set a variable/ref like isAutomaticScrollToBottom to true before we trigger scrolling to bottom, in loadNewerChats, if we see isAutomaticScrollToBottom is true, we'll set it to false, and early return (do not load the newest chats).

    What alternative solutions did you explore? (Optional)

    NA

  9. melvin-bot commented on Oct 30, 2023

    @melvin-bot

    @bfitzexpensify, @0xmiroslav Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  10. bfitzexpensify commented on Oct 31, 2023

    @bfitzexpensify
    Contributor

    How does the proposal in #30495 (comment) look @0xmiroslav?

  11. 104 remaining items

  12. roryabraham commented on Jan 30, 2025

    @roryabraham
    Contributor

    This is an old issue, and the issue it's held on doesn't seem like it's going to move quickly at all. Requesting retest to see if this is still even happening: https://expensify.slack.com/archives/C9YU7BX5M/p1738202864490269

  13. mvtglobally commented on Jan 30, 2025

    @mvtglobally

    reproducible on Samsung A50/Android11

    0-02-01-4099d9da644440d3d1f250a88a17451e1ac5a43c1bf3d20774485fa2501df7a4_2c1f0c3d4ce6f38a.mp4

    not repro on Xiaomi Redmi Note 10 / Android 12

    Screenrecorder-2025-01-30-17-09-43-813.mp4

    IOS result

    7d.mp4
  14. roryabraham commented on Jan 30, 2025

    @roryabraham
    Contributor

    Given that this is still reproducible, and it's unclear when or if the issue it's on HOLD for will be addressed, I suggest we take this off HOLD

  15. changed the title [-][HOLD ON #33725] [$500] Compose-Sending message page flickers & sending link page shows loading for a second[/-] [+][$500] Compose-Sending message page flickers & sending link page shows loading for a second[/+] on Jan 30, 2025
  16. hannojg commented on Feb 17, 2025

    @hannojg
    Contributor

    We will take a second look!

  17. mountiny commented on Mar 7, 2025

    @mountiny
    Contributor

    @hannojg how is this looking?

  18. hannojg commented on Mar 10, 2025

    @hannojg
    Contributor

    Hey guys, I just read up on all context!
    I might be missing something but I don't think that the original issue is reproducible. Please compare the original bug video side-by-side with the recent "still reproducible" recordings. The original issue is about:

    • There is a visible blank flicker when sending a message to the chat
    • Once the message is sent a loading indicator appears eventually
    Original Issue Recent Reproduction
    278624932-5f34d223-8b10-4562-8794-79fae203a261.mp4
    408177800-bab2fa68-d681-4f05-a140-acee7955f3e1-2.mp4

    In the recent recordings there are definitely problems visible, but I would say they are different from the original one and would require a new issue ticket (?):

    • The composer isn't resizing immediately when the content changes
    • When sending longer messages there is no "push animation" for the message entering but it just appears instantly
    • and …

    … the most severe one is a content jump where the message: appears (instantly), disappears, re-appears (w/ animation):

    Frame 1 Frame 2 Frame 3 Frame 4 (w/ anim.)
    Image Image Image Image

    I believe that the reason for this content jump (& the other two problems stated above), are technically different from this issue ticket. I'd say that the original issue is actually fixed and these are new ones.

    Let me know if you agree / disagree 😊

    I also believe that the content jump might be fixed with #54764 (or at least it would be better to fix it after that PR landed as the mentioned PR will change the behaviour of the chat quite a bit technically)

  19. mountiny commented on Mar 10, 2025

    @mountiny
    Contributor

    thanks for the breakdown. I will ask QA to also retest and see what they find. We can wait for the draft PR to hit production before creating new improvement tickets.

  20. izarutskaya commented on Mar 10, 2025

    @izarutskaya
    Author

    Issue is not reproduced

    Screenrecorder-2025-03-10-22-01-34-198.mp4
  21. mountiny commented on Mar 10, 2025

    @mountiny
    Contributor

    @roryabraham what do you think of closing this one and after #54764 is deployed, we can look for further improvements?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugInternalMonthlyWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions