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.54k stars 2.88k forks source link

[HOLD for payment 2024-09-26] [$250] [Dupe Detection] Review duplicates - Tag in X: Y format is displayed in X\: Y format in review flow #47615

Closed IuliiaHerets closed 1 month ago

IuliiaHerets commented 2 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: v9.0.21-3 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit an expense without tag.
  4. Submit another same expense as the previous one, but with tag in X: Y format.
  5. Go to transaction thread.
  6. Click Review duplicates.
  7. Select Keep this one (any).
  8. Proceed to tag selection page.

Expected Result:

Tag in X: Y format will be displayed in X: Y format in review flow.

Actual Result:

Tag in X: Y format is displayed in X\: Y format in review flow.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/3be21d19-b66b-4b37-a877-0a84f7596dd5

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0176ca0a6294fa423b
  • Upwork Job ID: 1826096228342537444
  • Last Price Increase: 2024-08-21
  • Automatic offers:
    • etCoderDysto | Contributor | 103689450
Issue OwnerCurrent Issue Owner: @getusha
melvin-bot[bot] commented 2 months ago

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

IuliiaHerets commented 2 months ago

We think that this bug might be related to #wave-collect - Release 2

IuliiaHerets commented 2 months ago

@stephanieelliott FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

etCoderDysto commented 2 months ago

Proposal

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

Tag in X: Y format is displayed in X\: Y format in review flow

What is the root cause of that problem?

We are passing a tag that is formatted in X\: Y without removing the \ here to text prop of options object here https://github.com/Expensify/App/blob/62722e8bc636f1be2e2c9e8e980aac93b76804c9/src/pages/TransactionDuplicate/ReviewTag.tsx#L23-L30 Then ReviewFields will use the text prop to render the X\: Y formatted tag https://github.com/Expensify/App/blob/62722e8bc636f1be2e2c9e8e980aac93b76804c9/src/pages/TransactionDuplicate/ReviewTag.tsx#L45-L48

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

Using PolicyUtils.getCleanedTagName(), we should remove \ from X\: Y tag before passing it to ReviewFields here

 {
      text: PolicyUtils.getCleanedTagName(tag),
      value: tag,
},

What alternative solutions did you explore? (Optional)

melvin-bot[bot] commented 2 months ago

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

melvin-bot[bot] commented 2 months ago

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

raza-ak commented 2 months ago

Proposal

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

Tag in X: Y format is displayed in X\: Y format in review flow

What is the root cause of that problem?

There are two issues.

  1. [Frontend] When users create a tag then escapeTagName function is appending // before colon in the tag name before sending request to server. -1-New-Expensify.webm

    image
  2. [Backend] I tested by removing the // from the tag name but // is still appending to the tab name.

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

  1. We donโ€™t need to call escapeTagName function and send the user provided tag name to server.
  2. I tested by removing the // from the tag name but // is still appending to the tab name. So we need to fix this issue from backend as well.
getusha commented 2 months ago

cc @bernhardoj this looks related to https://github.com/Expensify/App/pull/46556

bernhardoj commented 2 months ago

It's not. We're not cleaning the tag name as @etCoderDysto suggested.

getusha commented 2 months ago

@etCoderDysto's proposal looks good to me. ๐ŸŽ€ ๐Ÿ‘€ ๐ŸŽ€ C+ Reviewed!

melvin-bot[bot] commented 2 months ago

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

melvin-bot[bot] commented 2 months ago

๐Ÿ“ฃ @etCoderDysto ๐ŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role ๐ŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review ๐Ÿง‘โ€๐Ÿ’ป Keep in mind: Code of Conduct | Contributing ๐Ÿ“–

etCoderDysto commented 2 months ago

PR will be ready for review soon

melvin-bot[bot] commented 2 months ago

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

puneetlath commented 2 months ago

@etCoderDysto how's the PR coming?

etCoderDysto commented 2 months ago

Hi @puneetlath. Sorry, I am OOO until the coming Monday. PR will be ready for review on Monday.

melvin-bot[bot] commented 2 months ago

@puneetlath @stephanieelliott @getusha @etCoderDysto 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!

etCoderDysto commented 2 months ago

PR will be ready for review by tomorrow

etCoderDysto commented 2 months ago

@getusha PR is ready for review

stephanieelliott commented 2 months ago

PR is still under active review

stephanieelliott commented 1 month ago

PR was merged to main

stephanieelliott commented 1 month ago

PR was deployed to prod on 9/19 but it looks like the automation didn't work. Updating manually to add payment date

melvin-bot[bot] commented 1 month ago

This issue has not been updated in over 15 days. @puneetlath, @stephanieelliott, @getusha, @etCoderDysto 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!

stephanieelliott commented 1 month ago

Summarizing payment on this issue:

garrettmknight commented 1 month ago

$250 approved for @getusha