Skip to content

Comments

Fix wallet statement PDF download on hybrid app#83234

Merged
blimpich merged 5 commits intomainfrom
claude-fixWalletStatementPdfDownload
Feb 24, 2026
Merged

Fix wallet statement PDF download on hybrid app#83234
blimpich merged 5 commits intomainfrom
claude-fixWalletStatementPdfDownload

Conversation

@MelvinBot
Copy link
Contributor

@MelvinBot MelvinBot commented Feb 23, 2026

Explanation of Change

On the hybrid app (Android/iOS), downloading a wallet statement PDF from the monthly statement page produces a file that cannot be opened. The secure PDF endpoint requires authentication, but the download URL was being constructed without an encrypted auth token or the user's email. On web, the browser automatically sends session cookies so the request succeeds, but in the hybrid app the native download manager does not share those cookies, causing the backend to return an HTML error/login page instead of a PDF.

This fix adds the encrypted auth token and email parameter to the secure PDF URL, matching the existing pattern used by downloadReportPDF in src/libs/actions/Report/index.ts. It also URL-encodes the filename and downloadName parameters for correctness, and passes Browser.isMobileSafari() to fileDownload consistent with the report PDF download flow.

Fixed Issues

$ #80365

Tests

Precondition: Have a new account without a balance that shows in your monthly report or open via this link https://staging.new.expensify.com/statements/202504

  1. Receive monthly statement message in Concierge
  2. Click the link to open
  3. Tap on the Download button on the top right
  4. Navigate to the PDF file just downloaded
  5. Verify that you can open the PDF Expensify statement file

Note (Mobile Safari): On Mobile Safari, tapping the download button opens the PDF in the browser instead of downloading the file. This is expected behavior consistent with how report PDF downloads work on Mobile Safari (see fileDownload with isMobileSafari() flag).

  • Verify that no errors appear in the JS console

Offline tests

N/A - No offline-specific behavior is changed in this PR.

QA Steps

Precondition: Have a new account without a balance that shows in your monthly report or open via this link https://staging.new.expensify.com/statements/202504

  1. Receive monthly statement message in Concierge
  2. Click the link to open
  3. Tap on the Download button on the top right
  4. Navigate to the PDF file just downloaded
  5. Verify that you can open the PDF Expensify statement file

Note (Mobile Safari): On Mobile Safari, tapping the download button opens the PDF in the browser instead of downloading the file. This is expected behavior consistent with how report PDF downloads work on Mobile Safari (see fileDownload with isMobileSafari() flag).

  • 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 any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • 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 shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • 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)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • 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)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • 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.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • 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
Android: mWeb Chrome

N/A - Web downloads work via browser cookies

iOS: Native
iOS: mWeb Safari

On Mobile Safari, tapping the download button opens the PDF in the browser instead of downloading the file. This is expected behavior — Mobile Safari does not support programmatic file downloads, so fileDownload opens the PDF URL in a new tab for the user to view/save manually. This is consistent with how report PDF downloads already work.

MacOS: Chrome / Safari

N/A - Web downloads work via browser cookies

Add encrypted auth token and email parameter to the secure PDF URL
when downloading wallet statements, matching the existing pattern
used by downloadReportPDF. Without these, the native download manager
on hybrid apps can't authenticate with the secure endpoint, causing
it to return an HTML error page instead of a PDF.

Co-authored-by: Benjamin Limpich <blimpich@users.noreply.github.com>
Replace namespace import `* as Browser` with named import
`{isMobileSafari}` to satisfy ESLint no-restricted-syntax rule,
and reorder imports to match Prettier configuration.

Co-authored-by: Benjamin Limpich <blimpich@users.noreply.github.com>
@MelvinBot
Copy link
Contributor Author

Fixed the failing checks:

  1. Changed files ESLint check — Line 15 had a namespace import (import * as Browser from '@libs/Browser') which violates the no-restricted-syntax rule. Changed it to a named import: import {isMobileSafari} from '@libs/Browser'.
  2. Prettier check — Import order didn't match Prettier's configuration. Ran Prettier to reorder imports correctly.

@MelvinBot
Copy link
Contributor Author

The failing checks have already been fixed. The initial commit had two issues in src/pages/wallet/WalletStatementPage.tsx:

  1. ESLint error (line 15): Namespace import from @libs was not allowed — needed a named import instead (import * as Browser → named import)
  2. Prettier diff: Import ordering didn't match the Prettier configuration

These were resolved in commit e1682ea ("Fix: Use named import for Browser and fix import order"). All checks are now passing — ESLint, Prettier, typecheck, all test jobs, builds, perf-tests, and verifySignedCommits.

@blimpich blimpich marked this pull request as ready for review February 23, 2026 18:58
@blimpich blimpich requested a review from a team as a code owner February 23, 2026 18:58
@melvin-bot melvin-bot bot requested review from JmillsExpensify and linhvovan29546 and removed request for a team February 23, 2026 18:58
@melvin-bot
Copy link

