Repository navigation
Fix search keyword is shown in multiline - #57729
Conversation
| EMOJI_SUGGESTIONS: /:[\p{L}0-9_+-]{1,40}$/u, | ||
| AFTER_FIRST_LINE_BREAK: /\n.*/g, | ||
| LINE_BREAK: /\r\n|\r|\n/g, | ||
| LINE_BREAK: /\r\n|\r|\n|\u2028/g, |
There was a problem hiding this comment.
When I copy from Mac notes app, the new line is https://www.compart.com/en/unicode/U+2028
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2025-03-05_19.49.49.mp4Android: mWeb Chromeandroid-chrome-2025-03-05_19.56.41.mp4iOS: Nativeios-app-2025-03-05_17.54.21.mp4iOS: mWeb Safariios-safari-2025-03-05_17.56.28.mp4MacOS: Chrome / Safaridesktop-chrome-2025-03-05_17.09.21.mp4MacOS: Desktopdesktop-app-2025-03-05_17.13.34.mp4 |
|
Looks a bit strange when you switch between tabs after pasting as the extra space gets stripped: desktop-chrome-switching-2025-03-05_17.10.53.mp4(I guess this is basically what we already discussed on the issue) |
|
cc @Expensify/design for your thoughts. The only thing that stands out to me is this minor issue, but I don't think it's necessarily a big deal as it only happens if you don't tap on the search router below to perform the search. Pasting in the desktop-chrome-2025-03-06_10.08.31.mp4 |
|
Note that if we want to change that behavior, we should do it on a separate issue.
No need to paste the text, you can type multiple spaces and the same thing happen. |
|
This feels pretty okay to me personally, mostly because I think a lot of this is feeling edge-casey and it doesn't feel strange to me that the app might strip away some of my extra spaces. |
|
✋ 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/Gonals in version: 9.1.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
Explanation of Change
Fixed Issues
$ #57212
PROPOSAL: #57212 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4