-
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
[HOLD for payment 2024-12-20] [HOLD for payment 2024-12-19] [$250] Updating report action button in the case of held expenses #52569
Comments
Current assignee @JmillsExpensify is eligible for the NewFeature assigner, not assigning anyone new. |
|
Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify ( |
Jon - please correct anything you don't agree with or would like to tweak in the OP. Once we're good, then I'll open up this issue to the community. Or @luacmartins let me know if this is better to take internal. |
Edited by proposal-police: This proposal was edited at 2024-11-14 14:51:31 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?New feature What changes do you think we should make in order to solve the problem?
Do the same in MoneyReportHeader and other places What alternative solutions did you explore? (Optional) |
[@username] Your proposal will be dismissed because you did not follow the proposal template. |
I think this can be external |
ProposalPlease re-state the problem that we are trying to solve in this issue.Show a grey approve/pay button when all expenses on a report are held What is the root cause of that problem?New feature What changes do you think we should make in order to solve the problem?
const hasHeldExpenses = ReportUtils.hasHeldExpenses(iouReportID);
// ReportPreview.tsx
{shouldShowSettlementButton && (
<AnimatedSettlementButton
success={!hasHeldExpenses}
onlyShowPayElsewhere={onlyShowPayElsewhere}
// SettlementButton.tsx
function SettlementButton({
success = true,
...
}) {
...
return (
...
{(triggerKYCFlow, buttonRef) => (
<ButtonWithDropdownMenu<PaymentType>
success={success}
)
} And we can do the same approach for MoneyReportHeader and we will use const hasHeldExpenses = ReportUtils.hasHeldExpenses(moneyRequestReport?.reportID); And for the Search page, we will do the same approach we will add new success prop to ActionCell component and we will pass true if it's not on hold App/src/components/SelectionList/Search/TransactionListItemRow.tsx Lines 442 to 443 in a6f1348
// TransactionListItemRow.tsx
const isOnHold = useMemo(() => TransactionUtils.isOnHold(item), [item]);
<ActionCell
success={!isOnHold}
// ActionCell.tsx
function ActionCell({success = true, action = CONST.SEARCH.ACTION_TYPES.VIEW, isLargeScreenWidth = true, isSelected = false, goToItem, isChildListItem = false, parentAction = ''}: ActionCellProps) {
...
<Button
text={translate(actionTranslationsMap[CONST.SEARCH.ACTION_TYPES.VIEW])}
success={success} Btw i am not seeing any approve button inside the search page, but if there's we can do like the above one ResultScreen.Recording.2024-11-14.at.21.14.41.movWhat alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Show a gray approve/pay button if all the expenses are on hold. What is the root cause of that problem?Feature request. What changes do you think we should make in order to solve the problem?First, create a new prop for SettlementButton called App/src/components/SettlementButton/index.tsx Lines 238 to 239 in a6f1348
In MoneyReportHeader, pass App/src/components/MoneyReportHeader.tsx Lines 361 to 362 in a6f1348
If we want to apply to report preview settlement button too, we can apply it the same here. App/src/components/ReportActionItem/ReportPreview.tsx Lines 538 to 539 in a6f1348
For search page, there is no action for approve/pay. App/src/components/SelectionList/Search/ActionCell.tsx Lines 15 to 20 in a6f1348
|
Job added to Upwork: https://www.upwork.com/jobs/~021857475710560245957 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Will review this by tomorrow. |
Thanks, it'd be good to get this one going as it's affecting production customers. |
Yep, this is a good one! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.75-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-12-20. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment summary:
|
Contributor has been paid, so all that remains is the BZ checklist. |
@JmillsExpensify, @mananjadhav, @luacmartins, @NJ-2020, @dubielzyk-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify, @mananjadhav, @luacmartins, @NJ-2020, @dubielzyk-expensify Huh... This is 4 days overdue. Who can take care of this? |
Apologies, I was out sick, still getting back. I think this would be more of a feature request than a bug. We're also reverting this in a separate issue so I think we don't need a regression test here. @JmillsExpensify I think this was involved in a regression. |
@JmillsExpensify, @mananjadhav, @luacmartins, @NJ-2020, @dubielzyk-expensify 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
@mananjadhav so you're saying that the correct payment summary is $125 each? |
Yes @JmillsExpensify. The payout should be $125 each. |
Updated above and processed the update via Upwork as well. |
Done |
Thanks so much for the quick response! |
@mananjadhav I'm going to close this for your part, though don't forget the BZ checklist before requesting payment. |
@JmillsExpensify Considering this is more towards a feature request and also being reverted, do we need a BZ checklist here? |
$250 approved for @mananjadhav |
Based on this internal Slack discussion, we've decided that the approve button should be grey when all expenses on a report are held. This
new feature
makes sense for a couple of reasons:Submit
when a workspace has automatic scheduled submit settingsAs a result, let's do the following:
In the report thread, let's make the
Approve
orPay
buttons grey when all expenses on that report are held. Here's an example.On the
Search
page, let's do the exact same thing, should a user end up seeing/finding this reports there instead.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensifyIssue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: