Fix jumping composer when entering emojis or markdown text#40128
Fix jumping composer when entering emojis or markdown text#40128thienlnam merged 22 commits intoExpensify:mainfrom
Conversation
BartoszGrajdek
left a comment
There was a problem hiding this comment.
Overall seems fine, let me go through everything and see if we can simplify some more 😄
|
@fedirjh thanks for the review. This PR is changing only Composer component for web. Both of the bugs you found are also present on main.
This one is already reported, #15734
This is a feature that was implemented in #39597 |
|
@fedirjh bump |
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-04-27.at.05.25.15.mp4Android: mWeb ChromeCleanShot.2024-04-27.at.06.03.12.mp4iOS: NativeCleanShot.2024-04-27.at.05.08.03.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-23.at.18.56.12.mp4MacOS: Chrome / SafariCleanShot.2024-04-23.at.18.41.15.mp4MacOS: DesktopCleanShot.2024-04-27.at.06.18.56.mp4 |
src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx
Show resolved
Hide resolved
src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx
Show resolved
Hide resolved
|
@fedirjh The problem with composer padding was fixed. Also, I removed some height calculations that were based on number of lines, since every line can have different |
|
Bug: IOS, composer jumps when reaching the third line, CleanShot.2024-04-23.at.19.10.45.mp4There is a delay when the user reaches the third line : CleanShot.2024-04-23.at.19.47.55.mp4 |
@shawnborton I can't reproduce it, emojis seem to have the correct size. However, the issue with cutting off emojis at the top is known and reported here I can only see that emojis aren't centered inside the composer, but it is also on the main and we are working on it |
These bugs are also present on the main branch: Screen.Recording.2024-04-25.at.12.54.26.mov |
|
Ah looks like we have some conflicts to resolve now |
|
I resolved the conflicts |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.4.68-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.68-3 🚀
|







Details
Fixed Issues
$ #39267
PROPOSAL:
Tests
2 .Go to any chat
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov