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

[$250] Category rules - Description for Individual expense in "Flags amount over" is truncated #48979

Closed
6 tasks done
IuliiaHerets opened this issue Sep 11, 2024 · 15 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 11, 2024

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: 9.0.32-1
Reproducible in staging?: Y
Reproducible in production?: N/A
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Rules feature is enabled.
  1. Go to staging.new.expensify.com
  2. Go to Workspace settings > Categories.
  3. Click on any category.
  4. Click Flag amounts over.
  5. Click Type.

Expected Result:

The description for Individual expense should not be truncated.
We can compare this long description with "Smart Limit" description in Expensify Card > Limit type page, which is not truncated.

Actual Result:

The description for Individual expense is truncated.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6599805_1726054315145.20240911_192708.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834225539612184157
  • Upwork Job ID: 1834225539612184157
  • Last Price Increase: 2024-09-12
Issue OwnerCurrent Issue Owner: @ikevin127
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 2024

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

Copy link

melvin-bot bot commented Sep 11, 2024

Triggered auto assignment to @arosiclair (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 11, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 11, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@nyomanjyotisa
Copy link
Contributor

Proposal

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

Description for Individual expense in "Flags amount over" is truncated

What is the root cause of that problem?

We don't pass isAlternateTextMultilineSupported here like we did here

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

Pass isAlternateTextMultilineSupported here

                <SelectionList
                    sections={[{data: expenseLimitTypes}]}
                    ListItem={RadioListItem}
                    onSelectRow={(item) => onExpenseLimitTypeSelected(item.value)}
                    shouldSingleExecuteRowSelect
                    containerStyle={[styles.pt3]}
                    initiallyFocusedOptionKey={currentExpenseLimitType}
                    isAlternateTextMultilineSupported
                />

What alternative solutions did you explore? (Optional)

@etCoderDysto
Copy link
Contributor

etCoderDysto commented Sep 11, 2024

Proposal

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

Description for Individual expense in "Flags amount over" is truncated

What is the root cause of that problem?

We are not passing isAlternateTextMultilineSupported and alternateTextNumberOfLines={0} here

<SelectionList
sections={[{data: expenseLimitTypes}]}
ListItem={RadioListItem}
onSelectRow={(item) => onExpenseLimitTypeSelected(item.value)}
shouldSingleExecuteRowSelect

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

Pass isAlternateTextMultilineSupported and alternateTextNumberOfLines={0}

<SelectionList
                    sections={[{data: expenseLimitTypes}]}
                    alternateTextNumberOfLines={0}
                    ListItem={RadioListItem}
                    onSelectRow={(item) => onExpenseLimitTypeSelected(item.value)}
                    shouldSingleExecuteRowSelect
                    containerStyle={[styles.pt3]}
                    initiallyFocusedOptionKey={currentExpenseLimitType}
                    isAlternateTextMultilineSupported

Note: If we don't pass alternateTextNumberOfLines={0}, the alternate text will be truncated to 2 lines

Result when we don't add alternateTextNumberOfLines={0 Screenshot 2024-09-11 at 3 20 15 in the afternoon
Result Screenshot 2024-09-11 at 3 18 09 in the afternoon

What alternative solutions did you explore? (Optional)

@arosiclair
Copy link
Contributor

Very minor so not a blocker

@arosiclair arosiclair added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2 labels Sep 11, 2024
@arosiclair
Copy link
Contributor

Looks like this was just implemented in #48171. @WojtekBoman can you clean this up?

@WojtekBoman
Copy link
Contributor

Sure, I'll fix that :)

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 12, 2024
@arosiclair arosiclair added the External Added to denote the issue can be worked on by a contributor label Sep 12, 2024
@melvin-bot melvin-bot bot changed the title Category rules - Description for Individual expense in "Flags amount over" is truncated [$250] Category rules - Description for Individual expense in "Flags amount over" is truncated Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

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

melvin-bot bot commented Sep 12, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 12, 2024
@arosiclair arosiclair assigned eh2077 and unassigned ikevin127 Sep 12, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 12, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

@arosiclair, @WojtekBoman, @VictoriaExpensify, @eh2077 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Sep 23, 2024

@arosiclair, @WojtekBoman, @VictoriaExpensify, @eh2077 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@VictoriaExpensify
Copy link
Contributor

@arosiclair - if this has been fixed here are we ok to close this out?

@arosiclair
Copy link
Contributor

Yeah looks like that PR fixed both issues. Lets leave the other issue to issue payment for the review.

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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

8 participants