Skip to content
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

Update report next steps copy #55471

Open
jamesdeanexpensify opened this issue Jan 20, 2025 · 2 comments
Open

Update report next steps copy #55471

jamesdeanexpensify opened this issue Jan 20, 2025 · 2 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@jamesdeanexpensify
Copy link
Contributor

Background

Coming from this conversation, there are some incorrect next steps showing on reports. We need to fix that.

Details

The two updates below should be made to both NewDot and OldDot:

  • The next steps on an empty report should read Waiting for <user> to add expense(s).
  • The next steps on an open report with scheduled/delayed submit set to manual should read Waiting for <user> to submit expense(s).

Screenshot

Here's an example of where the next steps are incorrect in NewDot currently:

Image
@jamesdeanexpensify jamesdeanexpensify added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff labels Jan 20, 2025
Copy link

melvin-bot bot commented Jan 20, 2025

Triggered auto assignment to @CortneyOfstad (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.

@mkzie2
Copy link
Contributor

mkzie2 commented Jan 20, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-01-20 05:50:49 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

  • The next steps on an empty report should read Waiting for to add expense(s).
  • The next steps on an open report with scheduled/delayed submit set to manual should read Waiting for to submit expense(s).

What is the root cause of that problem?

Feature update

What changes do you think we should make in order to solve the problem?

For this case:

case CONST.REPORT.STATUS_NUM.OPEN:
// Self review
optimisticNextStep = {

  1. The empty report has been handled by default.

  2. Add a condition for open report with scheduled/delayed submit set to manual:

!harvesting?.enabled && autoReportingFrequency === CONST.POLICY.AUTO_REPORTING_FREQUENCIES.IMMEDIATE

And modify optimisticNextStep.message to Waiting for <user> to submit expense(s).

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

Update the NextStepUtilsTest for the default (the (1)) case here and the manual submit case here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
Status: No status
Development

No branches or pull requests

3 participants