Skip to content

[HOLD for payment 2024-08-09] [Simple AA in NewDot] Support FORWARDED report action in NewDot #46241

Closed

Description

@Beamanator

cc @tgolen as this relates to your project: https://github.com/Expensify/Expensify/issues/396071

Actually i think this relates to mine, https://github.com/Expensify/Expensify/issues/393839

Problem:

Currently, we do not support showing the FORWARDED Report Action in NewDot. The report action currently is displayed like this in NewDot:

Screenshot 2024-07-25 at 2 42 08 PM

We started writing the code here, but it remains commented out

We need to implement this b/c we are bringing Control workspaces to NewDot. Report "Forwarding" happens when:

  1. Control workspace has "Advanced Approvals" enabled
  2. Submitter submits report to Approver
  3. Approver Forwards & Approves to Final approver

Solution:

Support it!

Issue OwnerCurrent Issue Owner: @mananjadhav

Activity

  1. added
    Daily
    NewFeature
    on Jul 25, 2024
  2. self-assigned this
    on Jul 25, 2024
  3. melvin-bot commented on Jul 25, 2024

    @melvin-bot

    Triggered auto assignment to @sakluger (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

  4. added
    Weekly
    and removed
    Daily
    on Jul 25, 2024
  5. melvin-bot commented on Jul 25, 2024

    @melvin-bot

    Triggered auto assignment to @shawnborton (Design), see these Stack Overflow questions for more details.

  6. Beamanator commented on Jul 25, 2024

    @Beamanator
    ContributorAuthor

    @shawnborton I tagged design here b/c I want to make sure we get the correct copy for showing the Forwarded report action in NewDot.

    The current copy in OldDot is: You approved and forwarded this report to <next approver>

    I don't think we want to mention the term "Forwarded" / forwarding concept in NewDot, we want to make it always read "Approve" IIRC, so I suggest one of these copies:

    1. approved $<amount> (this follows the existing APPROVED report action text)
    2. approved and passed to <next approver> for further approval
  7. moved this to Release 2: Summer 2024 (Aug) in #expensify-bugson Jul 25, 2024
  8. changed the title [-][Advanced Approval Workflows] Support `FORWARDED` report action in NewDot[/-] [+][Simple AA in NewDot] Support `FORWARDED` report action in NewDot[/+] on Jul 25, 2024
  9. 28 remaining items

  10. sakluger commented on Aug 8, 2024

    @sakluger
    Contributor

    I'll add the payment summary tomorrow. @mananjadhav, can you please propose regression test steps for this one?

  11. sakluger commented on Aug 9, 2024

    @sakluger
    Contributor

    Summarizing payment on this issue:

    Contributor+: @mananjadhav $250, please request on Newdot

  12. sakluger commented on Aug 9, 2024

    @sakluger
    Contributor

    @mananjadhav please also propose new regression test steps 🙏

  13. melvin-bot commented on Aug 9, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@sakluger)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  14. sakluger commented on Aug 12, 2024

    @sakluger
    Contributor

    @mananjadhav friendly bump to propose regression steps.

  15. sakluger commented on Aug 13, 2024

    @sakluger
    Contributor

    Manan is out, posting for Melvin.

  16. mananjadhav commented on Aug 14, 2024

    @mananjadhav
    Collaborator

    This is a new feature so we don't have an offending PR. I am not sure if we have regression tests managed centrally for this. But specifically for this issue we can take the steps from the PR.

    Regression Test Proposal

    1. In OldDot, create a Control policy with 3 members:

      1. The owner
      2. An approver (user role)
      3. An submitter (user role)
    2. In OldDot, make sure the policy has advanced approvals turned on (in the Members tab), with these settings:

      1. submitter has submitsTo set to the approver
      2. approver has approves to / forwardsTo set to the owner
    3. Make sure the policy has isPolicyExpenseChatEnabled set to true, by running this in the console when you have that policy open in OldDot:

      p = Policy.getCurrent();
      p.policy.isPolicyExpenseChatEnabled = true;
      p.save();
      
    4. In OldDot, as the Submitter, create a report & add an expense to it, then submit the report.

    5. As the approver, log in to both OldDot & NewDot in separate tabs

    6. As the approver, in OldDot, "Approve & Forward" the report

    7. Verify that in NewDot, the report action approved $<amount shows up live both in the report & in the LHN

    8. While in OldDot the report action reads "Approved and forwarded to ..." but we agreed we just want it to say approved $<amount in NewDot.

    9. For the report action item, right-click the item and click on Copy to clipboard. Verify on paste it shows approved $<amount.

    cc - @Beamanator @sakluger

  17. JmillsExpensify commented on Aug 14, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @mananjadhav

  18. sakluger commented on Aug 14, 2024

    @sakluger
    Contributor

    Awesome, thanks Manan!

  19. moved this from Release 2: Summer 2024 (Aug) to Done in #expensify-bugson Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyDesignEngineeringNewFeature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions