Repository navigation
Description
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:
- Navigate to reports
- Make sure you are in Expenses or Expense reports
- 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
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
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



Activity
melvin-bot commentedon Apr 29, 2025
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.nkdengineer commentedon Apr 29, 2025
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
largeandfullScreenLoadinghas bg color is different from default bg colorApp/src/components/FullscreenLoadingIndicator.tsx
Lines 15 to 20 in f950eb9
What changes do you think we should make in order to solve the problem?
We should define an iconSize prop on
FullscreenLoadingIndicatorand a loadingStyle onImagecomponent.App/src/components/FullscreenLoadingIndicator.tsx
Lines 15 to 20 in f950eb9
Then pass it down from here and here to here with
iconSizeissmallto match with design size andloadingStyleisstyles.bgTransparentto not override the background color of the receipt cellWhat 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.
github-actions commentedon Apr 29, 2025
FitseTLT commentedon Apr 29, 2025
@shawnborton Can you elaborate this part?
Default BG color fill for the thumbnail area,shawnborton commentedon Apr 29, 2025
I added mockups to the "expected results" portion of the OP, that's what we want here, cc @Expensify/design for viz!
nkdengineer commentedon Apr 29, 2025
@shawnborton The background is the same as the thumbnail image like this, right
shawnborton commentedon Apr 29, 2025
Correct!
nkdengineer commentedon Apr 29, 2025
Thanks, got it.
nabi-ebrahimi commentedon Apr 29, 2025
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
Imagecomponent is large (size="large") and not well-contained visually due to the opaque or styled background of the wrapperView. 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:
Apply a transparent background to the
ViewwrappingReceiptImageby addingstyles.bgTransparent. This allows the loading spinner to be displayed cleanly without clashing with the existing background styles.Introduce a
loadingIndicatorSizeprop to theReceiptImageand pass it down to the underlyingImagecomponent. This lets us override the default spinner size and explicitly set it to"small"(i.e. 20x20) for thumbnails.Updated
ReceiptCellView: hereChanges to
Imagecomponent:loadingIndicatorSize('small' | 'large') when rendering theActivityIndicator.This keeps the design consistent while offering flexibility for other usages of the
Imagecomponent.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)
melvin-bot commentedon May 6, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021919892449136201950
16 remaining items
melvin-bot commentedon Jun 4, 2025
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!
dominictb commentedon Jun 4, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[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.
dominictb commentedon Jun 4, 2025
@greg-schroeder Ready for payment.
dominictb commentedon Jun 6, 2025
Bump @greg-schroeder @Valforte, we might need to remove Monthly label here.
greg-schroeder commentedon Jun 17, 2025
I'll take care of this today
shawnborton commentedon Aug 18, 2025
Hmm we had a regression and this one is back in the product now. Who can help take a look?