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] [Live Markdown] Does not recognize blank quoted lines #41107

Closed
thienlnam opened this issue Apr 26, 2024 · 41 comments
Closed

[$250] [Live Markdown] Does not recognize blank quoted lines #41107

thienlnam opened this issue Apr 26, 2024 · 41 comments
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

Comments

@thienlnam
Copy link
Contributor

thienlnam commented Apr 26, 2024

Live markdown does not recognize blank quoted lines
Actual
image

Expected
image

cc @tomekzaw

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ad3446a3440e57ed
  • Upwork Job ID: 1783911251734421504
  • Last Price Increase: 2024-05-10
  • Automatic offers:
    • hungvu193 | Reviewer | 0
@thienlnam thienlnam 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 Apr 26, 2024
@thienlnam thienlnam self-assigned this Apr 26, 2024
@melvin-bot melvin-bot bot changed the title [Live Markdown] Does not recognize blank quoted lines [$250] [Live Markdown] Does not recognize blank quoted lines Apr 26, 2024
Copy link

melvin-bot bot commented Apr 26, 2024

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

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

melvin-bot bot commented Apr 26, 2024

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

Copy link

melvin-bot bot commented Apr 26, 2024

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

@skyweb331
Copy link
Contributor

skyweb331 commented Apr 26, 2024

Duplicated issue #40571

#41110 (comment)

cc @jjcoffee

@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

@trjExpensify, @hungvu193, @thienlnam Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@hungvu193
Copy link
Contributor

@jjcoffee Can you confirm the above comment?

@melvin-bot melvin-bot bot removed the Overdue label May 1, 2024
@jjcoffee
Copy link
Contributor

jjcoffee commented May 1, 2024

@hungvu193 This is not a duplicate as far as I can tell, the other issue doesn't relate to Live Markdown.

@skyweb331
Copy link
Contributor

skyweb331 commented May 1, 2024

@hungvu193 I am sorry. #40571 is to parse HTML to MarkDown correctly.
This issue is parsing Markdown to HTML and after finishing edit, it is saved correctly. Just live preview does not show correctly.

@skyweb331
Copy link
Contributor

skyweb331 commented May 1, 2024

As far as I investigated, this is related to https://github.com/Expensify/react-native-live-markdown which is developed by software-mansion

Copy link

melvin-bot bot commented May 3, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label May 3, 2024
@KartikeyNamdev
Copy link

To fix this, you can try inserting an invisible character in place of the empty line.

Copy link

melvin-bot bot commented May 5, 2024

📣 @KartikeyNamdev! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@hungvu193
Copy link
Contributor

To fix this, you can try inserting an invisible character in place of the empty line.

Thank you. Please post a proposal following our contributing guides here

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 5, 2024
@trjExpensify
Copy link
Contributor

@thienlnam are you expecting someone from SWM to pick this up?

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
@thienlnam
Copy link
Contributor Author

@robertKozik Any interest in this one or should we just leave it as external?

@trjExpensify
Copy link
Contributor

@BrtqKr do you have a PR for this one yet?

@melvin-bot melvin-bot bot removed the Overdue label May 23, 2024
Copy link

melvin-bot bot commented May 24, 2024

@trjExpensify @hungvu193 @thienlnam @BrtqKr this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@BrtqKr
Copy link
Contributor

BrtqKr commented May 27, 2024

@trjExpensify turns out it requires changes to the blockquote regex in ExpensiMark, someone from our team will take a look and we'll pass it to further if everything is fine Expensify/expensify-common#706

@melvin-bot melvin-bot bot removed the Overdue label May 27, 2024
@BrtqKr
Copy link
Contributor

BrtqKr commented May 29, 2024

So there are actually couple of behaviors I must confirm:

  • firstly because we're not enforcing any of the chat restrictions to the input itself (maximum number of nested quotes, the fact that the chat won't accept an empty message) the result is getting parsed slightly differently. For example, when we try to input "> > >" the result is going to be two blockquotes and ">" treated as a character because three blockquotes would cause an empty message error. The same happens for many nested blockquotes - we're not limiting it in the chat input. The first point is more important because it results from the empty blockquote regex changes.

  • secondly, the styling of the blockquotes is already broken. The paddings for the nested blockquotes are causing height differences between the containers, and the min-height of the container isn't set, so when we try to insert empty blockquotes, we end up with the situation presented below.

Since all those things are already present in the app and would also require changes in expensify-app repository, maybe we should handle them separately as a whole in another ticket?
Regarding the restrictions on live markdown content, this is something I must confirm, because I'm not sure what changes would need to be made.

@thienlnam
Copy link
Contributor Author

I can't find the conversation where it was discussed, but I think we landed on a spot where it is intentional that we don't limit the amount of nested quotes in the input

However, the styling of block quotes can be addressed in a separate ticket

@melvin-bot melvin-bot bot added the Overdue label Jun 3, 2024
@trjExpensify
Copy link
Contributor

Okay, so what's the next step here?

@melvin-bot melvin-bot bot removed the Overdue label Jun 3, 2024
@thienlnam
Copy link
Contributor Author

We've merged the PR for this issue, we'll need to have another PR that bumps the expensify-common version in App to complete this issue.

I'll create another App issue to address the padding in nested block quotes

@trjExpensify
Copy link
Contributor

Second PR in review.

@melvin-bot melvin-bot bot removed the Overdue label Jun 10, 2024
@trjExpensify
Copy link
Contributor

Oh wait.. that's a different issue. Do we have the PR for bumping expensify-common, @thienlnam?

@thienlnam
Copy link
Contributor Author

So looks like the changes made were included in v2.0.8

Looks like on main we're already on expensify-common 2.0.10

So looks like we're good here actually

@melvin-bot melvin-bot bot added the Overdue label Jun 12, 2024
@trjExpensify
Copy link
Contributor

Meaning.. we close this issue or something else? The first PR didn't have a C+, so I think we can close if there's nothing more to do.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 13, 2024
@BartoszGrajdek
Copy link
Contributor

Meaning.. we close this issue or something else?

I believe so, the fix is already on staging (on prod too I think), you can try testing it out yourself 🙌🏻

@thienlnam
Copy link
Contributor Author

We can close here - looks like everything was handled by expert contributors or internal reviewers

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
Projects
Status: Done
Development

No branches or pull requests

9 participants