-
Notifications
You must be signed in to change notification settings - Fork 3k
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 #49250
Add inline images preview to the Live Markdown Input on the web #49250
Conversation
@dubielzyk-expensify @hungvu193 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] |
Do we need to use |
I used |
It's because I'm changing the source URL of the image, and the browser is loading it once again since it can be completely different image. While loading we are rendering the loading indicator that has Also, on the screen shots that you posted I'm changing the URL variables (width and height) to get the image with different resolution, it's also the reason of the jump |
@mountiny, can we get an adhoc build for testing so we can all easily verify how inline images behave in action, please? |
This comment has been minimized.
This comment has been minimized.
just tried the adhoc build and I got the same issue with @shawnborton Here's the logs: |
@Skalakid Can we add a debounce or wait until the user ends their inputting before another preview? Screen.Recording.2024-09-16.at.21.39.29.mov |
@hungvu193 I've added a debounce for inline image previews :D |
Awesome!. It's working! 🎉 . I've found this bug, if you added multiple inline images at the same time, when you edit that message, the first image won't show up. Screen.Recording.2024-09-17.at.17.58.04.mov |
QA regression has been completed |
Hello, thanks for the QA regression tests, I'm back at the office and I'm starting to investigate them |
@lanitochka17 I wasn't able to reproduce the following issues, can you check it again, but with the latest main merged? new.task.movprivate.notes.mov |
@lanitochka17 Oh, okay, everything happens on Samsung devices.. I will continue the investigation tomorrow |
Hello, here I created the PR with the fixes for the issues reported above |
@hungvu193 @lanitochka17 The PR has been merged, so all reported bugs have been fixed :D Please verify it, and let's merge this feature into E/App |
Thanks @Skalakid, I can verify that all the bugs above are fixed! Just found a small bug, but I think we can address it in a follow-up PR. If we add the room description as an inline image, while clicking the image the RHP won't show up. Screen.Recording.2024-09-30.at.18.10.28.movAll yours @thienlnam |
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 sticking with this! Let's send 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/thienlnam in version: 9.0.42-0 🚀
|
@thienlnam can you create an issue for these issues? |
We ended up reverting this PR to fix some other blockers - unfortunately, I think it will be tough to get this through without causing any issues. Let's see what we can address from the latest batch of reported issues and make sure we address any critical issues. Anything smaller that comes up we can probably address later and I'll denote that to the App deployer next time we merge this |
Given that, can we merge a separate update that only updates the markdown library, so we can deploy the fix to #48797? |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.42-3 🚀
|
Also, this one caused this issue: #49973 |
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
Android: mWeb Chrome
chrome.mov
iOS: Native
web only feature
iOS: mWeb Safari
ios.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov