-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add inline images preview to the Live Markdown Input on the web #50047
base: main
Are you sure you want to change the base?
Add inline images preview to the Live Markdown Input on the web #50047
Conversation
Taking a look 👀 |
@Skalakid I still can reproduce the mentioned box issue on mWeb Screen.Recording.2024-10-03.at.16.05.19.mov |
9c9c06a
to
4f04d3d
Compare
I still can reproduce this issue: Screen.Recording.2024-10-03.at.17.25.15.movAlso if we send an image with a text, we can edit it and a broken image preview will be shown. Do you think we should fix it here as well? Screen.Recording.2024-10-03.at.17.26.56.mov |
@hungvu193, can you please check if you pulled the latest changes on my branch and delete |
@hungvu193 The second issue you reported is more complex since the image preview isn't displayed because the auth token is missing. It's pretty problematic, and we should think about how to solve this problem safely without exposing any token |
I think that's caches issue, I removed the |
All good! @thienlnam Can you add build label and ask QA to verify this PR? |
@hungvu193 I just fixed the issue with image previews that require auth token |
@dubielzyk-expensify @ishpaul777 One of you needs to 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] |
Please ignore this PR @ishpaul777 |
Nice! it works 🚀 |
@Skalakid I think the recent changes from selection logic breaks shortcut key, now when I press command + A to select all, the cursor will move to the first character of the line: Screen.Recording.2024-10-04.at.16.32.29.mov |
another way to reproduce it, type a letter and double click to select it, you can notice that you can select that letter. |
@hungvu193 fixed! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-10-04.at.22.32.30.movScreen.Recording.2024-09-20.at.22.34.58.moviOS: NativeiOS: mWeb SafariScreen.Recording.2024-09-20.at.22.25.19.movScreen.Recording.2024-10-04.at.22.34.29.movMacOS: Chrome / SafariChrome.movMacOS: DesktopScreen.Recording.2024-09-20.at.22.23.07.mov |
Please add build label and ask QA team to verify this PR. Ty 🙇 |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
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.
Confirmed forward delete works as expected in this branch. Somehow it's even worse in main - it now jumps the cursor to the end of the line 🙈
So if we can't get this merged soon or it gets reverted again, please let's do a small PR to just fix forward delete so we don't delay that further 🙏
please remove my review request, i have also verified #48797 is fixed with this PR |
Okay thanks, will request one more QA review so we can try to get ahead of any blockers |
Timing works out great since I'm also the deployer this week 😄 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel! Task –Task description content with exceeded character limit flashes if tap on fix the errorsVersion Number: 9.0.44-8 Action Performed:Go to https://50047.pr-testing.expensify.com/home Expected Result:Task description content not flashes Actual Result:Task description content flashes Workaround:Unknown Platforms:Which of our officially supported platforms is this issue occurring on?
Screenshots/VideosBug6627475_1728329676357.TD.mp4Upwork Automation - Do Not Edit |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel! Task - & is displayed as & in task conversation createdVersion Number: 9.0.44-8 Action Performed:
Expected Result:& must not be displayed as & in task conversation created Actual Result:& is displayed as & in task conversation created Workaround:Unknown Platforms:Which of our officially supported platforms is this issue occurring on?
Screenshots/VideosBug6627535_1728332337594.Screenrecorder-2024-10-08-01-42-57-963_compress_1.mp4Upwork Automation - Do Not Edit |
Details
This PR bumps the version of the
react-native-live-markdown
to the latest and enables the inline image previews inside the input on the webFixed Issues
$ #40181 (comment)
$ #48797
PROPOSAL:
Tests
Inline image preview
#48797
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
web only feature
Android: mWeb Chrome
chrome.mov
iOS: Native
web only feature
iOS: mWeb Safari
safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov