Allow removing demo transactions#64724
Conversation
|
@s77rt We still need to wait BE update. But I think we can process this PR in parallel to speed it up |
|
The BE is updated. We are good to go here |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppBuild issues. NAB. Android: mWeb Chromemweb-chrome.moviOS: HybridAppios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
src/pages/home/report/ContextMenu/BaseReportActionContextMenu.tsx
Outdated
Show resolved
Hide resolved
|
This is missing offline-first support, when you create a demo expense, the transaction should optimistically have desktop.mov |
|
@s77rt Sorry, my bad, I push wrong commit |
| (childrenProp: React.ReactNode): React.ReactNode => { | ||
| const strikeThroughChildren = mapChildrenFlat(childrenProp, (child) => { | ||
| if (!React.isValidElement(child)) { | ||
| if (!React.isValidElement(child) || child.type === ImageSVG) { |
There was a problem hiding this comment.
I think we should look into this more and fix the root cause as I don't think this is explicitly linked to SVG component
@s77rt But we can't strike out the SVG with the current way, because SVG elements do not recognize React Native's text style properties like textDecorationLine or textDecorationStyle. If we still want to strike out the SVG, we may need to implement another solution and I think it is out of scope now. It is the reason why I disable strike-out if it is SVG component |
If that, do you have any idea on this? I think it relates to SVG (as mentioned here - the paid icon) and my solution also fix this problem |
|
@DylanDylann I'm not saying we should strike out the svg. I'm saying we should improve the condition so we don't strike the svg and other elements that may cause the same problem. Thus we should find what's about the svg that's causing this failure and use it as the condition. |
|
Can you please resolve conflicts |
grgia
left a comment
There was a problem hiding this comment.
@DylanDylann could you resolve conflicts?
@DylanDylann What's the issue we need to create? |
|
@grgia conflict is resolved |
|
✋ 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/grgia in version: 9.1.82-1 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.82-7 🚀
|
Explanation of Change
Fixed Issues
$ #61718
PROPOSAL: NA
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Test 1
Test 2
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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: mWeb Chrome
Screen.Recording.2025-06-30.at.10.47.47.mov
iOS: Native
Screen.Recording.2025-06-30.at.10.48.08.mov
iOS: mWeb Safari
Screen.Recording.2025-06-30.at.10.45.00.mov
MacOS: Chrome / Safari
Screen.Recording.2025-06-30.at.10.40.48.mov
Screen.Recording.2025-06-30.at.10.41.57.mov
MacOS: Desktop
Screen.Recording.2025-06-30.at.10.46.10.mov