-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prevent going back to participant page when categorizing #53420
Conversation
Wouldn't it make more sense that pressing back here takes us back to the category select page? |
@trjExpensify What do you think? |
Yes, that's what I would expect. If you go back from the category list, then we close the RHP and NOT show a workspace list. |
@Ollyws All good now. |
This is working fine when we're going back from the category list, but when we go back from the submit page it closes the panel instead of going back to the category list: Screen.Recording.2024-12-03.at.19.34.31.mov |
Right, I agree if you go back from the confirmation page it should take you to the category list. If you go back from the category list, it closes the RHP. |
@Ollyws When we are from the category step we always App/src/pages/iou/request/step/IOURequestStepCategory.tsx Lines 130 to 133 in ce282d3
Screen.Recording.2024-12-04.at.12.35.16.mov |
What's your opinion on the behaviour in this video @trjExpensify ? |
Yeah, my expectation was:
Whereas, what appears to be happening is:
I prefer the first, but I'm not super passionate. Is @nkdengineer basically saying that because this is the same category selector on the confirmation page, we don't navigate back to it when you go back from there ordinarily. CC: @luacmartins @mountiny if you have any strong opinions on this. |
I agree that the first option @trjExpensify laid out is better. |
Same as Tom and Carlos @nkdengineer Can you please update the PR based on that expected outcome? thanks! |
I updated with this approach. However, I noticed that the animation is different when we click on the category section of the confirmation page for the first time. @trjExpensify cc @mountiny @Ollyws Screen.Recording.2024-12-09.at.16.55.39.mov |
@nkdengineer That is not right, we should be pushing that screen in. |
@mountiny Currently, we're using
But we need to use After that when we navigate to this screen, the animation is wrong because the screen is existed
|
I feel like there must be a way to achieve this @adamgrzybowski @WojtekBoman in case you have an idea on how to achieve this flow in the RHP Yeah, my expectation was:
|
@mountiny @trjExpensify @nkdengineer I'd like to make sure. Is this what we want to achieve? Screen.Recording.2024-12-09.at.13.35.52.mov |
@WojtekBoman @adamgrzybowski That looks good for the flow once you already upgraded to workspace. I guess its harder when the user does not have a workspace yet and then by categorizing it, we need to create a workspace |
They go through an upgrade interstitial. Confirming on that page (before seeing the category list) is what creates the workspace. |
Screen.Recording.2024-12-09.at.17.36.07.movAfter upgrading the workspace, categorizing flow is opened and works the same way as on the previous video that I attached |
That looks like what we're after. |
@WojtekBoman nice! What changes have you made? |
Here, I added |
I only added the two changes I mentioned above, but I'm not very familiar with the categorization flow, so it's possible I missed something |
Thank you! @nkdengineer can you please check these out? |
Thanks, @WojtekBoman. @mountiny I updated the code and the test steps. |
Thanks! @Ollyws what is your ETA for the review? |
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
@mountiny Will get to this one later today. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4MacOS: Desktop06_MacOS_Desktop.mp4 |
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, thanks everyone!
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.
LGTM
Thanks! |
✋ 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/mountiny in version: 9.0.75-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.75-6 🚀
|
Explanation of Change
Prevent going back to participant page when categorizing
Fixed Issues
$ #53274
#53318
PROPOSAL:
Tests
Precondition:
Offline tests
Same
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Precondition:
PR 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.2024-12-03.at.11.25.23.mov
Android: mWeb Chrome
Screen.Recording.2024-12-03.at.11.12.10.mov
iOS: Native
Screen.Recording.2024-12-03.at.11.27.00.mov
iOS: mWeb Safari
Screen.Recording.2024-12-03.at.11.14.40.mov
MacOS: Chrome / Safari
Screen.Recording.2024-12-03.at.11.08.24.mov
MacOS: Desktop
Screen.Recording.2024-12-03.at.11.30.02.mov