-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Adds support for mentions in room description #45352
Conversation
…tion-room-description
…tion-room-description
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
This is not related to the changes in this PR but Line 18 in 3710936
we are considering only login and accountID even though the displayName , firstName and lastName might be available in personalDetails .
Shall we create an issue for that and fix it before merging the present PR? Or shall we continue working on this and merging this ignoring that? |
Can you help me with reproduction steps? I think it should be fine to fix it in this PR |
mentionAccountID.mp4 |
Noting another backend bug here. The description added at the time of room creation is not saved. Backend resets the description. Repro steps:
roomDescriptionWhenCreating.mp4 |
Tests do not match the changes made in this PR. The test sis for updating room description and for updating room description, the reportID is already passed to
App/src/pages/RoomDescriptionPage.tsx Line 46 in da6c35b
and further this App/src/libs/actions/Report.ts Line 1996 in da6c35b
IMO tests for this PR should be for setting/updating the workspace descriptions and setting the description when creating a room. |
…tion-room-description
I agree I should have updated the As for creating a new room, we have a bug currently where the description comes back empty, which makes it weird to test it here. The backend PR is fixing that and the test step for that will be there. But when updating the room description we would get the mention HTML in the update message instead of the mention, so that is why the testing steps are for update. |
The bug with the |
Just checked why I think this is useful when copying and pasting the message and the mention is correctly parsed in the composer. mentionLost.mp4We use I think we should change the return Str.removeSMSDomain(personalDetail?.login ?? '') || personalDetail.displayName; |
…tion-room-description
@c3024 I tested the latest version with the same phone number you were using and it seems to work now, we only return the Anyway, I think we only have the copy to clipboard problem, but we already have the same problem if mentioning a SMS user in any comment, so I think we should address that in another issue. |
Ok, I think we are good in every instance here now, let me know if you find anything @c3024 |
Reviewer Checklist
Screenshots/VideosAndroid: NativementionAndroid.mov |
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.
LGTM!
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.
Tests well! Let's do this!
✋ 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.0.15-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.0.15-9 🚀
|
FYI, this issue (#49407) was a missed case in this PR. We need to verify if the room exists before highlighting its mention. More details can be found in this proposal: #49407 (comment) |
Details
Fixed Issues
#45425
PROPOSAL:
Tests
join #announce and contact @[email protected]
Offline tests
QA Steps
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
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop