-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
LHN - Message preview doesn't treat new line as space #2965
Comments
Triggered auto assignment to @zanyrenney ( |
This might overlap with the discussion elsewhere about getting rid of the
"text" version of the message stored in the reportAction, and just
generating a stripped version of the HTML "on demand". During this
stripping process, we can just ignore newlines.
…On Mon, May 17, 2021 at 9:13 AM MelvinBot ***@***.***> wrote:
Triggered auto assignment to @zanyrenney <https://github.com/zanyrenney> (
AutoAssignerTriage), see
https://stackoverflow.com/c/expensify/questions/4749 for more details.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2965 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEMNUWEQDVZVRAEHEHHAFTTOFTGRANCNFSM45BBNLSQ>
.
|
Triggered auto assignment to @tgolen ( |
Looks like a good contributor issue. |
Triggered auto assignment to @jliexpensify ( |
Can confirm this is happening on v1.0.48-0: Will get this to Upwork. p.s. Puneet brought up the issue here - https://expensify.slack.com/archives/C01GTK53T8Q/p1621222051218200 |
I thought maybe we could build this into |
Posted to upwork: https://www.upwork.com/jobs/~01335a9f088d223b91 |
Here is my proposal.
const lastMessageText = lodashGet(lastReportAction, ['message', 'html'], '').replace(/(<(br[^>]*)>)/gi, ' ').replace(/(<([^>]+)>)/gi, ''); will just do the trick. This . |
This is very much related to #2847Proposal 📄Message preview should display a space if there is a new line in the message. Investigation 🕵🏻♂️Approach 👨🏼💻File of concern :
Best Practices 💃🏼
Testing Strategy 🧪
Expected Delivery Time 📦Approx 1 week. Previous Experience 🙅🏼♂️ |
That solution looks good @parasharrajat 👍 |
I'll let @tgolen weigh in though as he is assigned to the PR. I think this is something that would happen in the server eventually if we move to reduce processing logic for API data in the client. |
Then it makes sense |
Yep, I think it's OK for now. That logic isn't going anywhere today. If/when it's moved to the server-side then this replacement will come along with the logic. |
@tgolen Are you giving me a 🟢 signal? PR is one-click away? |
Yep! 🟢 Click away on your PR! |
Thanks @tgolen - I'll go ahead and hire @parasharrajat |
Looks like PR is blocked atm, will check again later. |
PR approved and deployed 6 hours ago |
@jliexpensify which PR? mine is still open. |
Sorry for the confusion @parasharrajat - I was referring to this one: https://github.com/Expensify/Web-Expensify/pull/31071 It looks like that PR has been deployed, and should have a flow-on effect for your PR to be unblocked soon. |
Contributor paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Message preview should display a space if there is a new line in the message.
Actual Result:
Message preview doesn't treat new line as space
Action Performed:
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
Web ✔️
iOS
Android
Desktop App
Mobile Web
Version Number: 1.0.47-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
View all open jobs on Upwork
From @puneetlath https://expensify.slack.com/archives/C01GTK53T8Q/p1621222051218200
The text was updated successfully, but these errors were encountered: