-
Notifications
You must be signed in to change notification settings - Fork 3.2k
migrate AccountType step to FormProvider #56464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@dominictb 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] |
@mkzie2 Seems like we have an extra step here: ![]() Can you think of any way to eliminate it? |
@dominictb This is the same step like we did for the type business step in connect US bank account flow or some others that use |
I'm not sure what you're asking, can you elaborate? |
@cead22 Can you confirm the final expectation? |
@cead22 Friendly bump |
Hmmm, I've seen list pages where you select an option and still have to click the green button to "accept" it. But if you say we're doing what you showed on the video above in other places, specially if those places are part of this flow, then I think that's fine |
@joekaufmanexpensify I don't think extra step is allowed here. cc @Expensify/design to confirm this. cc @dominictb |
Hmm I feel like we've gone back and forth on this one... I don't know that we ever settled on an official rule for every single flow, cc @Expensify/design for thoughts The original thinking for having a green confirm button at the bottom of these flows was that if you were inside of a stepper flow (with multiple steps...) it might feel nicer to always show a green button at the bottom so you had consistency between pages. But I think we've also kinda walked back on that and we've found examples of where it feels a little cumbersome (like the onboarding modal) where we would prefer not to need the green confirm button on list selections. However, if you access a list selection via a push row, we never use a green confirmation button. That's something we've been consistent with for a long time I think. I'm not sure if that is helpful or not, but that's the backstory AFAIK. |
I agree with everything Shawn said, but I'm not sure that gets us closer to a decision haha.
This pattern does kinda seem to apply here though? |
Yeah good point. I think the ability to change your decision after the fact makes it fine to remove this green button. |
Hmm, based on this, it seems like we might be trying to add an additional push row for the account type. So you'd land on the page to select account type and then have another push row that brings you to where you actually make a selection (if I am understanding correctly). That seems redundant to me, and I agree with @shubham1206agra that we should have you select the account type from the top-level page, rather than forcing you down another level of navigation to select it. How it works now is below. We added the But not a fan of adding an extra push row, like was being proposed here. 2025-02-14_10-20-54.mp4 |
Ah great context Joe. I'm on board with everything you said. Definitely agree about removing the unnecessary nested push row, and in a flow like this where most screens need a bottom button, it makes sense to me to just keep the whole form/flow using that pattern. And then if we do go that route, on the confirm screen, if you tap back into it, I'd be fine with keeping that screen the same as during the flow (and not removing the bottom button). Does that all make sense? Alternatively, we could keep the green button during the initial flow, but if you revisit from the confirm screen we could remove the bottom button and treat it like all our other push-row-to-select-list screens, just not sure that's entirely necessary. |
Thank for all informations, I will give an update soon. |
Cool, yeah I can totally get on board with all of that too Joe & Danny. So it sounds like... just keep doing things the way we've been doing them 🤣 |
@dominictb Updated to remove the extra step. |
Just chiming in to say that I think having the button at the bottom for consistency is the way to go here as well 👍 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-18.at.16.45.29.movAndroid: mWeb ChromeScreen.Recording.2025-02-18.at.16.39.36.moviOS: NativeScreen.Recording.2025-03-21.at.01.21.38.movScreen.Recording.2025-03-21.at.01.21.10.movScreen.Recording.2025-03-21.at.01.22.45-compressed.moviOS: mWeb SafariScreen.Recording.2025-02-18.at.16.33.26.movMacOS: Chrome / SafariOriginal Bug: Screen.Recording.2025-03-21.at.01.12.19.movOnly show Screen.Recording.2025-03-21.at.01.11.21.movScreen.Recording.2025-03-21.at.01.10.38.movTest for other Screen.Recording.2025-03-21.at.01.15.05.movMacOS: DesktopScreen.Recording.2025-02-18.at.16.48.44.mov |
@mkzie2 Please update the screenshots with the latest change. |
@shawnborton Here is the correct result, right Screen.Recording.2025-03-15.at.20.04.41.mov |
That looks correct to me, from the confirmation screen. Just want to make sure the stepped flow does include the confirmation button at the bottom though, when you are first doing the steps sequentially? |
@shawnborton Yes, I did it. Screen.Recording.2025-03-17.at.15.13.38.mov |
Awesome, thanks for confirming! |
@dominictb can you please give this another review and update at least one of the videos in the reviewer checklist to make sure it's all working as intended? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed again and updated videos. @mkzie2 Please update your testing steps to include the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's just address @cead22's comment
@dominictb Updated. |
…to mkzie2-issue/55688
|
Oh I don't know what went wrong. Let me check. |
✋ 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/cead22 in version: 9.1.17-0 🚀
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.17-1 🚀
|
Explanation of Change
migrate AccountType step to FormProvider
Fixed Issues
$ #55688
PROPOSAL: #55688 (comment)
Tests
Precondition: Enable
newDotInternationalDepositBankAccount
betaConfirm
button shows at the bottomConfirm
button does NOT show at the bottomOffline tests
Same
QA Steps
Precondition: Enable
newDotInternationalDepositBankAccount
betaPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2025-02-18.at.17.31.02.mov
Android: mWeb Chrome
Screen.Recording.2025-02-18.at.17.26.00.mov
iOS: Native
Screen.Recording.2025-02-18.at.17.32.45.mov
iOS: mWeb Safari
Screen.Recording.2025-02-18.at.17.28.35.mov
MacOS: Chrome / Safari
Screen.Recording.2025-02-18.at.17.23.22.mov
Screen.Recording.2025-02-20.at.23.23.19.mov
Screen.Recording.2025-02-20.at.23.25.01.mov
MacOS: Desktop
Screen.Recording.2025-02-18.at.17.35.46.mov