Fix can't mark one-expense report as unread#56893
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: Native56893-ios-native.mp4iOS: mWeb Safari56893-ios-safari.mp4MacOS: Chrome / Safari56893-web.mp4MacOS: Desktop56893-desktop.mp4 |
akinwale
left a comment
There was a problem hiding this comment.
LGTM.
NAB, but references to oneTransactionThreadReport can be better named as singleTransactionThreadReport.
dangrous
left a comment
There was a problem hiding this comment.
This is looking good, a couple notes:
- I agree with @akinwale, let's update
OneTransactiontoSingleTransaction- I know we usedOneTransactionbefore but I thinkSinglewill be clearer - Can you add a comment to the new
iSunReaddescribing a little about the new second param? I feel like people might get confused looking at that in the future. - Had one question about the test changes.
Otherwise I think we're almost there!
Hmm, if we change it, won't it be confusing because we will now have
|
added |
I think in these cases (if this is code in this PR), it would be appropriate to rename them |
|
Yeah I guess we leave it - I like |
dangrous
left a comment
There was a problem hiding this comment.
One final question about the tests, but I think it's not a blocker. Let me know!
| // eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
| jest.doMock('@libs/EmojiUtils', () => ({ | ||
| ...jest.requireActual('@libs/EmojiUtils'), | ||
| hasAccountIDEmojiReacted: jest.fn(() => true), | ||
| })); |
There was a problem hiding this comment.
Apologies about that other comment - I think I meant to ask about THIS change, not the one above. Was this a lint thing?
There was a problem hiding this comment.
Ah, yes, this is because the lint complaint when we import
import * as EmojiUtils from '@libs/EmojiUtils';
so we can't do jest.spyOn(EmojiUtils, 'hasAccountIDEmojiReacted') anymore. So instead, I mock the whole module using doMock (so it's mocked for this test case only), but only mock the hasAccountIDEmojiReacted function.
There was a problem hiding this comment.
ah okay cool, thank you for explaining!
|
Can you fix the conflicts and then we should be good to go here? Thanks! |
|
@dangrous fixed |
|
argh they're back. I didn't get there in time! |
|
@dangrous and they're gone now |
|
✋ 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/dangrous in version: 9.1.9-0 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.9-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.9-8 🚀
|
Explanation of Change
Fixed Issues
$ #55614
PROPOSAL: #55614 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4