fix: ComposeBox - When you click on the mention again, extra characters appear.#62642
Conversation
…rs appear. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@hoangzinh 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] |
| EMPTY_COMMENT: /^(\s)*$/, | ||
| SPECIAL_CHAR: /[,/?"{}[\]()&^%;`$=#<>!*]/g, | ||
| FIRST_SPACE: /.+?(?=\s)/, | ||
| SPECIAL_CHAR_MENTION_BREAKER: /[,/?"{}[\]()&^%;`$=<>!*]/g, |
There was a problem hiding this comment.
In the preview PR, we were using SPECIAL_CHAR which counts # as the end of the mention. However, we can add mentions using both @ and #, so we need to create a new regex for the mention breaker to resolve #61961.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-27.at.21.43.48.movAndroid: mWeb ChromeScreen.Recording.2025-05-27.at.20.50.10.android.chrome.moviOS: HybridAppScreen.Recording.2025-05-27.at.21.16.29.moviOS: mWeb SafariScreen.Recording.2025-05-27.at.20.52.46.movMacOS: Chrome / SafariScreen.Recording.2025-05-26.at.19.22.08.web.movMacOS: DesktopScreen.Recording.2025-05-27.at.20.46.08.desktop.mov |
|
✋ 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/dangrous in version: 9.1.54-0 🚀
|
[CP Staging] Revert #62642 "fix: ComposeBox - When you click on the mention again, extra characters appear"
|
oh no, there is another regression bug. cc @Krishna2323 |
|
@hoangzinh, I'll raise another PR today 🥲😭 |
|
Augh - this is trickier than expected haha. Let's keep trying! |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.54-7 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.56-2 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.58-4 🚀
|
Explanation of Change
Fixed Issues
$ #60804
PROPOSAL: #60804 (comment)
Tests
Offline tests
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_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4