Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.53k stars 2.88k forks source link

[$250] Next steps are incorrect when there is no approval on a report #42834

Closed m-natarajan closed 5 days ago

m-natarajan commented 5 months ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.77-3 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: @kevinksullivan Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1717026958410769

Action Performed:

  1. Set up workspace with no approvals configured
  2. assign expensify card to a member on that workspace
  3. Incur a card transaction

Expected Result:

The next steps read should show:

Header: "Finished!" Subheader: "No further action required!"

Actual Result:

Next steps say this report needs approval.

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

image (4)

image (3)

Snip - (72) New Expensify - Google Chrome (2)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017287c932cce9e705
  • Upwork Job ID: 1797365106853683200
  • Last Price Increase: 2024-08-08
  • Automatic offers:
    • alitoshmatov | Reviewer | 103271393
melvin-bot[bot] commented 5 months ago

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

melvin-bot[bot] commented 5 months ago

Job added to Upwork: https://www.upwork.com/jobs/~017287c932cce9e705

melvin-bot[bot] commented 5 months ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

MitchExpensify commented 5 months ago

What do you think the header should say @kevinksullivan ? Something like this?;

"Waiting for approval."

melvin-bot[bot] commented 5 months ago

@MitchExpensify, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] commented 5 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] commented 5 months ago

@MitchExpensify, @alitoshmatov 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

MitchExpensify commented 5 months ago

Going to make a call and suggest we remove next steps entirely in this situation so I've updated the OP accordingly.

Waiting on proposals at this point πŸ‘€

MitchExpensify commented 5 months ago

What wave collect status do you think this one fits under @trjExpensify ?

trjExpensify commented 5 months ago

Hm, is this part of the pending/scanning implementation? @kevinksullivan didn't we talk about this one using the "finished" terminology for the closed non-reimbursable reports?

melvin-bot[bot] commented 5 months ago

@MitchExpensify, @alitoshmatov Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

MitchExpensify commented 5 months ago

Bumping Slack thread here https://expensify.slack.com/archives/C049HHMV9SM/p1718225472265049?thread_ts=1717026958.410769&cid=C049HHMV9SM

melvin-bot[bot] commented 4 months ago

@MitchExpensify @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

MitchExpensify commented 4 months ago

Updated the expected behavior based on the slack conversation

We need proposals now

melvin-bot[bot] commented 4 months ago

@MitchExpensify, @alitoshmatov 10 days overdue. I'm getting more depressed than Marvin.

melvin-bot[bot] commented 4 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

MitchExpensify commented 4 months ago

I feel like this might be hot pick worthy, what d'you reckon @trjExpensify ?

alitoshmatov commented 4 months ago

assign expensify card to a member on that workspace

I think we are not going to have any proposals since it requires expensify card

trjExpensify commented 4 months ago

I feel like this might be hot pick worthy, what d'you reckon @trjExpensify ?

It's external isn't it? @grgia any idea how someone can use dev to simulate what we're asking for here in the OP?

grgia commented 4 months ago

@trjExpensify I believe this is known cc @kevinksullivan

but the solution is to not soley base next steps off of report state, since the report can be in processing state and not require next steps. For this case, we would also want to check if the report has only non reimbursable transactions

trjExpensify commented 4 months ago

@trjExpensify I believe this is known cc @kevinksullivan

As in, there's another issue for it? This is an issue that was reported by Kevin, so maybe it's this?

melvin-bot[bot] commented 4 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] commented 4 months ago

@MitchExpensify, @grgia, @alitoshmatov Huh... This is 4 days overdue. Who can take care of this?

MitchExpensify commented 4 months ago

Yeah I think this is the only issue for this after a search

grgia commented 4 months ago

I think this is an internal issue, we likely need to update the nextSteps for this report to be finished if the report contains only non-reimbursable expenses. Next steps were implemented in the Drafts project. cc @mountiny if you have any quick input on where we'd need to add that check

@kevinksullivan @trjExpensify what is the expected header for this? / Does it also depend on policy type?

mountiny commented 4 months ago

@grgia is this only optimistic issue? So when we load the next steps from server its correct?

If its coming incorrect from the server this is already an OldDot issue that we would need to fix in Web (same next steps would show up in oldDot)

trjExpensify commented 4 months ago

Looking at the screenshot in the OP:

image (4)

Both of those transactions on the report look like they're pending, so should the expected results really be to use the "Finished" next steps in this case?

In the doc it looks like we have a specific next step message for that case, which I would assume we want to copy to the report level when all expenses on the report are pending transactions?

image

@kevinksullivan it might be an idea if you could just list out the next steps and the cases in this issue for the expected results.

MitchExpensify commented 4 months ago

Not overdue, Melvin - Actively being worked on.

mountiny commented 4 months ago

In the doc it looks like we have a specific next step message for that case, which I would assume we want to copy to the report level when all expenses on the report are pending transactions?

I think those still have to be added, I dont see them in the NextStep in Web, not even for the expense level.

That being said, I think we are not using the expense level next steps in Newdot. So you would have to add it to the report level to show it

melvin-bot[bot] commented 4 months ago

@MitchExpensify @grgia @alitoshmatov this issue is now 4 weeks old, please consider:

Thanks!

melvin-bot[bot] commented 4 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

grgia commented 4 months ago

I think we are not using the expense level next steps in Newdot. So you would have to add it to the report level to show it

@mountiny could you expand on this?

grgia commented 4 months ago

bump on above @mountiny

mountiny commented 4 months ago

@grgia in OldDot, you can have 2 next steps messages. One is shown in the expense report level and another next step information can be shown in the detail of transaction/ expense.

There are not many of these expenseMessages; you can see one here, for example.

We only show the nextStep.message in Newdot, not the expenseMessage

I think to show this message in the transaction thread image we should not use report next steps, but rather use logic that tells us that the expense is still pending to show this message.

melvin-bot[bot] commented 4 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

MitchExpensify commented 4 months ago

Did that resolve your question @grgia ? Do we need anything else at this point to solicit proposals based on the OP?

grgia commented 4 months ago

@MitchExpensify nothing is blocking proposals as is

melvin-bot[bot] commented 3 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

grgia commented 3 months ago

waiting for proposals melvin

MitchExpensify commented 3 months ago

Reassigning as I'm heading on leave imminently πŸ™‡

melvin-bot[bot] commented 3 months ago

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

melvin-bot[bot] commented 3 months ago

@anmurali, @grgia, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] commented 3 months ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

grgia commented 3 months ago

open for proposals

pasyukevich commented 3 months ago

Hi, I'm Eugene from Callstack - expert contributor group. I’d like to work on this issue.

trjExpensify commented 3 months ago

Assigned!

melvin-bot[bot] commented 3 months ago

πŸ“£ @alitoshmatov πŸŽ‰ An offer has been automatically sent to your Upwork account for the Reviewer role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job

grgia commented 3 months ago

@pasyukevich thanks for taking this one! Let me know if you need anything

pasyukevich commented 3 months ago

@grgia Could you please provide more details on how to reproduce this issue? I was able to add a card to the workspace without needing approval and successfully submitted an expense. However, I do not see the next steps text here. Maybe I am missing something.

melvin-bot[bot] commented 3 months ago

@anmurali, @pasyukevich, @grgia, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!