Pass the personal details list from useOnyx to getNewAccountIDsAndLogins - #92609
Conversation
|
@shubham1206agra 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c423deeada
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
No product review needed |
|
@bernhardoj Fix conflicts please |
|
@shubham1206agra fixed |
|
@bernhardoj Conflicts and failing tests |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@shubham1206agra done |
| delegateAccountID?: number | undefined; | ||
| // TODO: Remove optional (?) once all callers are updated in follow-up PRs of https://github.com/Expensify/App/issues/66578 | ||
| reportActionsList?: OnyxCollection<OnyxTypes.ReportActions>; | ||
| personalDetailsList?: OnyxEntry<OnyxTypes.PersonalDetailsList>; |
There was a problem hiding this comment.
| personalDetailsList?: OnyxEntry<OnyxTypes.PersonalDetailsList>; | |
| personalDetailsList: OnyxEntry<OnyxTypes.PersonalDetailsList>; |
There was a problem hiding this comment.
This is intentional because personalDetailsList is only used for sharing with accountant case
There was a problem hiding this comment.
@bernhardoj Please write a comment about the same here
| currentUser: CurrentUser; | ||
| // TODO: Remove optional (?) once all callers are updated in follow-up PRs of https://github.com/Expensify/App/issues/66578 | ||
| reportActionsList?: OnyxCollection<OnyxTypes.ReportActions>; | ||
| personalDetailsList?: OnyxEntry<OnyxTypes.PersonalDetailsList>; |
There was a problem hiding this comment.
| personalDetailsList?: OnyxEntry<OnyxTypes.PersonalDetailsList>; | |
| personalDetailsList: OnyxEntry<OnyxTypes.PersonalDetailsList>; |
There was a problem hiding this comment.
This is intentional because personalDetailsList is only used for sharing with accountant case
|
Tests failing are unrelated |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-06-17.at.6.53.21.PM.mov |
|
@bernhardoj Merge main to fix the Jest |
|
Done |
|
🚧 @mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.17-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 I reviewed the changes in this PR against the help site files in No help site updates are required. This is an internal refactor (part of #66391): it passes the |
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀
|
| for (const [index, login] of logins.entries()) { | ||
| const accountID = accountIDs.at(index) ?? -1; | ||
| if (isEmptyObject(allPersonalDetails?.[accountID])) { | ||
| if (isEmptyObject(personalDetailsList?.[accountID])) { |
There was a problem hiding this comment.
@bernhardoj @shubham1206agra We're passing personalDetailsList (a large object) just to check whether the account IDs exist or not. I don't think it's worth passing the entire personalDetailsList. I'm wondering if we could use a selector to compute an array of existing account IDs and pass that down instead
There was a problem hiding this comment.
Here is the PR for that: #96029
cc: @shubham1206agra


Explanation of Change
Fixed Issues
$ #66391
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: have a workspace, go offline
(DEV only)
Return true here
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4
web.2.mp4