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

[HOLD for payment 2023-11-09] [$500] Category-Long category is truncated although space available #30222

Closed
1 of 6 tasks
kavimuru opened this issue Oct 24, 2023 · 18 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Oct 24, 2023

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.89-2
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: Applause internal team
Slack conversation:

Action Performed:

  1. Launch app as employee
  2. Tap on Workplace chat
  3. Tap plus icon near compose
    4.Enter an amount
    5.Tap next
    6.Tap show more
    7.Tap category
    8.Select a long category "This: is: a: subcategory: with: lots: and: lots: of: levels: needALongerWordHereToTriggerTheLines"

Expected Result:

When user selects a long category, for all available space it should be displayed and must not be truncated.

Actual Result:

Long category selected is truncated although space available.

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
Bug6248096_1698100010021.truncated.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~017e161f72a3cab57e
  • Upwork Job ID: 1716617007537668096
  • Last Price Increase: 2023-10-24
@kavimuru kavimuru added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@melvin-bot melvin-bot bot changed the title Category-Long category is truncated although space available [$500] Category-Long category is truncated although space available Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 24, 2023

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

@pradeepmdk
Copy link
Contributor

pradeepmdk commented Oct 24, 2023

Proposal

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

Category-Long category is truncated although space available

What is the root cause of that problem?

due to textbreakstrategy word is truncated middle of so we need apply flex here

<MenuItemWithTopDescription

here we missed flex1 style

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

<MenuItemWithTopDescription

here we need to pass titleStyle={styles.flex1}

Result

Screenshot 2023-10-24 at 8 24 59 AM

@Krishna2323
Copy link
Contributor

Krishna2323 commented Oct 24, 2023

Proposal

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

Category-Long category is truncated although space available

What is the root cause of that problem?

This is a know issue in react native: Text is getting cut off in android for react native

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

We should add a titleStyle={styles.flex1} or titleStyle={{...props.titleStyle, ...styles.flex1}} prop to MenuItemWithTopDescription to eliminate the need to pass it each time we use the component. Many instances of MenuItemWithTopDescription are used without the flex1 style.

Result

text_clipped_category

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@jjcoffee
Copy link
Contributor

@pradeepmdk's proposal LGTM. We do the same for other MenutItems on the same page, so it makes sense to do it again for this one.

We could add it as a prop as @Krishna2323 suggested, but I think there's not much benefit to it (you still have to type out the prop, unless you have it as a default in which case I'd argue there's more value in requiring it to be actively set).

🎀👀🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 26, 2023

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 27, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 27, 2023
@pradeepmdk
Copy link
Contributor

@jjcoffee Pr is ready for review

@jjcoffee
Copy link
Contributor

Thanks! Will review on Monday 🙇

@pradeepmdk
Copy link
Contributor

@sophiepintoraetz can you help me get an upwork contract?

@sophiepintoraetz
Copy link
Contributor

@pradeepmdk - just wait until we hit the regression period - I see it's just merged.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Nov 2, 2023
@melvin-bot melvin-bot bot changed the title [$500] Category-Long category is truncated although space available [HOLD for payment 2023-11-09] [$500] Category-Long category is truncated although space available Nov 2, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 2, 2023
Copy link

melvin-bot bot commented Nov 2, 2023

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

Copy link

melvin-bot bot commented Nov 2, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.94-2 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 2023-11-09. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

Copy link

melvin-bot bot commented Nov 2, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@jjcoffee] The PR that introduced the bug has been identified. Link to the PR:
  • [@jjcoffee] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@jjcoffee] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@jjcoffee] Determine if we should create a regression test for this bug.
  • [@jjcoffee] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sophiepintoraetz] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@jjcoffee
Copy link
Contributor

jjcoffee commented Nov 2, 2023

  • The PR that introduced the bug has been identified. Link to the PR: N/A - looks like a missed case from the beginning
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • Determine if we should create a regression test for this bug. Yes - easy enough to test for!
  • If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Regression test proposal

  1. Set up a Workspace category that is long enough to exceed the screen width, e.g. "This: is: a: subcategory: with: lots: and: lots: of: levels: needALongerWordHereToTriggerTheLines"
  2. On newDot, go to the Workspace chat, tap the plus icon near the composer and request money.
  3. Enter any amount and tap next.
  4. Tap show more and then tap category.
  5. Select the long category from step 1.
  6. Verify that the category name displays with all available space filled and the rest being truncated.

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 8, 2023
@sophiepintoraetz
Copy link
Contributor

Offers sent!

@jjcoffee
Copy link
Contributor

jjcoffee commented Nov 9, 2023

Thanks @sophiepintoraetz! Just a heads up there were two offers sent, I've only accepted one 😉

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants