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

[Due for payment 2025-02-19] [$250] Strange next steps message format "Waiting for Your expense(s) to automatically submit on the 5th of each month". #53773

Open
1 of 8 tasks
m-natarajan opened this issue Dec 9, 2024 · 52 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Dec 9, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


**Version Number:**9.0.72-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @jamesdeanexpensify
Slack conversation (hyperlinked to channel name): #expense

Action Performed:

Prerequisite: Delay submission enabled and set to monthly with a date, 5th in this case

  1. Submit an expense to a workspace

Expected Result:

Next step displayed as "Waiting for your expense(s) to automatically submit on the 5th of each month"

Actual Result:

Next step displayed as "Waiting for Your expense(s) to automatically submit on the 5th of each month".

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021866438997228157381
  • Upwork Job ID: 1866438997228157381
  • Last Price Increase: 2024-12-17
  • Automatic offers:
    • nkdengineer | Contributor | 105414364
Issue OwnerCurrent Issue Owner: @garrettmknight
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 9, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

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

@m-natarajan m-natarajan changed the title Strange next steps message format "Waiting for **Your** expense(s) to automatically submit on the 5th of each month". Strange next steps message format "Waiting for Your expense(s) to automatically submit on the 5th of each month". Dec 9, 2024
@Shahidullah-Muffakir
Copy link
Contributor

Shahidullah-Muffakir commented Dec 9, 2024

Edited by proposal-police: This proposal was edited at 2024-12-09 19:06:44 UTC.

Proposal

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

Your is shown in bold if the Scheduled submit is enabled

What is the root cause of that problem?

The type is bold here:

text: `${ownerDisplayName}`,
type: 'strong',

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

I think we can change it to this:
type: ownerAccountID !== currentUserAccountID ? 'strong' : undefined,

and also change the Your to your here;

content = nextPart?.text === `'s` ? 'Your' : 'You';

and for this issue #53773 (comment):
change this to same like above:
change You to you here:

content = nextPart?.text === `'s` ? 'Your' : 'You';

and change this:

switch (predictedNextStatus) {
// Generates an optimistic nextStep once a report has been opened
case CONST.REPORT.STATUS_NUM.OPEN:
// Self review
optimisticNextStep = {
type,
icon: CONST.NEXT_STEP.ICONS.HOURGLASS,
message: [
{
text: 'Waiting for ',
},
{
text: `${ownerDisplayName}`,
type: 'strong',
clickToCopyText: ownerAccountID === currentUserAccountID ? currentUserEmail : '',
},
{
text: ' to ',
},
{
text: 'add',
},
{
text: ' %expenses.',

            message: [
                    {
                        text: 'Waiting for ',
                    },
                    {
                        text: `${ownerDisplayName}`,
                        type: ownerAccountID !== currentUserAccountID ? 'strong' : undefined,
                        clickToCopyText: ownerAccountID === currentUserAccountID ? currentUserEmail : '',
                    },
                    {
                        text: ' to ',
                    },
                    {
                        text: 'add',
                    },
                    {
                        text: ' %expenses',
                    },
                ],

@jamesdeanexpensify
Copy link
Contributor

Just to clarify - we also want it to be lower-case your (instead of Your), thanks!

@nkdengineer
Copy link
Contributor

nkdengineer commented Dec 9, 2024

Edited by proposal-police: This proposal was edited at 2024-12-09 19:04:16 UTC.

Proposal

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

Next step displayed as "Waiting for Your expense(s) to automatically submit on the 5th of each month".

What is the root cause of that problem?

We have 2 problems here

  1. In the function parseMessage we are set with upper-case 'Your' and 'You'

content = nextPart?.text === `'s` ? 'Your' : 'You';

2. And we set type 'strong' for text ownerDisplayName

type: 'strong',

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

  1. We should change this to your and you
            content = nextPart?.text === `'s` ? 'your' : 'you';

content = nextPart?.text === `'s` ? 'Your' : 'You';

  1. We can change this type to undefined in case it's 'your'
    type: ownerAccountID !== currentUserAccountID ? 'strong' : undefined,

type: 'strong',

  1. It looks like BE is still returning type as strong while we have updated type in optimisticNextStep to undefined so we also need to BE fix in this case.

The result after change in offline mode

Screenshot 2024-12-10 at 02 32 53

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

What alternative solutions did you explore? (Optional)

Optional: we can remove tagType = 'strong' here

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@jamesdeanexpensify
Copy link
Contributor

Would it also be possible to fix the below as part of this, as well?

  • Change You to you and remove the period at the end
image

@nkdengineer
Copy link
Contributor

updated proposal

@garrettmknight garrettmknight moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Dec 10, 2024
@garrettmknight garrettmknight added the External Added to denote the issue can be worked on by a contributor label Dec 10, 2024
@melvin-bot melvin-bot bot changed the title Strange next steps message format "Waiting for Your expense(s) to automatically submit on the 5th of each month". [$250] Strange next steps message format "Waiting for Your expense(s) to automatically submit on the 5th of each month". Dec 10, 2024
Copy link

melvin-bot bot commented Dec 10, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 10, 2024
Copy link

melvin-bot bot commented Dec 10, 2024

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

@getusha
Copy link
Contributor

getusha commented Dec 12, 2024

@jamesdeanexpensify do we want to keep the styling bold?

@jamesdeanexpensify
Copy link
Contributor

I think in the your case no, in the you case yes. Does that make sense?

@nkdengineer
Copy link
Contributor

Change You to you and remove the period at the end

@jamesdeanexpensify i see all the next steps have a period at the end. Should we delete it in this case?

@melvin-bot melvin-bot bot added the Overdue label Dec 15, 2024
@jamesdeanexpensify
Copy link
Contributor

Good shout! Let's keep the period. I was mixing it up with system messages. Thanks!

Copy link

melvin-bot bot commented Dec 16, 2024

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

Copy link

melvin-bot bot commented Dec 17, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Dec 18, 2024

@garrettmknight, @getusha Huh... This is 4 days overdue. Who can take care of this?

@getusha
Copy link
Contributor

getusha commented Dec 18, 2024

@nkdengineer's proposal looks good to me. they were the first one to provide a complete proposal.
🎀 👀 🎀 C+ Reviewed!

Copy link

melvin-bot bot commented Dec 18, 2024

Triggered auto assignment to @mjasikowski, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@jamesdeanexpensify
Copy link
Contributor

Sorry - just to confirm, my preference is to not bold your, but still bold whenever a name/email/phone is used. But if that requires too much work, fine to bold it for now!

Copy link

melvin-bot bot commented Jan 8, 2025

@garrettmknight, @mjasikowski, @getusha, @nkdengineer 10 days overdue. I'm getting more depressed than Marvin.

Copy link

melvin-bot bot commented Jan 10, 2025

@garrettmknight, @mjasikowski, @getusha, @nkdengineer 12 days overdue now... This issue's end is nigh!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jan 13, 2025
Copy link

melvin-bot bot commented Jan 13, 2025

This issue has not been updated in over 14 days. @garrettmknight, @mjasikowski, @getusha, @nkdengineer eroding to Weekly issue.

@melvin-bot melvin-bot bot removed the Overdue label Jan 13, 2025
@mjasikowski
Copy link
Contributor

@nkdengineer @getusha friendly bump

@nkdengineer
Copy link
Contributor

thanks @mjasikowski, i'll open PR soon

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Jan 14, 2025
@jamesdeanexpensify
Copy link
Contributor

Just saw this one pop up again - where at we at with this? Thanks!

Image

@mjasikowski
Copy link
Contributor

@nkdengineer any ETA on the PR?

@nkdengineer
Copy link
Contributor

@mjasikowski we have open PR here and waiting for @getusha review

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Feb 6, 2025
Copy link

melvin-bot bot commented Feb 6, 2025

This issue has not been updated in over 15 days. @garrettmknight, @mjasikowski, @getusha, @nkdengineer eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@jamesdeanexpensify
Copy link
Contributor

I think we can probably move this back to Weekly since the PR is moving along.

@jamesdeanexpensify jamesdeanexpensify added Weekly KSv2 and removed Monthly KSv2 labels Feb 6, 2025
@garrettmknight
Copy link
Contributor

Huh, shouldn't have eroded with Reviewing I thought.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 12, 2025
@melvin-bot melvin-bot bot changed the title [$250] Strange next steps message format "Waiting for Your expense(s) to automatically submit on the 5th of each month". [Due for payment 2025-02-19] [$250] Strange next steps message format "Waiting for Your expense(s) to automatically submit on the 5th of each month". Feb 12, 2025
Copy link

melvin-bot bot commented Feb 12, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 12, 2025
Copy link

melvin-bot bot commented Feb 12, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.96-1 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 2025-02-19. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Feb 12, 2025

@getusha @garrettmknight @getusha The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

7 participants