Skip to content

[$250] Receipt Loading Spinners on Reports Page Are Too Large #61073

Closed

Description

@m-natarajan

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:
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: @shawnborton
Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Navigate to reports
  2. Make sure you are in Expenses or Expense reports
  3. Observe the loading spinner displayed for receipt thumbnails

Expected Result:

Default BG color fill for the thumbnail area, and use a 20x20 spinner in the middle of the thumbnail area for these

Image

Image

Actual Result:

Receipt loading spinners on the Reports page currently appear oversized

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021919892449136201950
  • Upwork Job ID: 1919892449136201950
  • Last Price Increase: 2025-05-06
  • Automatic offers:
    • dominictb | Reviewer | 107235748
    • nkdengineer | Contributor | 107235749
Issue OwnerCurrent Issue Owner: @greg-schroeder

Activity

  1. added
    Bug
    Daily
    on Apr 29, 2025
  2. melvin-bot commented on Apr 29, 2025

    @melvin-bot

    Triggered auto assignment to @greg-schroeder (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 Apr 29, 2025

    @nkdengineer
    Contributor

    Proposal

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

    Receipt loading spinners on the Reports page currently appear oversized

    What is the root cause of that problem?

    The loading indicator has size large and fullScreenLoading has bg color is different from default bg color

    <View style={[StyleSheet.absoluteFillObject, styles.fullScreenLoading, style]}>
    <ActivityIndicator
    color={theme.spinner}
    size="large"
    />
    </View>

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

    We should define an iconSize prop on FullscreenLoadingIndicator and a loadingStyle on Image component.

    <View style={[StyleSheet.absoluteFillObject, styles.fullScreenLoading, style]}>
    <ActivityIndicator
    color={theme.spinner}
    size="large"
    />
    </View>

    Then pass it down from here and here to here with iconSize is small to match with design size and loadingStyle is styles.bgTransparent to not override the background color of the receipt cell

    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)

    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. github-actions commented on Apr 29, 2025

    @github-actions
    Contributor

    ⚠️ @nkdengineer Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

  5. FitseTLT commented on Apr 29, 2025

    @FitseTLT
    Contributor

    @shawnborton Can you elaborate this part?

    Default BG color fill for the thumbnail area,

  6. shawnborton commented on Apr 29, 2025

    @shawnborton
    Contributor

    I added mockups to the "expected results" portion of the OP, that's what we want here, cc @Expensify/design for viz!

  7. nkdengineer commented on Apr 29, 2025

    @nkdengineer
    Contributor

    @shawnborton The background is the same as the thumbnail image like this, right

    Image
  8. shawnborton commented on Apr 29, 2025

    @shawnborton
    Contributor

    Correct!

  9. nkdengineer commented on Apr 29, 2025

    @nkdengineer
    Contributor

    Thanks, got it.

  10. nabi-ebrahimi commented on Apr 29, 2025

    @nabi-ebrahimi
    Contributor

    Proposal

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

    Receipt loading spinners on the Reports page currently appear too large and are visually inconsistent with the expected design for thumbnail areas.

    What is the root cause of that problem?

    The default loading spinner rendered by the Image component is large (size="large") and not well-contained visually due to the opaque or styled background of the wrapper View. Without a transparent background and appropriate size control, the spinner appears oversized and distracting within the compact thumbnail cell.

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

    We should make two focused changes:

    1. Apply a transparent background to the View wrapping ReceiptImage by adding styles.bgTransparent. This allows the loading spinner to be displayed cleanly without clashing with the existing background styles.

    2. Introduce a loadingIndicatorSize prop to the ReceiptImage and pass it down to the underlying Image component. This lets us override the default spinner size and explicitly set it to "small" (i.e. 20x20) for thumbnails.

    Updated ReceiptCell View: here

    <View
        style={[
            StyleUtils.getWidthAndHeightStyle(variables.h36, variables.w40),
            StyleUtils.getBorderRadiusStyle(variables.componentBorderRadiusSmall),
            styles.overflowHidden,
            backgroundStyles,
            styles.bgTransparent
        ]}
    >
        <ReceiptImage
            ...
            loadingIndicatorSize="small"
        />
    </View>

    Changes to Image component:

    • Accept and use loadingIndicatorSize ('small' | 'large') when rendering the ActivityIndicator.
    <ActivityIndicator
        color={theme.spinner}
        size={loadingIndicatorSize ?? 'large'} // default remains 'large'
    />

    This keeps the design consistent while offering flexibility for other usages of the Image component.

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

    N/A

    What alternative solutions did you explore? (Optional)

  11. added
    External
    on May 6, 2025
  12. melvin-bot commented on May 6, 2025

    @melvin-bot
  13. 16 remaining items

  14. added and removed
    Weekly
    on Jun 4, 2025
  15. melvin-bot commented on Jun 4, 2025

    @melvin-bot

    This issue has not been updated in over 15 days. @Valforte, @greg-schroeder, @nkdengineer, @dominictb eroding to Monthly issue.

    P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

  16. dominictb commented on Jun 4, 2025

    @dominictb
    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 (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: https://github.com/Expensify/App/pull/53407/files#r2126852107

    • [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:

    • [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.

      I don't think regression test is needed because this is a minor UI issue and is hardly faced by a real user.

  17. dominictb commented on Jun 4, 2025

    @dominictb
    Contributor

    @greg-schroeder Ready for payment.

  18. dominictb commented on Jun 6, 2025

    @dominictb
    Contributor

    Bump @greg-schroeder @Valforte, we might need to remove Monthly label here.

  19. added
    Awaiting Payment
    Daily
    and removed on Jun 17, 2025
  20. greg-schroeder commented on Jun 17, 2025

    @greg-schroeder
    Contributor

    I'll take care of this today

  21. added
    Daily
    and removed
    Daily
    on Jun 24, 2025
  22. shawnborton commented on Aug 18, 2025

    @shawnborton
    Contributor

    Hmm we had a regression and this one is back in the product now. Who can help take a look?

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternalReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions