-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2024-06-05] Search - Expense preview with multiline description shows two spacings between each line #41587
Comments
Triggered auto assignment to @mallenexpensify ( |
We think that this bug might be related to #vip-vsp |
@mallenexpensify 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 |
Triggered auto assignment to @dannymcclain ( |
@dannymcclain , do you happen to know if this is expected behaviour? |
@mallenexpensify I don't think it's expected—I would imagine the LHN and search rows would look the same. At the same time, I would say this is extremely minor. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The multi-line description of an expense request shows extra spacing between lines on the search page, but not in LHN. What is the root cause of that problem?This issue happens after my PR here. In the PR, we are fixing an issue where the LHN subtitle is shown as multiline when we set the expense description to multiline by replacing all new line characters with a whitespace. Line 1630 in 2f5173c
The LINE_BREAK regex is then updated to consider a case where the new line character is Line 1879 in 2f5173c
But the new regex ( What changes do you think we should make in order to solve the problem?Update the LINE_BREAK regex replace both
we can optionally set the white-space back to pre for the LHN that gets removed in this PR |
Not overdue Melvin. |
@dannymcclain If we updated it so that Didn't show as OOOOOOOF... check this weirdness, it shows all the text in LHN then the second line gets removed for some reason 2024-05-07_12-02-56.mp4 |
Whoaaaa, that is weird haha. I totally agree that "fixing" it to just show In the video posted on the issue description, the LHN looks fine to me. The expense description is
And the LHN displays But the search row displays |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Bumping to weekly and adding |
cc @Expensify/design in case y'all have any strong feelings about this. (My feelings are all pretty mild right now.) |
Yeah agree, but very mild here too. I think showing it the preview on 1 line is desirable, but without double spaces. That being said it's an extremely minor issue |
Totally agree. |
Yup, similar feelings here as well. Interesting that we even allow multi-line descriptions though and render them that way on the preview card... just flagging @trjExpensify for vis |
I think for this one we have a cap at something like 40 characters or something like that, I can't recall exactly what it is but I remember it from before. |
As for the bug in the OP, I agree it's really minor. @bernhardoj has identified his PR that caused it though, so can't we fix it as a follow-up to remove the second white space in Search? @parasharrajat for the C+ review as well to keep both on it. |
I think updating the regex is a better solution. I think @bernhardoj's proposal works great. 🎀 👀 🎀 C+ reviewed |
What's the status of this? @dannymcclain @mallenexpensify |
PR is merged. |
I think we need a payment here? cc: @parasharrajat |
@carlosmiceli yes payment is pending. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-7 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 2024-06-05. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
@carlosmiceli , when contributors are assigned to the issue (or, in the rare instance where they're not but they reviewed the associated/linked PR) we want to keep the issue open for payment. The BZ will manage the payment as well as ensuring a TestRail case is created, when needed. |
My bad everyone, still learning some of the contributors' systems, thanks for the lesson @mallenexpensify 🙏 |
Payment Summary
BugZero Checklist (@mallenexpensify)
|
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:
Regression Test Steps
Do you agree 👍 or 👎 ? |
@bernhardoj can you please accept the job and reply here once you have? TR GH created, thanks @parasharrajat |
@mallenexpensify accepted! |
Contributor: @bernhardoj paid $250 via Upwork Thanks! |
Payment requested as per #41587 (comment) |
$250 approved for @parasharrajat |
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: 1.4.70-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The expense preview in search list will also show one spacing between each line
Actual Result:
The expense preview in search list alsos two spacings between each line
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6469800_1714725584145.20240503_163336.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: