Repository navigation
Conversation
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.
|
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".
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.
|
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. |
|
@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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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')); |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
🚧 joekaufmanexpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
@dariusz-biela you may need to merge main for the performance tests? |
…e-confirmation-hide-no-ssn-row
…e-confirmation-hide-no-ssn-row
58fc07e to
6c78c62
Compare
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Tests well and matches my expectation. Thank you!
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-10-30.at.16.54.07.movAndroid: mWeb ChromeScreen.Recording.2026-10-30.at.16.54.07.moviOS: HybridAppScreen.Recording.2026-10-30.at.16.54.07.moviOS: mWeb SafariScreen.Recording.2026-10-30.at.16.54.07.movMacOS: Chrome / SafariScreen.Recording.2026-10-30.at.16.53.07.mov |
|
I'm a bit confused Screen.Recording.2026-10-30.at.16.45.55.mov |
|
Looks like the last changes broke something 😅 |
|
But okay |
|
Interesting bug Screen.Recording.2026-10-30.at.16.54.56.mov |
|
But overall, changes work well! |
|
Actually @dariusz-biela can we please fix #105267 (comment) in this PR |
7f158bc
…e-confirmation-hide-no-ssn-row
|
I think this PR is ready. The only thing is that oxlint isn't passing on the main branch because of some bug. #105689 |
…e-confirmation-hide-no-ssn-row
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀
|
|
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. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.5.31-4 🚀
Bundle Size Analysis (Sentry): |

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
hasNoSSNis still sent as before.In the code
getConfirmationItemstreats a boolean field withpresentation: 'link'as an opt-out only when another field shows only while the link is off, as the SSN and ID document do forhasNoSSN.DynamicFormrather than the Wise form, so any other opt-out link gets the same treatment.getConfirmationItemsTestcover 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
wiseReimbursementsbeta 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):
123456789as the SSN, upload an image as the ID, leave "I don't have a social security number or ITIN" untouched and press NextOffline 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
wiseReimbursementsbeta and a USD business bank account that is not on Corpay.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos