-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
update the feed domain #58350
base: main
Are you sure you want to change the base?
update the feed domain #58350
Conversation
Is it ready for review? |
It is ready |
Can you please update the test steps? |
Ahh, it is only my draft. Please review my solution first 😄 |
@@ -50,8 +51,12 @@ function SearchFiltersCardPage() { | |||
() => buildCardsData(workspaceCardFeeds ?? {}, userCardList ?? {}, personalDetails ?? {}, selectedCards, illustrations, true), | |||
[workspaceCardFeeds, userCardList, personalDetails, selectedCards, illustrations], | |||
); | |||
const flattenedWorkspaceCardFeeds = Object.values(workspaceCardFeeds ?? {}).reduce<CardList>((result, domainCards) => { |
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.
We should wrap it in useMemo or apply this logic in the useMemo below since flattenedWorkspaceCardFeeds is not used anywhere else
|
||
const domainFeedsData = useMemo(() => generateDomainFeedData(userCardList), [userCardList]); | ||
const domainFeedsData = useMemo(() => generateDomainFeedData(flattenedWorkspaceCardFeeds), [flattenedWorkspaceCardFeeds]); |
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.
Can you add a robust test for this logic to ensure we are covering the workspace and domain feeds well?
Explanation of Change
Fixed Issues
$ #58304
PROPOSAL: #58304 (comment)
Tests
Offline tests
QA Steps
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
MacOS: Chrome / Safari
Screen.Recording.2025-03-13.at.15.52.35.mov