Skip to content

[Due for payment 2025-08-07] [$250] Room - After creating room and changing priority mode offline, room shows skeleton #65667

Closed

Description

@nlemma

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: 9.1.77-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://github.com/Expensify/Expensify/issues/461683
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: macOS Sequoia 15.3 - Chrome
App Component: Other

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account > Preferences.
  3. Click Priority mode.
  4. Select #focus.
  5. Go offline.
  6. Open FAB > Start chat > # Room.
  7. Create a room.
  8. Go to Account > Preferences.
  9. Click Priority mode.
  10. Select Most recent.
  11. Go back to Inbox.

Expected Result:

The welcome message is displayed. (It was fixed here #54180)

Actual Result:

The room shows skeleton loading.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6870799_1750950649031.1750802215724_20250625_055622.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021945061871735826129
  • Upwork Job ID: 1945061871735826129
  • Last Price Increase: 2025-07-15
  • Automatic offers:
    • nkdengineer | Contributor | 108085229
Issue OwnerCurrent Issue Owner: @sonialiap

Activity

  1. added
    Daily
    Bug
    on Jul 8, 2025
  2. melvin-bot commented on Jul 8, 2025

    @melvin-bot

    Triggered auto assignment to @sonialiap (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. nkdengineer commented on Jul 8, 2025

    @nkdengineer
    Contributor

    Proposal

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

    The room shows skeleton loading.

    What is the root cause of that problem?

    Here is the condition to show the skeleton

    if ((isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline) ?? isLoadingApp) {
    return <ReportActionsSkeletonView />;
    }

    in this case, isLoadingInitialReportActions is undefined so isLoadingApp is used to decide to show the skeleton or not

    But if we change the priority mode, we will update isLoadingApp to true so the skeleton is shown

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

    We already checked for !isOffline on the left-hand side operand

    so we should update this condition

    if ((isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline) ?? isLoadingApp) {
    return <ReportActionsSkeletonView />;
    }

    to

        if ((isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline) ?? (isLoadingApp && !isOffline)) {
    

    by doing that, we only show the ReportActionsSkeletonView in online mode

    We also can update this condition to check isOffline

    if (isMissingReportActions) {
    return <ReportActionsSkeletonView shouldAnimate={false} />;
    }

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    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.

  4. nabi-ebrahimi commented on Jul 9, 2025

    @nabi-ebrahimi
    Contributor

    Proposal

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

    Room - After creating room and changing priority mode offline, room shows skeleton

    What is the root cause of that problem?

    We show the skeleton here.

    if ((isLoadingInitialReportActions && (isReportDataIncomplete || isMissingReportActions) && !isOffline) ?? isLoadingApp) {
    return <ReportActionsSkeletonView />;
    }

    In this case, isLoadingInitialReportActions is undefined, so isLoadingApp is used to decide whether to show the skeleton or not

    But if we change the priority mode, we will update isLoadingApp to true, so the skeleton is shown

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

    We can keep the fix from #54180. We only need to update isLoadingInitialReportActions

    <ReportActionsView
    report={report}
    reportActions={reportActions}
    isLoadingInitialReportActions={reportMetadata?.isLoadingInitialReportActions}
    hasNewerActions={hasNewerActions}
    hasOlderActions={hasOlderActions}
    parentReportAction={parentReportAction}
    transactionThreadReportID={transactionThreadReportID}
    />

    to this

              isLoadingInitialReportActions={reportMetadata?.isLoadingInitialReportActions ?? (!reportMetadata?.isOptimisticReport && isLoadingApp)}

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    What alternative solutions did you explore? (Optional)

  5. melvin-bot commented on Jul 14, 2025

    @melvin-bot

    @sonialiap Huh... This is 4 days overdue. Who can take care of this?

  6. added
    External
    on Jul 15, 2025
  7. changed the title [-]Room - After creating room and changing priority mode offline, room shows skeleton[/-] [+][$250] Room - After creating room and changing priority mode offline, room shows skeleton[/+] on Jul 15, 2025
  8. melvin-bot commented on Jul 15, 2025

    @melvin-bot
  9. added
    Help Wanted
    on Jul 15, 2025
  10. melvin-bot commented on Jul 15, 2025

    @melvin-bot

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

  11. 15 remaining items

  12. changed the title [-][$250] Room - After creating room and changing priority mode offline, room shows skeleton[/-] [+][Due for payment 2025-08-07] [$250] Room - After creating room and changing priority mode offline, room shows skeleton[/+] on Jul 31, 2025
  13. removed
    Reviewing
    on Jul 31, 2025
  14. melvin-bot commented on Jul 31, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  15. melvin-bot commented on Jul 31, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.87-14 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-08-07. 🎊

    For reference, here are some details about the assignees on this issue:

  16. melvin-bot commented on Jul 31, 2025

    @melvin-bot

    @Pujan92 @sonialiap 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]

  17. added
    Daily
    and removed
    Weekly
    on Aug 6, 2025
  18. sonialiap commented on Aug 7, 2025

    @sonialiap
    Contributor

    Payment summary:

  19. Pujan92 commented on Aug 7, 2025

    @Pujan92
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production
    • 2b. Reported on staging (deploy blocker)
    • 2c. Reported on both staging and production
    • 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: https://github.com/Expensify/App/pull/59084/files#r2260178741

    • [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:https://github.com/Expensify/Expensify/issues/534417

    Regression Test Proposal

    1. Go to Account > Preferences.
    2. Click Priority mode.
    3. Select #focus.
    4. Go offline.
    5. Open FAB > Start chat > # Room.
    6. Create a room.
    7. Go to Account > Preferences.
    8. Click Priority mode.
    9. Select Most recent.
    10. Go back to Inbox.
    11. Verify that the new room is shown without skeleton and the welcome message is displayed

    Do we agree 👍 or 👎

  20. sonialiap commented on Aug 8, 2025

    @sonialiap
    Contributor

    Thanks!

  21. isabelastisser commented on Aug 8, 2025

    @isabelastisser
    Contributor

    $250 approved in ND for @Pujan92

  22. starbucksmenuuk commented on Sep 14, 2025

    @starbucksmenuuk

    The Starbucks Menu offers a wide variety of handcrafted beverages and delicious food options, catering to every taste and preference—from classic brewed coffee to refreshing iced teas and seasonal specialties.

  23. melvin-bot commented on Sep 14, 2025

    @melvin-bot

    📣 @starbucksmenuuk! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Make sure you've read and understood the contributing guidelines.
    2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions