Repository navigation
[Payment due @gijoe0295] Replace work email input with button linking to Contact Methods in card feed flows - #95610
Conversation
…rd feed flows Co-authored-by: Maxence Coulibaly <madmax330@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…heck Co-authored-by: Maxence Coulibaly <madmax330@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Maxence Coulibaly <madmax330@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Maxence Coulibaly <madmax330@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@MelvinBot can you merge main? |
…kEmailButton Co-authored-by: Maxence Coulibaly <madmax330@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@gijoe0295 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] |
|
Is this a blocker? Otherwise can I review it tomorrow? Thanks |
…ct method back-navigation changes The prompt's focus effect returns users to the feed selector, so Contact Methods can use main's plain back behavior. Addresses review comment: #95610 (comment)
This comment has been minimized.
This comment has been minimized.
|
Ok, re-tested locally and it seems you were right @gijoe0295 it's working still. 👍🏽 |
This comment has been minimized.
This comment has been minimized.
|
Unrelated failing check. @madmax330 Can you merge |
|
@gijoe0295 fixed |
|
🎯 @gijoe0295, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
Checklist is #95610 (comment) |
|
Wow what a ride, thanks @gijoe0295 for sticking with me 😄 |
|
🚧 madmax330 has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
@madmax330 @mountiny Steps for QA the same as Tests, right? |
|
Deploy Blocker #105426 was identified to be related to this PR. |
|
🚀 Deployed to staging by https://github.com/madmax330 in version: 9.5.26-0 🚀
|
|
No help site update needed. No article describes the Add work email screen in the card feed import flows, and the private-domain email requirement in Share a Company Card Connection Across Workspaces is still accurate. |
|
@MelvinBot Steps for QA the same as tests, right? |
|
Yes. The QA Steps section was never filled in, so use the steps in the Tests section. They work on staging, because Mock Bank is listed in every environment except production (SelectBankStep.tsx:64-65). Steps:
The Tests section covers only company cards. The PR also changed the same screen in the Expensify Card "link a feed from another workspace" flow. Run steps 4–5 there too if you can. |
|
🤖 Payment issue created: #105547 |
Explanation of Change
The workspace company cards and Expensify Card "import a feed from another workspace" flows both showed an inline email input on the Add work email screen and called
AddWorkEmaildirectly on submit. That command is an account-takeover vector and is now rejected by the backend for validated callers, so the screen silently failed on submit.This PR replaces the inline email input on both card‑feed Add work email screens with an "Add work email" button. The screen keeps the same title and description text, but the button now navigates the user to Settings → Profile → Contact Methods (
SETTINGS_CONTACT_METHODS), where adding a work email goes through the standard magic‑code‑verified flow. ThebackToparam is set to the current route so the user returns to the card‑feed screen afterward.Files changed:
src/pages/workspace/companyCards/WorkspaceCompanyCardAddWorkEmailPage.tsxsrc/pages/workspace/expensifyCard/WorkspaceExpensifyCardAddWorkEmailPage.tsxsrc/languages/en.ts/src/languages/es.ts— addedworkspace.companyCards.addWorkEmailButton("Add work email").The now-unused
AddWorkEmailinline submit/validation logic was removed from these two screens.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/641791
PROPOSAL:
Tests
// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
Verify that no errors appear in the JS console
Create a new gmail account
Create a control workspace
Add a Mock Bank feed
Create a new workspace
Try to add the previously created Mock Bank feed:
Offline tests
QA Steps
// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.