Skip to content

[$250] Request/split money description preview is not truncated #29459

Closed

Description

@m-natarajan

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.3.83-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696863093475949

Action Performed:

  1. Go to a chat with another person.
  2. Click on request money.
  3. Enter an amount.
  4. Enter a very long description.
  5. Go to the request preview

Expected Result:

The request preview should be truncated to include limited text

Actual Result:

The request preview is not truncated and can include a very big description

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Screen.Recording.2023-10-12.at.6.13.15.PM.mov
Android: mWeb Chrome
Screen.Recording.2023-10-12.at.6.15.36.PM.mov
iOS: Native
Screen.Recording.2023-10-12.at.6.14.41.PM.mov
iOS: mWeb Safari
RPReplay_Final1697114918.MP4
MacOS: Chrome / Safari
Screen.Recording.2023-10-09.at.8.19.12.PM.mov
Description.mp4
MacOS: Desktop
Screen.Recording.2023-10-12.at.6.12.08.PM.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a4eeb2d00d152256
  • Upwork Job ID: 1712488709391478784
  • Last Price Increase: 2024-03-06
  • Automatic offers:
    • situchan | Contributor | 27221035
    • esh-g | Reporter | 27221037

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 12, 2023
  2. changed the title [-]Request/split money description preview is not truncated[/-] [+][$500] Request/split money description preview is not truncated[/+] on Oct 12, 2023
  3. melvin-bot commented on Oct 12, 2023

    @melvin-bot
  4. melvin-bot commented on Oct 12, 2023

    @melvin-bot

    Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 12, 2023
  6. melvin-bot commented on Oct 12, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. saranshbalyan-1234 commented on Oct 12, 2023

    @saranshbalyan-1234
    Contributor

    Proposal

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

    Request/split money description preview is not truncated

    What is the root cause of that problem?

    The root cause of the problem is that we have not passed numberOfLines prop to the Text element of description here.

    {shouldShowDescription && <Text style={[styles.colorMuted]}>{description}</Text>}

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

    We can pass on prop that is numberOfLines to whatever lines we would prefer. in most of the places in app it is 1, as this is description we can consider more as well.
    Changes will be mage accordingly
    The solution would look something like this

    <Text style={[styles.colorMuted]} numberOfLines={1}>{description}</Text>

    Result
    https://github.com/Expensify/App/assets/57568571/2930df08-e2aa-41e4-9459-550d9d2c5efc

    What alternative solutions did you explore? (Optional)

    N/A

  8. melvin-bot commented on Oct 12, 2023

    @melvin-bot

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

  9. m-natarajan commented on Oct 12, 2023

    @m-natarajan
    Author

    Proposal by @esh-g

    Please re=state the problem

    Request/split money description preview is not truncated

    What is the root cause of the problem?

    There is no logic to truncate the description preview in request/split money.

    What changes should be made to fix this?

    We should add the numberOfLines={3} attribute to the Text components for description as well as merchant in MoneyRequestPreview.js.

    <Text style={[styles.textLabelSupporting, styles.mb1, styles.lh20, styles.breakWord]}>{requestMerchant}</Text>

    {shouldShowDescription && <Text style={[styles.colorMuted]}>{description}</Text>}

    setting the max lines to 3 is only a suggestion, but we can set it to any desirable number

  10. esh-g commented on Oct 12, 2023

    @esh-g
    Contributor

    This is a bug as mentioned here: #28073 (comment), so we should work on this

  11. youssef-lr commented on Oct 13, 2023

    @youssef-lr
    Contributor

    Closing in favor of #28073

  12. 34 remaining items

  13. zanyrenney commented on Nov 6, 2023

    @zanyrenney
    Contributor

    Thanks @youssef-lr !

  14. melvin-bot commented on Nov 30, 2023

    @melvin-bot

    This issue has not been updated in over 15 days. @joelbettner, @zanyrenney, @esh-g, @situchan 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!

  15. esh-g commented on Jan 8, 2024

    @esh-g
    Contributor

    I would once ask to reconsider the bounty on this one since it ended up taking a lot longer than expected mainly due to input delays... and it wasn't such a minor bug as expected...

  16. esh-g commented on Jan 20, 2024

    @esh-g
    Contributor

    gentle bump @zanyrenney @situchan on the above ^

  17. zanyrenney commented on Mar 6, 2024

    @zanyrenney
    Contributor

    @youssef-lr, please can you review as Joel has left, and I'd like an engineer's input. I'm assigning you to take a look, please!

  18. changed the title [-][$125] Request/split money description preview is not truncated[/-] [+][$250] Request/split money description preview is not truncated[/+] on Mar 6, 2024
  19. melvin-bot commented on Mar 6, 2024

    @melvin-bot

    Upwork job price has been updated to $250

  20. youssef-lr commented on Mar 6, 2024

    @youssef-lr
    Contributor

    Makes sense @esh-g, adjusted.

  21. zanyrenney commented on Mar 6, 2024

    @zanyrenney
    Contributor

    thanks @youssef-lr ❤️

  22. zanyrenney commented on Mar 6, 2024

    @zanyrenney
    Contributor

    payment summary
    paid @esh-g - $250
    paid @situchan $250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2ReviewingHas a PR in review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions