Fix - Chat - Compose box stays in the middle when reduced with a several lines message#50520
Conversation
|
@rayane-djouah 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] |
|
still working on native behaviour 👍 |
|
@FitseTLT Any update? |
|
@rayane-djouah, I am having difficulty scrolling the text input imperatively on native, unlike the web case. There is neither |
|
Will check on my end and let you know |
|
@FitseTLT The bug reported in #49541 (comment) is not reproducible on native platforms. Therefore, I believe we should maintain the current behavior for native. |
|
But @rayane-djouah I am seeing the same problem as the OP in IOS, for instance, 2024-10-22.16-03-05.mp4 |
|
Oh, so this bug is specific to iOS native? Then we need to find a solution for it. |
|
@rayane-djouah I have managed to scroll to cursor position, to indirectly solve the problem on native. Look at the results, I have now uploaded the native screenshots in OP, and let me know your opinion. |
|
@FitseTLT Jest tests and performance tests are failing |
|
@Expensify/design We've addressed the issue as detailed in this comment. However, due to platform constraints on iOS native, we're unable to directly align the scroll position to the bottom of the composer bar, it's always aligned to the top by default. As a workaround, we've implemented a solution to programmatically scroll the input, which introduces a scrolling animation. Could you please review the two videos comparing the behavior before and after the fix? We would like your feedback on whether the scrolling animation is acceptable.
|
|
It feels a little teeny tiny bit weird to me, but I think I still prefer it over losing visibility of my cursor. Keen for the other designers to weigh in. |
|
Yup, I agree with that. Feels like an improvement for sure though! |
|
Agree with you both |
|
@FitseTLT There are merge conflicts |
|
Resolved @rayane-djouah |
|
✋ 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/marcaaron in version: 9.0.72-0 🚀
|
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.0.72-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.72-1 🚀
|
Details
Fixed Issues
$ #49541
PROPOSAL: #49541 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
2024-10-23.19-07-45.mp4
Android: mWeb Chrome
aw.mp4
iOS: Native
2024-10-23.18-47-28.mp4
iOS: mWeb Safari
iw.mp4
MacOS: Chrome / Safari
w.mp4
MacOS: Desktop
d.mp4