-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add popToSidebar method #61689
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
Add popToSidebar method #61689
Conversation
… in reportScreen onBackButtonPress
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 🎸
@WojtekBoman Could you complete the checklist please |
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.
Just a few small changes
src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx
Outdated
Show resolved
Hide resolved
comments addressed |
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!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
cc: @WojtekBoman
Explanation of Change
This PR simplifies the logic responsible for navigating back to LHN after resizing the screen from wide to narrow layout:
Implemented popToSidebar method which pops all central screens to get back to LHN:
flow:
This implementation will be useful in the future when/if new screens in tabs shall be added.
Removed shouldPopToTop from goBack params and goBack function, after changes from this pr we won't need it anymore.
Replaced goBack(undefined, shouldPopToTop : true) with popToSidebar function in correct places for improved clarity
Removed goBackFromWorkspaceCentralScreen as it has basically the same functionality as new function and replaced where it was used with popToSidebar for improved clarity
Cleaned up code
Fixed Issues
$ #59300 (review)
PROPOSAL:
Tests
Test steps: All test cases on web
Testcase 1:
Testcase 2:
Testcase 3:
Offline tests
Same as above
QA Steps
Same as above
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-05-13.at.13.38.19.mov
MacOS: Desktop