Gets the personal details login data with useOnyx - #2#90123
Gets the personal details login data with useOnyx - #2#90123bernhardoj wants to merge 13 commits into
Conversation
|
@DylanDylann 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] |
|
@shubham1206agra will review this |
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.
|
|
@mountiny Could you remove me from this PR and assign @shubham1206agra instead? |
|
@bernhardoj can you check the failing lint please |
|
Fixed |
|
conflicts |
|
Fixed |
| */ | ||
| function getLoginByAccountID(accountID: number): string | undefined { | ||
| return allPersonalDetails?.[accountID]?.login; | ||
| function getLoginByAccountID(accountID: number | undefined, personalDetails: OnyxEntry<PersonalDetailsList> = allPersonalDetails): string | undefined { |
There was a problem hiding this comment.
@bernhardoj Can we deprecate this function entirely? Cause this function doesn't do much really.
There was a problem hiding this comment.
It's still being used in some places. I'll remove it on other PRs.
|
No new product considerations - removing my assignment and unsubscribing. |
|
No product review needed |
|
Fixed conflict |
|
@shubham1206agra waiting for your review |
Explanation of Change
Fixed Issues
$ #66391
PROPOSAL:
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
A.
Prerequisite: have a workspace where User B is not a member
B.
Prerequisite: have at least 2 workspaces where User B is not a member of the 2nd workspace
C.
Prerequisite: have at least 2 workspaces, where the 2nd workspace has a different approver than the 1st one
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.2.mp4
web.1.mp4
web.3.mp4