Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.41k stars 2.8k forks source link

Chat - Quote markdown not applied for multiline text #48924

Closed IuliiaHerets closed 2 weeks ago

IuliiaHerets commented 3 weeks ago

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.31-8 Reproducible in staging?: Y Reproducible in production?: Y Issue reported by: Applause Internal Team

Action Performed:

  1. Launch app
  2. Open a chat
  3. Enter > and in next line enter a text Eg: > Ty
  4. Note in preview, quote markdown is displayed
  5. Send the message
  6. Note quote markdown not applied after sending message

    Expected Result:

    Quote markdown must be applied for multiline text.

Actual Result:

Quote markdown not applied for multiline text.

Workaround:

Unknown

Platforms:

Screenshots/Videos

https://github.com/user-attachments/assets/2bb5563c-f4cb-4a56-82e0-64689dc773fc

View all open jobs on GitHub

melvin-bot[bot] commented 3 weeks ago

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

IuliiaHerets commented 3 weeks ago

@kevinksullivan 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

IuliiaHerets commented 3 weeks ago

We think that this bug might be related to Live Markdown

ChavdaSachin commented 3 weeks ago

This is expected behavior except I caught an exceptional case. When a multiline link is sent as a message, the whole link is pressable . But when multiline link is sent with quote markdown, it breaks the link and looks like an unexpected behavior.

https://github.com/user-attachments/assets/3a8ed2c0-664b-40a5-8c40-41d51cf456eb

ChavdaSachin commented 3 weeks ago

Proposal

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

What is the root cause of that problem?

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

Before https://github.com/user-attachments/assets/cd7fd1ba-415d-4020-abcc-56bf0d4bfdb8
Result https://github.com/user-attachments/assets/65841a66-9147-4287-b13d-4a3c719a24bc

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

kevinksullivan commented 3 weeks ago

I don't think this is unexpected behavior if you go to a second line with no >... Maybe we'd remove the preview on the first line, if anything. But yeah, I'm not certain this is a bug. I am going OOO so I'm going to loop in another BZ, but perhaps we take it to product?

melvin-bot[bot] commented 3 weeks ago

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

melvin-bot[bot] commented 2 weeks ago

@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too...

JmillsExpensify commented 2 weeks ago

Yeah, I'm going to close given that markdown isn't a priority right now.