-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
migrate sidebarLinkData to useOnyx #52550
Conversation
@ikevin127 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] |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.webmAndroid: mWeb Chromeandroid-mweb.webmiOS: Nativeios.MP4iOS: mWeb Safariios-mweb.MP4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
const isFocused = useIsFocused(); | ||
const styles = useThemeStyles(); | ||
const activeWorkspaceID = useActiveWorkspaceFromNavigationState(); | ||
const {translate} = useLocalize(); | ||
const [isLoadingApp] = useOnyx(ONYXKEYS.IS_LOADING_APP, {initialValue: true}); | ||
const [priorityMode] = useOnyx(ONYXKEYS.NVP_PRIORITY_MODE, {initialValue: CONST.PRIORITY_MODE.DEFAULT}); | ||
|
||
const {orderedReportIDs, currentReportID, policyMemberAccountIDs} = useReportIDs(); | ||
|
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.
NAB: I noticed this constant assignment in this component which is redundant as it was leftover from another PRs commit 1b0738a
back when we used to have 2 checks, but now that we only have 1 (isLoadingApp
) there's no point in re-assigning it to a constant.
- const isLoading = isLoadingApp;
- isLoading={isLoadingApp ?? false}
+ isLoading={isLoadingApp ?? false}
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.
Sorry, I missed this. I'll update it shortly.
@Nodebrute Hi, do you mind addressing the Requested changes from #52550 (comment) so I can move forward with the PR review process and hopefully merge this PR ? Thanks! |
@ikevin127 Thank you for your patience. The PR is now ready for review. |
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.
Thanks for addressing the change request, the fix LGTM 🚀
cc @MariaHCD for visibility |
✋ 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/MariaHCD in version: 9.0.67-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.67-9 🚀
|
Explanation of Change
Fixed Issues
$ #52459
PROPOSAL: #52459 (comment)
Tests
Offline tests
Same as above
QA Steps
// 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
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-11-14.at.7.42.50.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-11-14.at.7.45.29.PM.mov
iOS: Native
Screen.Recording.2024-11-14.at.8.09.49.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-11-14.at.7.54.32.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-14.at.7.27.30.PM.mov
MacOS: Desktop
Screen.Recording.2024-11-14.at.7.52.36.PM.mov