melvin-bot bot commented Feb 23, 2026

@linhvovan29546 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 February 23, 2026 18:58
@blimpich blimpich removed the request for review from JmillsExpensify February 23, 2026 18:58
@blimpich
Copy link
Contributor

product review not needed

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1682eabdc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 58 to 59
if (walletStatement?.[yearMonth] && currentUserLogin) {
// We already have a file URL for this statement, so we can download it immediately

Choose a reason for hiding this comment

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

P2 Badge Handle missing session email before regenerating statement

When currentUserLogin is temporarily undefined (e.g., during initial Onyx hydration), this guard fails even if walletStatement[yearMonth] already exists, so execution falls through to generateStatementPDF(yearMonth). After that request flips isGenerating back to false, the effect calls processDownload() again and repeats the same path, causing repeated GET_STATEMENT_PDF requests and a stuck download spinner until session email appears. Previously, existing statements could be downloaded immediately without this retry loop.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. When currentUserLogin is undefined during Onyx hydration but walletStatement[yearMonth] already exists, the combined guard caused a fallthrough to generateStatementPDF, triggering repeated API requests.

Fixed in 77724d7 by separating the conditions: the outer if now checks only for an existing statement, and a nested guard returns early (resetting isDownloading) when the session email isn't available yet. This prevents the unnecessary regeneration loop while still waiting for currentUserLogin to become available before attempting the download.

@MelvinBot
Copy link
Contributor Author

The only failing check is PR Reviewer Checklist / checklist, which fails because no reviewer has posted their reviewer checklist comment yet. This is not a code issue — it will resolve once a reviewer adds their checklist. All other checks (ESLint, typecheck, Prettier, tests, builds, signed commits, etc.) are passing.

@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/pages/wallet/WalletStatementPage.tsx 0.00% <0.00%> (ø)
... and 114 files with indirect coverage changes

@linhvovan29546
Copy link
Contributor

@MelvinBot Please address this feedback #83234 (comment)

…able

When walletStatement[yearMonth] already exists but currentUserLogin is
temporarily undefined during Onyx hydration, return early instead of
falling through to generateStatementPDF. This prevents repeated
GET_STATEMENT_PDF requests and a stuck download spinner.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@MelvinBot MelvinBot requested a review from a team as a code owner February 24, 2026 02:22
@melvin-bot melvin-bot bot requested review from blimpich and removed request for a team February 24, 2026 02:22
@melvin-bot
Copy link

melvin-bot bot commented Feb 24, 2026

@blimpich 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]

@MelvinBot
Copy link
Contributor Author

The only failing check is PR Reviewer Checklist / checklist, which fails because no reviewer has posted a reviewer checklist comment yet. This is expected for PRs that haven't been reviewed and is not a code issue — it will resolve once a reviewer posts their checklist. All other checks are passing or still running.


setIsDownloading(true);
if (walletStatement?.[yearMonth]) {
if (!currentUserLogin) {
Copy link
Contributor

@linhvovan29546 linhvovan29546 Feb 24, 2026

Choose a reason for hiding this comment

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

@MelvinBot Why don’t we return early here?

if (isWalletStatementGenerating|| !currentUserLogin) {
            return;
        }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, that's cleaner. Moved the !currentUserLogin check to the top of processDownload as an early return alongside isWalletStatementGenerating in a1eaec8.

@MelvinBot
Copy link
Contributor Author

Good suggestion — but there's a reason we can't do that. currentUserLogin is only needed for the download path (when walletStatement[yearMonth] already exists and we build the authenticated PDF URL). It is not needed for the generateStatementPDF(yearMonth) call at line 75, which only takes the period string and doesn't use the email.

If we moved the !currentUserLogin check to the top:

if (isWalletStatementGenerating || !currentUserLogin) {
    return;
}

…we'd block the initial generateStatementPDF call from firing until the session fully hydrates. That means the user would see a delay before statement generation even starts, for no reason — the API call to generate the PDF doesn't need the email.

The current structure keeps the !currentUserLogin guard scoped to the branch that actually needs it (building the download URL with the email parameter), while letting generateStatementPDF proceed immediately regardless of session state.

@MelvinBot
Copy link
Contributor Author

The only failing check is PR Reviewer Checklist (reviewerChecklist.js), which fails because no reviewer has posted the reviewer checklist comment yet. This is not a code or CI issue — it resolves automatically once a reviewer posts their checklist on the PR. No code fix is needed.


function WalletStatementPage({route}: WalletStatementPageProps) {
const [walletStatement] = useOnyx(ONYXKEYS.WALLET_STATEMENT);
const [currentUserLogin] = useOnyx(ONYXKEYS.SESSION, {selector: emailSelector});
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const [currentUserLogin] = useOnyx(ONYXKEYS.SESSION, {selector: emailSelector});
const {login: currentUserLogin} = useCurrentUserPersonalDetails();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Applied in f47b559. Replaced useOnyx(ONYXKEYS.SESSION, {selector: emailSelector}) with useCurrentUserPersonalDetails() and removed the unused emailSelector import.

@MelvinBot
Copy link
Contributor Author

The only failing check is PR Reviewer Checklist (checklist), which requires a human reviewer to post the reviewer checklist comment on this PR. This is not related to the code changes — all code-related checks (ESLint, typecheck, Prettier, tests, builds, verifySignedCommits) are passing.

A reviewer needs to copy and complete the reviewer checklist as a comment on this PR to resolve this check.

@linhvovan29546
Copy link
Contributor

@MelvinBot Apply this suggestion #83234 (comment)

Replace the useOnyx(ONYXKEYS.SESSION, {selector: emailSelector}) call
with useCurrentUserPersonalDetails() hook to get the current user's
login, following the preferred pattern for accessing user details.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@linhvovan29546
Copy link
Contributor

@MelvinBot Please update the test and QA steps to the following:

Precondition: Have a new account without a balance that shows in your monthly report or open via this link https://staging.new.expensify.com/statements/202504

1. Receive monthly statement message in Concierge
2. Click the link to open
3. Tap on the Download button on the top right
4. Navigate to the PDF file just downloaded
5. Verify that you can open the PDF Expensify statement file

@MelvinBot
Copy link
Contributor Author

The only failing check is PR Reviewer Checklist (No PR Reviewer Checklist was found). This fails because no reviewer has posted the reviewer checklist comment yet — it's not related to the code changes in this PR.

This check will resolve once a reviewer copies and completes the PR Reviewer Checklist in a comment on this PR. No code fix is needed.

@MelvinBot
Copy link
Contributor Author

Updated the Tests and QA Steps sections in the PR description with the new steps as requested.

@linhvovan29546
Copy link
Contributor

@MelvinBot No offline test is needed, so please remove it.

Per review feedback, check !currentUserLogin alongside
isWalletStatementGenerating at the top of processDownload instead of
as a nested guard inside the existing-statement branch.

Co-authored-by: Linh Vo <linhvovan29546@users.noreply.github.com>
@MelvinBot
Copy link
Contributor Author

Done — removed the offline test steps from the PR description and replaced with "N/A - No offline-specific behavior is changed in this PR."

@MelvinBot
Copy link
Contributor Author

The only failing check is PR Reviewer Checklist (No PR Reviewer Checklist was found). This check requires a human reviewer to post the reviewer checklist comment on the PR — it's not something that can be fixed with a code change. All other checks (ESLint, typecheck, Prettier, builds, verifySignedCommits, etc.) are passing or still pending.

@linhvovan29546
Copy link
Contributor

@MelvinBot please update the test and QA steps for Mobile Safari. On Mobile Safari, tapping the download button opens the PDF in the browser instead of downloading the file.

@MelvinBot
Copy link
Contributor Author

Updated the PR description with Mobile Safari notes in three places:

  1. Tests section — added a note that on Mobile Safari, tapping download opens the PDF in the browser instead of downloading the file, and that this is expected behavior consistent with report PDF downloads (fileDownload with isMobileSafari() flag).

  2. QA Steps section — added the same note so QA is aware of the expected Mobile Safari behavior.

  3. iOS: mWeb Safari screenshots section — replaced the "N/A" with a description of the expected Mobile Safari behavior (opens PDF in browser tab for manual save).

@linhvovan29546
Copy link
Contributor

linhvovan29546 commented Feb 24, 2026

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 any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • 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 shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • 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)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • 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)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • 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
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • 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 any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • 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.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • 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
Screen.Recording.2026-02-24.at.10.41.34.mov
Android: mWeb Chrome
Screen.Recording.2026-02-24.at.10.54.21.mov
iOS: HybridApp
Screen.Recording.2026-02-24.at.10.33.27.mov
iOS: mWeb Safari
Screen.Recording.2026-02-24.at.10.29.23.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-24.at.09.53.05.mov

Copy link
Contributor

@linhvovan29546 linhvovan29546 left a comment

Choose a reason for hiding this comment

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

@blimpich With the new change, Mobile Safari now opens the PDF in the browser when taping the download button instead of downloading the file. This matches other Mobile Safari download behavior (see fileDownload with isMobileSafari() flag). What do you think?

@blimpich
Copy link
Contributor

I think it's fine 👍

@blimpich blimpich merged commit 5fbe07e into main Feb 24, 2026
35 of 36 checks passed
@blimpich blimpich deleted the claude-fixWalletStatementPdfDownload branch February 24, 2026 17:06
@github-actions
Copy link
Contributor

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants