-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Internal QA] feat: show domain feed in ND #59538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
|
||
// 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice we also have cardID
. Are cardsID
and cardID
different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, calling it fundID
sounds good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, so I'll rename to fundID
@@ -36,9 +36,12 @@ type WorkspaceExpensifyCardListPageProps = { | |||
|
|||
/** List of Expensify cards */ | |||
cardsList: OnyxEntry<WorkspaceCardsList>; | |||
|
|||
/** Cards ID */ | |||
cardsID: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think cardsID
is easily mixed up with cardID
.
src/hooks/useDomainCardsID.ts
Outdated
import CONST from '@src/CONST'; | ||
import ONYXKEYS from '@src/ONYXKEYS'; | ||
|
||
function useDomainCardsID(policyID: string | undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, so I need to refactor this then, for now it takes the first matching entry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop