Skip to content

fix(Wise): Hide the untapped no-SSN link from the confirmation page - #105267

Merged
grgia merged 15 commits into
Expensify:mainfrom
software-mansion-labs:dariusz-biela/fix/wise-confirmation-hide-no-ssn-row
Nov 2, 2026
Merged

grgia merged 15 commits into
Expensify:mainfrom
software-mansion-labs:dariusz-biela/fix/wise-confirmation-hide-no-ssn-row

Conversation

@dariusz-biela

@dariusz-biela dariusz-biela commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

This PR stops the Wise business onboarding confirmation page from showing "I don't have a social security number or ITIN" as a separate question. An admin with an SSN sees only the SSN row. An admin without one sees that answer in the SSN row instead.

It follows up on this review comment and this feedback on #104741, and on this comment here.

In the app

  • An admin who typed an SSN sees the masked SSN next to the ID document, with no "No" row for the link under it.
  • An admin who turned the link on sees the "Social Security Number or ITIN" row reading "I don't have a social security number or ITIN". Pressing it opens the representative page, where the link brings the SSN field back.
  • The submitted answers do not change, so hasNoSSN is still sent as before.
  • Any other "I don't have X" link added to a form later behaves the same way on its confirmation page.

In the code

  • getConfirmationItems treats a boolean field with presentation: 'link' as an opt-out only when another field shows only while the link is off, as the SSN and ID document do for hasNoSSN.
  • That field must be on a page the form shows while the link is off. A field on a page skipped for another reason, such as another country, does not count, so the link keeps its own row there.
  • While an opt-out link is off, it has no row, since the fields it opts out of are shown and already carry the answer.
  • While it is on, its row takes the label of the first field it hides and shows the link's own label as the answer.
  • A link that opts out of nothing keeps its plain Yes or No row.
  • The rule lives in DynamicForm rather than the Wise form, so any other opt-out link gets the same treatment.
  • Unit tests in getConfirmationItemsTest cover an opt-out link while it is off and while it is on, a link whose hidden field is on a skipped page, and a link that opts out of nothing, each in both states.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/696486
PROPOSAL: N/A

Tests

The flow needs an account on the wiseReimbursements beta with an eligible bank account (USD, business, open, not on Corpay).

Please expand this if you don't have access to such an account:

Without an account on the beta

Paste this in the browser console (web) or run it through the JS debugger (native):

Onyx.merge('betaOverrides', {wiseReimbursements: true});
Onyx.merge('bankAccountList', {'9053192': {accountType: 'bankAccount', bankCurrency: 'USD', bankCountry: 'US', title: 'Boulder Development Inc.', description: 'Account ending in 1234', methodID: 9053192, accountData: {bankAccountID: 9053192, addressName: 'Boulder Development Inc.', accountNumber: 'XXXX1234', state: 'OPEN', type: 'BUSINESS', additionalData: {currency: 'USD', country: 'US'}}}});
  1. Go to Account > Wallet and press Get started on the "Pay people worldwide" banner, then Get started on the intro page
  2. On the representative page, fill in any missing details, type 123456789 as the SSN, upload an image as the ID, leave "I don't have a social security number or ITIN" untouched and press Next
  3. Fill in the business info page and press Next
  4. Verify that the confirmation page lists the masked SSN and has no "I don't have a social security number or ITIN" row
  5. Press the SSN row, press "I don't have a social security number or ITIN", and verify that the SSN and ID fields hide
  6. Press Next until you are back on the confirmation page
  7. Verify that the "Social Security Number or ITIN" row reads "I don't have a social security number or ITIN", and there is no separate row for the link and no ID verification row
  8. Press that row and verify that it opens the representative page with the "I have a social security number or ITIN" link
  • Verify that no errors appear in the JS console

Offline tests

Same as tests. The confirmation rows are built from the local form values, so the result does not depend on the network.

QA Steps

Same as tests, with an account on the wiseReimbursements beta and a USD business bank account that is not on Corpay.

  • 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 verified any copy / text that was added to the app 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 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 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 the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • 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

With an SSN Without an SSN The no-SSN row opens the representative page
Link turned on Link turned off again with an SSN

An admin with an SSN saw an "I don't have a social security number or ITIN" row reading "No" under the SSN. A link-style boolean is an opt-out the user taps, so the confirmation page now lists it only once it is on.

@WojtekBoman WojtekBoman 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!

@joekaufmanexpensify

Copy link
Copy Markdown
Contributor

I left feedback about this topic here . I don't think we should show this separately. I don't have an SSN row on the confirmation page at all. If the user has an SSN, let's just show it in the SSN row. If they don't have an SSN, let's just put that in the SSN row rather than a separate row for it. Can we do that?

An admin without an SSN saw a separate "I don't have a social security number or ITIN" row reading "Yes". A tapped link now stands in for the question it hides, so the row is labeled with the SSN question and reads "I don't have a social security number or ITIN".
dariusz-biela added a commit to software-mansion-labs/expensify-app-fork that referenced this pull request Oct 29, 2026
The link is a toggle the user can turn back off, so "tapped" read as a history of clicks. The shared boolean-link check also moves into isLink.
presentation: 'link' alone said nothing about what the link controls, so a link with no dependent fields lost its "No" row. A link now hides its row while off, and stands in for a hidden field while on, only when a field's showWhen shows it while the link is off.
isLink and isOptOutLinkOff were each used once, so getOptOutFields checks for a link itself and the filter reads the rule inline. A link that stands in for a hidden field now changes only the description and title of the usual row.
dariusz-biela added a commit to software-mansion-labs/expensify-app-fork that referenced this pull request Oct 29, 2026
@dariusz-biela

Copy link
Copy Markdown
Contributor Author

Thanks @joekaufmanexpensify, done. The confirmation page no longer shows the link as a separate row. With an SSN you only see the masked SSN. Without one, the SSN row reads "I don't have a social security number or ITIN", and tapping it opens the page with the link. Screenshots of every case are in the description.

I built this into the form itself rather than just the Wise SSN case, so any similar "I don't have X" link we add later should behave the same way.

@dariusz-biela
dariusz-biela marked this pull request as ready for review October 29, 2026 15:51
@dariusz-biela
dariusz-biela requested review from a team as code owners October 29, 2026 15:51
@melvin-bot
melvin-bot Bot requested review from ZhenjaHorbach and grgia and removed request for a team October 29, 2026 15:51
@melvin-bot

melvin-bot Bot commented Oct 29, 2026

Copy link
Copy Markdown

@ZhenjaHorbach @grgia One of you needs to 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]

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T16:14:08.488819Z 52a61f1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@melvin-bot
melvin-bot Bot removed the request for review from a team October 29, 2026 15:51

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

Copy link
Copy Markdown

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: 52a61f197c

ℹ️ 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".

if (field.type !== 'boolean' || field.presentation !== 'link') {
return [];
}
return allFields.filter((candidate) => candidate.showWhen?.key === field.key && candidate.showWhen.equals.includes('false'));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Respect skipped pages when detecting opt-outs

When a visible link controls a field on another page whose own showWhen is false for an unrelated controller, this flattened allFields scan still returns that field. getConfirmationItems() correctly skips the dependent page via isPageShown(), but then drops the off link (and, when on, substitutes the skipped field's label), so the confirmation no longer represents the active form branch. Determine opt-out targets with page context, considering only fields whose page would be shown if this link were false.

Useful? React with 👍 / 👎.

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.

Sounds reasonable

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.

Good catch, fixed in 561e4d8. A field now counts as opted out only when its page is shown with the link off, so a link whose field sits on a skipped page keeps its own Yes or No row. Added tests for both states.

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

This comment has been minimized.

@grgia

grgia commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

@dariusz-biela you may need to merge main for the performance tests?

@dariusz-biela
dariusz-biela force-pushed the dariusz-biela/fix/wise-confirmation-hide-no-ssn-row branch from 58fc07e to 6c78c62 Compare October 30, 2026 14:59

@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.

Tests well and matches my expectation. Thank you!

@ZhenjaHorbach

ZhenjaHorbach commented Oct 30, 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 any copy / text that was added to the app 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 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 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 the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • 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-10-30.at.16.54.07.mov
Android: mWeb Chrome
Screen.Recording.2026-10-30.at.16.54.07.mov
iOS: HybridApp
Screen.Recording.2026-10-30.at.16.54.07.mov
iOS: mWeb Safari
Screen.Recording.2026-10-30.at.16.54.07.mov
MacOS: Chrome / Safari
Screen.Recording.2026-10-30.at.16.53.07.mov

@ZhenjaHorbach

Copy link
Copy Markdown
Contributor

I'm a bit confused
Do we need to show I don't have a social security number or ITIN field on the confirmation page?

Screen.Recording.2026-10-30.at.16.45.55.mov

@joekaufmanexpensify

Copy link
Copy Markdown
Contributor

Weird, that's not how it was working for me. This is what I see on the ad hoc build.

image

@ZhenjaHorbach

ZhenjaHorbach commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Looks like the last changes broke something 😅
Because the last adhoc build without these changes

@ZhenjaHorbach

ZhenjaHorbach commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

But okay
Cleared the cache
Now everything is working!

@ZhenjaHorbach

ZhenjaHorbach commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Interesting bug
When I enter 000000000 in the social number field (but actually this bug is reproducible only with the first 5 zeros)
We show this number without dashes on the confirmation screen

Screen.Recording.2026-10-30.at.16.54.56.mov

@ZhenjaHorbach

Copy link
Copy Markdown
Contributor

But overall, changes work well!

grgia
grgia previously approved these changes Oct 30, 2026
@grgia

grgia commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Actually @dariusz-biela can we please fix #105267 (comment) in this PR

@grgia
grgia self-requested a review October 30, 2026 18:17
@dariusz-biela

Copy link
Copy Markdown
Contributor Author

I think this PR is ready. The only thing is that oxlint isn't passing on the main branch because of some bug. #105689

@grgia
grgia merged commit 82c9505 into Expensify:main Nov 2, 2026
36 of 37 checks passed
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@OSBotify OSBotify mentioned this pull request Nov 3, 2026
99 tasks done
@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀

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

@MelvinBot

Copy link
Copy Markdown
Contributor

No help site update needed — this PR only fixes confirmation display and SSN formatting in beta-gated Wise onboarding, without making any existing article incorrect.

@OSBotify

OSBotify commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀

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

@OSBotify

OSBotify commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants