Refactor: migrate getRate to use usePersonalPolicy hook (part 1)#91615
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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-05-26.at.18.48.45.mov |
📊 NAB: Test CoverageCoverage provided by the author: What should be covered:
|
ikevin127
left a comment
There was a problem hiding this comment.
🟢 LGTM
The migration is correct, consistent, and safe. The only gap is the absence of unit tests for a change that touches 9 call sites. No functional regressions expected ✅
justinpersaud
left a comment
There was a problem hiding this comment.
lgtm, conflict though
|
@justinpersaud Conflict resolved |
|
@justinpersaud looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an emergency, previous tests passed and the last test failures were github actions flakiness on builds |
|
🚧 @justinpersaud has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/justinpersaud in version: 9.3.90-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. I reviewed the changes in this PR and no updates are needed for the help site files under Why: This is an internal refactor, not a behavior or feature change. It migrates The relevant help articles (e.g. @shubham1206agra, please confirm you agree no help site update is needed here. If you believe a user-facing behavior actually changed, let me know what changed and I'll draft the corresponding help site PR. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.90-3 🚀
|
Explanation of Change
Fixed Issues
$ #66397
Tests
Offline tests
Same as Tests
QA Steps
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
Screen.Recording.2026-05-25.at.7.45.49.PM.mov