No QA: Implement success/failure callback#82017
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Testing on the test biomimetic flow: Screen.Recording.2026-02-11.at.01.41.54.mov |
|
@hoangzinh 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] |
1 similar comment
|
@hoangzinh 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] |
|
@chuckdries @JakubKorytko Could you please review this PR? |
|
@hoangzinh Sorry, please ignore this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e356e6193
ℹ️ 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".
src/components/MultifactorAuthentication/config/scenarios/DefaultUserInterface.ts
Outdated
Show resolved
Hide resolved
tests/unit/components/MultifactorAuthentication/config/scenarios/index.test.ts
Show resolved
Hide resolved
src/components/MultifactorAuthentication/config/scenarios/DefaultUserInterface.ts
Outdated
Show resolved
Hide resolved
tests/unit/components/MultifactorAuthentication/config/scenarios/index.test.ts
Show resolved
Hide resolved
|
All comments are resolved |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.failure.callback.mp4android.success.callback.mp4iOS: HybridAppios.success.callback.mp4ios.failure.callback.mp4MacOS: Chrome / Safariweb.failure.callback.mp4 |
chuckdries
left a comment
There was a problem hiding this comment.
Looks good to me!
For testing videos above, I just adding some logging in the default callback
diff --git a/src/components/MultifactorAuthentication/config/scenarios/DefaultUserInterface.ts b/src/components/MultifactorAuthentication/config/scenarios/DefaultUserInterface.ts
index f929fb2b96b..4407beaed4f 100644
--- a/src/components/MultifactorAuthentication/config/scenarios/DefaultUserInterface.ts
+++ b/src/components/MultifactorAuthentication/config/scenarios/DefaultUserInterface.ts
@@ -13,8 +13,10 @@ import CONST from '@src/CONST';
* Scenarios can override this with their own callback to handle custom navigation logic.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
-const defaultCallback = (isSuccessful: boolean, callbackInput: MultifactorAuthenticationCallbackInput): Promise<MultifactorAuthenticationCallbackResponse> =>
- Promise.resolve(CONST.MULTIFACTOR_AUTHENTICATION.CALLBACK_RESPONSE.SHOW_OUTCOME_SCREEN);
+const defaultCallback = (isSuccessful: boolean, callbackInput: MultifactorAuthenticationCallbackInput): Promise<MultifactorAuthenticationCallbackResponse> => {
+ console.log('this is the default callback!', callbackInput);
+ return Promise.resolve(CONST.MULTIFACTOR_AUTHENTICATION.CALLBACK_RESPONSE.SHOW_OUTCOME_SCREEN);
+}
/**
* Default UI configuration for all multifactor authentication scenarios with modals and outcomes.
rafecolton
left a comment
There was a problem hiding this comment.
Please add comments to the unit tests
|
@rafecolton All good to merge? Just want to make sure I didn't miss any comments |
|
@DylanDylann it would be good if you merged this PR, because then I could start resolving conflicts with error handling. |
|
Looks like we need to wait for @rafecolton to come online |
|
🚧 @rafecolton 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.3.20-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.20-6 🚀
|
Explanation of Change
Fixed Issues
$ #80693
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari