[Internal QA] feat: show domain feed in ND#59538
Conversation
|
Is the reason it shows as "hidden" because the accountID here isn't on the workspace? I think if you change that accountID to one of someone that is a member of the workspace then it won't show as "hidden" anymore and you should be able to see the user and click them to see their profile. |
|
@koko57 Did you mean to apply the Internal QA label in the title instead of No QA? Because it looks like there is still some form of testing required for the PR. |
|
@akinwale changed |
|
@puneetlath yes, you're right, I'm changing the description then |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safari59364-web.mp4MacOS: Desktop |
|
|
||
| // TODO: add logic for choosing between the domain and workspace feed when both available | ||
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| const cardsID = domainCardsID || workspaceAccountID; |
There was a problem hiding this comment.
I notice we also have cardID. Are cardsID and cardID different?
There was a problem hiding this comment.
Oh yeah, calling it fundID sounds good to me.
There was a problem hiding this comment.
ok, so I'll rename to fundID
| cardsList: OnyxEntry<WorkspaceCardsList>; | ||
|
|
||
| /** Cards ID */ | ||
| cardsID: number; |
There was a problem hiding this comment.
It makes more sense to me that this would be singular if it's the ID for a single card. Or is this the ID for the card feed?
| cardsID: number; | |
| cardID: number; |
|
|
||
| // TODO: add logic for choosing between the domain and workspace feed when both available | ||
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| const cardsID = domainCardsID || workspaceAccountID; |
There was a problem hiding this comment.
Maybe we can call this domainAccountID since that's what it is in the db. And technically a workspaceAccountID is a type of domainAccountID. Or maybe we call it the cardAccountID.
There was a problem hiding this comment.
I think cardsID is easily mixed up with cardID.
| import CONST from '@src/CONST'; | ||
| import ONYXKEYS from '@src/ONYXKEYS'; | ||
|
|
||
| function useDomainCardsID(policyID: string | undefined) { |
There was a problem hiding this comment.
There can technically be multiple domainAccountIDs that we would return here, right? Since there could be multiple domains that have this set as the preferred policy. Maybe it would make sense to call it useDomainCardIDs or useDomainAccountIDs.
There was a problem hiding this comment.
ok, so I need to refactor this then, for now it takes the first matching entry
There was a problem hiding this comment.
I've changed it to FundID like in the other locations, if it's a fundID in the cards_ object
@puneetlath May I work on refactoring it to return an array of the ids in the second PR for selector? Here, without selector it would make things a bit complicated
There was a problem hiding this comment.
Sure, that makes sense to me.
|
✋ 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/puneetlath in version: 9.1.24-2 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|

Explanation of Change
Fixed Issues
$ #59364
PROPOSAL: -
Tests
PREREQUISITES:
TEST IN THE BROWSER, copy these commands, change YOUR_POLICY_ID for policyID you will be testing with and YOUR_ACCOUNT_ID for your user id or any domain member id, run these both commands in the console to set the proper data in Onyx
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))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
MacOS: Desktop