Skip to content

[HOLD for payment 2024-07-22] [Unapprove in NewDot - Collect] Show Unapprove btn, add Confirm modal, call API endpoint #44066

Description

@Beamanator

Tracking issue: https://github.com/Expensify/Expensify/issues/384891

Note: This issue can't be MERGED until https://github.com/Expensify/Expensify/issues/406171 is finished. But it can be started while that other issue is WIP 🙏

Design doc sections:

  1. Show “Unapprove” button in NewDot
  2. Add new use of component ConfirmModal
  3. Create function unapproveExpenseReport in NewDot

Goals:

  1. Show the Unapprove button to the correct people at the correct time in the correct place
  2. When user clicks the button, show new ConfirmModal IFF report has been exported to connected accounting
    package
    • Note: I probably need to add more details about when this needs to get shown
  3. Call new API endpoint, UnapproveExpenseReport
    • Unapproving is Offline Pattern B

Note: For the "show warning modal if report has already been exported to accounting package" stuff, don't implement that here! That will be covered in #44884

Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @isabelastisser

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions