(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
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
allgandalf
left a comment
There was a problem hiding this comment.
yeah probably some issue with my simulator, adhoc worked fine!
Thanks for all the hard work here @wildan-m also thanks @fabioh8010 for the performance testing, Loved working together on this one 🚀
|
and now we have conflicts 😞 |
|
@wildan-m let's resolve conflicts and then we're good to merge! |
…x/51296-chat-list-item
|
This is a large PR so we won't address ESLint changes here. Merging. |
|
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
See comment above |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
✋ 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/luacmartins in version: 9.1.5-0 🚀
|
|
Adding to the above. I'm thinking these changes may prevent a chat from being opened on authentication immediately after signout. |
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.5-5 🚀
|
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 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
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