-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Hide the REIMBURSED action type #59192
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
Conversation
@dominictb Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@ishpaul777 @ One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
LGTM. @ishpaul777 all yours
// information they display is already provided by other actions. | ||
if (action.actionName === CONST.REPORT.ACTIONS.TYPE.REIMBURSED) { | ||
return null; | ||
} |
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.
I think the preffered way should be to not have this action to be visible, we have shouldReportActionBeVisible
in src/libs/ReportActionsUtils.ts
can we return false on that function?
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.
Good call @ishpaul777! There is a list of deprecated OldDot actions in there and this is one of those, so I added it to the list.
Updated! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2025-03-28.at.4.12.57.AM.moviOS: NativeScreen.Recording.2025-03-28.at.4.46.29.AM.moviOS: mWeb SafariScreen.Recording.2025-03-28.at.4.08.35.AM.movMacOS: Chrome / SafariScreen.Recording.2025-03-28.at.12.32.49.AM.movMacOS: DesktopScreen.Recording.2025-03-28.at.4.23.47.AM.mov |
✋ 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.21-0 🚀
|
🚀 Deployed to production by https://github.com/grgia in version: 9.1.21-3 🚀
|
Explanation of Change
This PR updates
PureReportActionItem.renderReportActionItem
so that it returnsnull
when attempting to renderREIMBURSED
report actions. That action type is meant for OldDot only and all the information it displays is already show by other actions.Fixed Issues
$ #54289
PROPOSAL: N/A
Tests
Before
After
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop