-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Bump live-markdown to 0.1.302 #69158
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
Bump live-markdown to 0.1.302 #69158
Conversation
|
|
|
For the styling of code in the composer, can we just leave them how they currently are in staging/production? Do we need to change them for some reason? cc @dubielzyk-expensify |
|
Agree with Danny about keeping everything visually what it's like in prod today 👍 |
|
The whole point of Live Markdown Input is to preview how the message will look after sending while still typing. That's why we fixed this issue and introduced major refactor and many complex changes in the library to be able to do that and support the same styles in both
Are you sure we want to leave it as it is right now? In my opinion, it breaks the goal of the Live Markdown Input to replicate the sent message styles, and the current styling isn't that much visible for a user to determine if he is opening any code block while typing. So adding the same styles on the web to the inputs is much more beneficial, and it fixes this issue. What do you think @dannymcclain @dubielzyk-expensify? |
|
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
That's how it was planned in a design doc and discussed with David Barrett a long time ago. Based on that, the Live Markdown library was created, and the syntaxes aren't removed when applying the markdown style |
|
@dannymcclain @dubielzyk-expensify, how should we handle native devices? Right now, we can only make the styles the same as in the message on the web. The native devices look like that right now with the style changes: Can we leave it as it is on the screen above, or should we turn off the new styling for native devices? |
This is pretty much how I feel. I think it's a little weird to show both syntax and styles, but I guess that's what we do for bold and italic and stuff so I guess it's not that big of a deal. The styles in your Aligned image here do look pretty good, and I agree that it makes the code sections much more obvious. As far as native goes—you're saying we can't mimic exactly what you're showing for the web Aligned image? |
@dannymcclain yes exactly. For now, code blocks have been updated only for the web. Native implementation still needs to be improved and tested |
|
Alright let's see what @dubielzyk-expensify thinks here. I think I'm good pushing the updated web version and then trying to follow up with native improvements, but I'd like to get his take. |
|
I'm good with that for now, but let's confirm with @dubielzyk-expensify to see if he has any strong feelings/opinions. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hybrid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: HybridAppios-hybrid.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
I'm fine with it as well I guess. Will we ever be able to make the styles match on native or is it a limitation for the forseable future? |
ikevin127
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟢 LGTM
@Skalakid Can you please make sure to sync w/ main before merge ? Because I noticed you're outdated on this branch and the app crashes on iOS: Native because of unsupported.toSorted() usage in SidebarUtils.ts <- this was fixed on latest main.
Note
This PR was opened to address and follow-up on this deploy blocker issue in particular (currently fixed due to a version downgrade), which originated from the live-markdown PR that added the code block UI on web without testing it within the context of E/App.
This PR was opened in order to upgrade to the latest version of the library, not as a new feature to iterate on in terms of design, I think if we want to follow-up on that it should be in a new issue as to not hold-up this version upgrade for any longer.
Yes, but it can take some time. We've prepared POC that works on both iOS and Android. We need to fix some edge cases and test in properly. Here are the PRs: Expensify/react-native-live-markdown#338, Expensify/react-native-live-markdown#306 |
|
@ikevin127 done |
|
Thank you! |
mountiny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the bump!
@dannymcclain @dubielzyk-expensify That is right - for the live markdown it was decided to show the syntax always similarly as Whatsapp does it
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.1-0 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.1-20 🚀
|






Explanation of Change
This PR bumps the
react-native-live-markdownversion to the latest one (0.1.302), which includes:It also updates Expensify markdown styles so new code blocks in the Live Markdown Inputs match the styles after sending the message.
Fixed Issues
$ #39518
$ #68518
$ #69048
PROPOSAL: https://swmansion.slack.com/archives/C01GTK53T8Q/p1756113217186459?thread_ts=1755900632.602309&cid=C01GTK53T8Q
Tests
Codeblocks refactor
preandcodemarkdowns in various scenarios, e.g.(Remove backslashes)
3. Verify if the styles in the Live Markdown Input are the same as in a sent message
4. Verify if code blocks don't cause any UX issues while writing
Strikethrough not applied to blockquote text issue
Placeholder issue
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android.chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios.safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov