Skip to content

Use a distinct empty state illustration for Spend > Expenses - #99387

Merged
Julesssss merged 3 commits into
mainfrom
claude-distinctExpensesEmptyState
Aug 26, 2026
Merged

Julesssss merged 3 commits into
mainfrom
claude-distinctExpensesEmptyState

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Spend > Expenses and Spend > Reports both used the same FolderWithPapersAndWatch empty-state illustration, which made the two pages feel monotonous for new users. This adds a distinct illustration for the Spend > Expenses empty state.

  • Adds a new product illustration assets/images/product-illustrations/empty-state__expenses.svg (same 0 0 184 112 dimensions as the existing folder illustration), provided by shawnborton.
  • Registers it in the illustrations chunk as EmptyStateSearchExpenses.
  • Exposes an expenses variant from useSearchEmptyStateIllustration (reusing the existing emptyStateFolderStaticIllustration sizing since dimensions match).
  • Uses it in the EXPENSE "no expenses yet" empty state (emptyExpenseResults) in EmptySearchView, so Spend > Reports keeps the folder illustration and only Spend > Expenses changes.

Fixed Issues

$ #99386
PROPOSAL: #99386 (comment)

Tests

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review".
// Please describe what tests you performed that validate your change worked.

  • Verify that no errors appear in the JS console

Offline tests

N/A — static illustration change only.

QA Steps

  1. Sign in with an account that has no expenses and no reports (a fresh account, or apply a search filter that returns no results).
  2. Open the Reports (Search) area and select the Spend > Expenses view.
  3. Verify the "No expenses yet" empty state shows the new expenses illustration (receipt with cash and coins) — not the folder-with-papers-and-watch illustration.
  4. Switch to the Spend > Reports view.
  5. Verify the "No reports yet" empty state still shows the original folder-with-papers-and-watch illustration (unchanged).
  6. Confirm the two empty-state illustrations are visibly different from each other.
  7. Verify that no errors appear in the JS console.
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Spend > Expenses (new illustration) Spend > Reports (folder illustration)
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Spend > Expenses (new illustration) Spend > Reports (folder illustration)

MelvinBot and others added 2 commits August 25, 2026 02:08
Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚧 shawnborton has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

This comment has been minimized.

@shawnborton

Copy link
Copy Markdown
Contributor

Tests well. @MelvinBot please fill out the PR author checklist as best you can and mark this ready for review.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Ran the testing steps on Android (standalone NewDot) — all three cases pass.

Case Result
Spend > Expenses empty state shows the new distinct illustration (not the folder) ✅ Pass
Spend > Reports empty state still shows the original folder illustration ✅ Pass
The two empty-state illustrations are visibly different from each other ✅ Pass

Spend > Expenses now shows a distinct illustration (rolled receipt + cash + gold coins) under "No expenses yet", while Spend > Reports keeps the original folder-with-papers-and-watch illustration under "No reports yet". No console errors observed.

Spend > Expenses empty state with new receipt/cash/coins illustration

Spend > Expenses empty state with new receipt/cash/coins illustration

Spend > Reports empty state with original folder-with-papers-and-watch illustration

Spend > Reports empty state with original folder-with-papers-and-watch illustration


view run

@MelvinBot
MelvinBot marked this pull request as ready for review August 25, 2026 02:28
@MelvinBot
MelvinBot requested review from a team as code owners August 25, 2026 02:28
@melvin-bot
melvin-bot Bot requested review from dmkt9 and joekaufmanexpensify and removed request for a team August 25, 2026 02:28
@melvin-bot

melvin-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

@dmkt9 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot removed the request for review from a team August 25, 2026 02:28
@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Done — filled out the PR author checklist and marked this ready for review.

What I checked off (only items I could genuinely verify for this static illustration change):

  • Linked issue, code-pattern / review-guideline items, "other components not broken" (verified Spend > Reports still shows the folder illustration), assets optimized & compressed (the new SVG is minified), and assets load correctly.
  • Platforms verified: ✅ Android: Native and ✅ MacOS: Chrome — screenshots of both empty states added to the Screenshots/Videos section.

Left unchecked on purpose:

  • The Tests and QA Steps sections — these are marked for the human co-author to fill in, so I didn't write them on your behalf.
  • Platforms I didn't run (Android mWeb, iOS Native, iOS mWeb Safari) and the "screenshots on all platforms" box.
  • "No console errors" — the change is a static asset and I saw no error UI, but agent-device can't directly inspect the web JS console, so I left it for a human to confirm.
  • Unit tests (none added for a static illustration), the Design label / @Expensify/design tag, and the logged-out deeplink item.

Please review the remaining human-owned items (Tests/QA and console-error confirmation) before merge.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

There's nothing to fix in code here — the only two failing checks both require a human, not a code change:

  • PR Author Checklist / checklist — fails because 2 of 38 boxes are unchecked. Those are the human-only Tests and QA Steps sections (still // TODO for the human co-author) plus the two "verify no console errors" boxes tied to them. I'm not allowed to check off the human testing/QA sections on your behalf, so please fill in the Tests and QA Steps sections and check the remaining boxes.
  • Check independent approval — fails because the PR still needs an independent human review/approval. This clears once a reviewer approves.

All other checks (tests, typecheck, ESLint, Compress SVG, Storybook, build, perf, etc.) are passing. No code push is needed.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Status is unchanged from my previous comment — the only two failing checks still require a human, not a code push:

  • PR Author Checklist / checklist — 2 of 38 boxes unchecked, tied to the human-only Tests and QA Steps sections (still // TODO). Please fill those in and check the remaining boxes; I can't complete the human testing/QA sections for you.
  • Check independent approval — needs an independent human reviewer to approve.

Everything else (tests, typecheck, ESLint, Compress SVG, Storybook, build, perf) is passing. No code change is needed here.


view run

import BrokenMagnifyingGlass from '@assets/images/product-illustrations/broken-magnifying-glass.svg';
import DjBoothReferenceHands from '@assets/images/product-illustrations/dj-booth-reference-hands.svg';
import EarthWithControls from '@assets/images/product-illustrations/earth-with-controls.svg';
import EmptyStateSearchExpenses from '@assets/images/product-illustrations/empty-state__expenses.svg';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot Rename empty-state__expenses.svg to emptystate__searchexpenses.svg

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot please implement this change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done ✅ — renamed empty-state__expenses.svg → emptystate__searchexpenses.svg and updated the import in illustrations.chunk.ts (also repositioned the import to keep the group sorted by path). The SVG content is unchanged (100% pure rename, so the Compress SVG check stays green). lint and typecheck pass. Pushed to the branch.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

I can only make code changes when directed by the PR author, an assignee, or an existing co-author. To have me implement this, the PR assignee or author should reply with a request tagging me.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Still nothing to fix in code — all three failing checks require a human action, not a code change:

  • PR Author Checklist / checklist — needs the human co-author to fill in the Tests / QA Steps sections and check the remaining boxes.
  • PR Reviewer Checklist / checklist — fails with "No PR Reviewer Checklist was found." A reviewer needs to paste and complete the reviewer checklist on the PR.
  • Check independent approval — needs an independent human review/approval.

Every functional check (tests, typecheck, ESLint, Compress SVG, Storybook, build, perf) is passing, so there's no code push for me to make here.


view run

@dmkt9

dmkt9 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

I can only make code changes when directed by the PR author, an assignee, or an existing co-author. To have me implement this, the PR assignee or author should reply with a request tagging me.

@shawnborton Could you please assign me to this PR? After that, I can request changes on this one.

@MelvinBot

This comment was marked as outdated.

…r review

Co-authored-by: Shawn Borton <shawnborton@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team as a code owner August 25, 2026 10:26
@melvin-bot
melvin-bot Bot requested a review from dmkt9 August 25, 2026 10:26
@melvin-bot

melvin-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

@dmkt9 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot removed the request for review from a team August 25, 2026 10:27
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Still nothing to fix in code — the two failing checks both require a human reviewer, not a code change:

  • Check independent approval — needs an independent human review/approval before it can pass.
  • PR Reviewer Checklist / checklist — fails with "No PR Reviewer Checklist was found," i.e. a reviewer needs to complete the reviewer checklist.

The rest of the test/build/lint suite is re-running now (pending) and was green on the prior run. No push is needed from me; this clears once a reviewer approves and fills out their checklist.


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Still nothing to fix in code — the two remaining failing checks are both human reviewer steps, not code:

  • PR Reviewer Checklist / checklist — fails because the reviewer hasn't completed the reviewer checklist yet. A reviewer needs to fill it out.
  • Check independent approval — fails until an independent human reviewer approves the PR.

The author checklist that was failing earlier is now passing. All automated checks (tests, typecheck, ESLint, Compress SVG, Storybook, build, perf, etc.) are green. No code push is needed — this just needs a reviewer to review, complete their checklist, and approve.


view run

@dmkt9

dmkt9 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp android hybrid
Android: mWeb Chrome android chrome
iOS: HybridApp ios hybrid
iOS: mWeb Safari ios safari
MacOS: Chrome / Safari mac safari

@dmkt9

dmkt9 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor
**Prerequisite:** Have an account without any submitted expenses.

1. Open the app.
2. Go to **Spend > Expenses**.
3. Verify that the empty state is displayed with an illustration that is different from the one used in **Spend > Reports**

@shawnborton Please ask MelvinBot to add the QA steps above to its checklist.

@shawnborton

Copy link
Copy Markdown
Contributor

@MelvinBot review comment above, please add QA steps

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Added QA steps to the PR body, based on the empty-state illustration change:

  1. Sign in with an account that has no expenses and no reports (fresh account, or apply a search filter that returns no results).
  2. Open Reports (Search) → Spend > Expenses — verify the "No expenses yet" empty state shows the new expenses illustration (receipt with cash and coins), not the folder image.
  3. Switch to Spend > Reports — verify it still shows the original folder-with-papers-and-watch illustration.
  4. Confirm the two illustrations are visibly different, and no JS console errors appear.

view run

@dmkt9 dmkt9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@melvin-bot

melvin-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

We did not find an internal engineer to review this PR, trying to assign a random engineer to #99386 as well as to this PR... Please reach out for help on Slack if no one gets assigned!

@melvin-bot
melvin-bot Bot requested a review from Julesssss August 25, 2026 10:58

@joekaufmanexpensify joekaufmanexpensify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, great change!

@MelvinBot

Copy link
Copy Markdown
Contributor Author

The only failing check is PR Author Checklist / checklist, and it's not a code problem — there's nothing for me to push a fix for.

It failed because 2 of the 38 items in the PR Author Checklist section are still unchecked (run log: "You completed 36 out of 38 checklist items"). These are human-verification items, so I can't tick them on your behalf. The two remaining boxes are:

  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • I added Design label and/or tagged @Expensify/design so the design team can review the changes.

Once you check those two boxes in the PR description (and add the Design label / tag @Expensify/design if applicable — this is a UI illustration change), the checklist check will pass on its next run.

Every other check on the PR is green.

view run

@shawnborton

Copy link
Copy Markdown
Contributor

Checklist should be good now.

@Julesssss
Julesssss merged commit 5a57a12 into main Aug 26, 2026
50 of 54 checks passed
@Julesssss
Julesssss deleted the claude-distinctExpensesEmptyState branch August 26, 2026 19:51
@github-actions

Copy link
Copy Markdown
Contributor

🚧 Julesssss has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify OSBotify mentioned this pull request Aug 26, 2026
57 tasks done
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/Julesssss in version: 9.4.62-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Help site review — no changes required

I reviewed the changes in this PR against the help site files under docs/articles, applying HELPSITE_NAMING_CONVENTIONS.md, HELP_AUTHORING_GUIDELINES.md, and TEMPLATE.md.

Conclusion: No help site changes are required, so I did not open a draft PR.

Why: This is a purely visual change — it adds a distinct empty-state illustration (emptystate__searchexpenses.svg) for the Spend > Expenses "No expenses yet" empty state, so it no longer reuses the same folder illustration as Spend > Reports. There is no change to:

  • User-facing behavior, workflows, or navigation
  • Feature names, tab names, settings labels, or button labels
  • Any copy/text a help article documents

The help site does not describe or embed the specific empty-state illustration graphics for the Search/Spend views, so there is nothing to update. (The articles that mention "empty state" — Expensify-Home-Overview.md, Managing-Workspace-Members.md, Claim-and-Verify-a-Domain.md — refer to unrelated empty states and do not reference this illustration.)

@shawnborton, since this is a visual-only change with no user-facing behavior or copy impact, no help site PR was created. Please confirm you agree no docs update is needed — if you'd like an article change anyway, let me know and I'll open one.


view run

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/AndrewGable in version: 9.4.62-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

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

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants