-
Notifications
You must be signed in to change notification settings - Fork 3k
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
(2/2) Add support for all reportAction types in ChatListItem - use ReportActionItem in ChatListItem #54228
base: main
Are you sure you want to change the base?
(2/2) Add support for all reportAction types in ChatListItem - use ReportActionItem in ChatListItem #54228
Conversation
…x/51296-chat-list-item
…x/51296-chat-list-item
@luacmartins @allgandalf this is draft PR for the second part. Will the logic to show icons the same between reportactionitem and chatlistitem? PureReportActionItem might render ReportActionItemSingle and use getReportActionActorAccountID, to determine the icons from personalDetails, but SearchReportAction doesn't have ownerAccountID, actorAccountID, etc to fullfill the logic. will |
@wildan-m Search already returns |
PR to add |
…x/51296-chat-list-item
@luacmartins @allgandalf There is a new ESLint rule that enforces the use of a default value of '0' or undefined instead of '-1'. I am concerned that this change could potentially cause regressions, especially because there are numerous occurrences in the PureReportActionItem, ReportActionItemSingle and their subcomponents. Should this be addressed in this pull request?
|
Let's open a separate PR for that and get it merged first, so if there are regressions it's isolated to that one PR and it's easy to revert |
@wildan-m can you please fix the workflows |
…x/51296-chat-list-item
…x/51296-chat-list-item
…x/51296-chat-list-item
…x/51296-chat-list-item
…x/51296-chat-list-item
…x/51296-chat-list-item
…ition to shouldUseSharedVideoElement
There is CalendarPickerTest failures that seems comes from other PR https://expensify.slack.com/archives/C01GTK53T8Q/p1738397681223439 |
Thanks for working on the onyx bump |
…x/51296-chat-list-item
@wildan-m @luacmartins Onyx bump PR was merged! |
…x/51296-chat-list-item
…napshot for the previewed attachment
@fabioh8010 thank you! @allgandalf @luacmartins The code has been updated to use UseOnyxOptions from there |
@luacmartins @allgandalf @fabioh8010 I've tried to change
But it does not pass this test App/tests/unit/ReportActionItemSingleTest.ts Lines 69 to 76 in 4bf233e
Not sure what's wrong, even when we change it in main branch with Unable to find an element with testID: SvgDefaultAvatar_w Icon Like the error here. What I've tried:
Have you ever experienced it? |
I haven't experienced it, but my initial thought is that it's a race condition because |
@luacmartins thanks for the insight, I think we can move the render process after setup await setup();
LHNTestUtils.getDefaultRenderedReportActionItemSingle(shouldShowSubscriptAvatar, fakeReport, fakeReportAction);
await waitFor(() => {
expect(screen.getByTestId(expectedSecondaryIconTestId)).toBeOnTheScreen();
}); Now the test passed 😆 Any update regarding the missing fields? |
…x/51296-chat-list-item
I'm still working on the PR. Sorry for the delay. |
PR returning the additional data is in review |
…x/51296-chat-list-item
Explanation of Change
Second PR to add support for all reportAction types in ChatListItem, this part replace chatlistItem inner component with ReportActionItem
Fixed Issues
$ #51296
PROPOSAL: #51296 (comment)
Tests
Pre-condition: Login to account with various chat types
Offline tests
Same as test
QA Steps
Same as test
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
Kapture.2024-12-28.at.11.16.37.mp4
Android: mWeb Chrome
Kapture.2024-12-28.at.11.20.10.mp4
iOS: Native
Kapture.2024-12-28.at.09.19.43.mp4
iOS: mWeb Safari
Kapture.2024-12-28.at.09.40.09.mp4
MacOS: Chrome / Safari
Kapture.2024-12-28.at.09.11.12.mp4
MacOS: Desktop
Kapture.2024-12-28.at.11.11.31.mp4