remove remaining inline selectors#72546
Conversation
|
@dukenv0307 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] |
|
3 more places App/src/hooks/usePersonalPolicy.ts Line 19 in d057ac4 |
| } | ||
| }); | ||
|
|
||
| const transactionViolationSelector = (violations: OnyxCollection<TransactionViolations>) => { |
| * `true` means the onboarding flow is loading | ||
| * `false` means the onboarding flow is not loading | ||
| */ | ||
| function isOnboardingLoadingSelector(onboarding: OnyxValue<typeof ONYXKEYS.NVP_ONBOARDING>): boolean | undefined { |
There was a problem hiding this comment.
why don't we move it to selectors folder?
There was a problem hiding this comment.
Good call, I missed the fact that it's not there
|
Updated ✅ |
roryabraham
left a comment
There was a problem hiding this comment.
@TMisiukiewicz Can you please upgrade eslint-config-expensify to include the no-inline-useOnyx-selector rule we added in Expensify/eslint-config-expensify#160, now that the ESLint 9 upgrade is complete?
|
|
|
@roryabraham amazing! Bumped version to 2.0.92 |
2e64e20 to
6133146
Compare
|
@TMisiukiewicz Can you please fix the eslint check? |
47ef090
|
Should be good now! |
|
Looks like tests are flaky |
|
@TMisiukiewicz we got the conflict, can you please merge main? |
|
done |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product pr review required
|
@TMisiukiewicz lint errors this time 🙇 |
@TMisiukiewicz lint error happens because the number of warnings exceeds the limit of 131. you can fix this by increasing the maximum warnings threshold in |
|
I hope this PR gets merged today 🥺 |
|
Resolved conflicts again |
|
All yours @roryabraham |
|
Praying for a merge before conflict happens... 🤣 |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.46-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.46-3 🚀
|
Explanation of Change
Migrating the remaining inline selectors to stable selectors. They were most likely accidentally missed during migration or created while the migration was ongoing.
Fixed Issues
$ #70272
PROPOSAL:
Tests
Offline tests
n/a
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
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.mov
Android: mWeb Chrome
iOS: Native
ios.mov
iOS: mWeb Safari
ios.web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov