-
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
Implement Live Markdown for task descriptions #39519
Implement Live Markdown for task descriptions #39519
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
Reviewing Monday! |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-04-09_10.50.09.mp4Android: mWeb Chromeandroid-chrome-2024-04-09_10.58.44.mp4iOS: Nativeios-app-2024-04-09_11.39.35.mp4iOS: mWeb Safariios-safari-2024-04-09_11.47.14.mp4MacOS: Chrome / SafariUploading desktop-chrome-2024-04-09_10.36.58.mp4… MacOS: Desktopdesktop-app-2024-04-09_10.41.58.mp4 |
Apologies I had higher priority work to get to today. Top of the list for tomorrow! |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee good catch, thanks! I forgot to add Expensify markdown styles on native platforms. Because of that heading font size was much bigger. Now it should be correct |
@jjcoffee I think this styling bug is also reproducable on normal TextInputs on the staging. Should I fix it? |
Thanks, fixing the other bug fixed this one too! I guess there could be a little more spacing, but it's the same as on main now. |
Just waiting on confirmation on this before approving. |
@jjcoffee feel free to proceed with the review and approval of this PR |
@roryabraham @jjcoffee Prop name changed 🫡 |
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!
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.
It's ironic that we've split BaseTextInput
into a web and native implementation. It's not longer a shared base component
✋ 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/roryabraham in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
@@ -370,6 +379,7 @@ function BaseTextInput( | |||
selection={inputProps.selection} | |||
readOnly={isReadOnly} | |||
defaultValue={defaultValue} | |||
markdownStyle={markdownStyle} |
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.
Markdown does not grow correctly in room descriptions resulting in half cut lines, ref: #48281
Details
This PR adds live markdown support for form text inputs and enables them in task description pages
Fixed Issues
$ #39189
PROPOSAL:
Tests
+
on the left side of main composerCreate task
Next
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov