-
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
Turn channel log member message into HTML #32161
Conversation
@shubham1206agra 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] |
@shubham1206agra Before completing screenshots, I found out one issue that the mention would be displayed as Because the personal detail was not retrieved properly here: Lines 4150 to 4154 in 1234b0d
The Do you want me to fix it as well or create another issue to handle that? |
Can you fix it here only? |
@shubham1206agra Another edge case: If server returned the invited display name with spaces between, we could not render the mention after copy-pasting. I don't think this is possible with the current implementation of Original: Copy pasted: |
@tienifr This looks weird bug. It should use email (login) here, instead of display name. |
@shubham1206agra I'm not sure about that, the invitation message was one month ago. I tried iniviting the same account again and accounts with display name but it just showed |
src/libs/ReportUtils.ts
Outdated
let environmentURL: string; | ||
Environment.getEnvironmentURL().then((url: string) => (environmentURL = url)); | ||
|
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.
Can you see tryResolveUrlFromApiRoot instead of this?
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.
Is there any specific reason? Because I took reference from ReportActionsUtils
here:
App/src/libs/ReportActionsUtils.ts
Line 388 in 1234b0d
updatedReportAction.message[0].html = reportAction.message[0].html?.replace('%baseURL', environmentURL); |
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.
Maybe above method doesn't work in that case, thats why they have used environmentURL directly.
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.
@tienifr In this, you may want to make link independent of platform cause clicking on room link from production website tries to take me to local link |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-03.at.8.57.46.PM.movAndroid: mWeb ChromeScreen.Recording.2023-12-04.at.9.07.08.AM.moviOS: NativeScreen.Recording.2023-12-03.at.7.47.10.PM.moviOS: mWeb SafariScreen.Recording.2023-12-04.at.9.04.57.AM.movMacOS: Chrome / SafariScreen.Recording.2023-12-04.at.9.02.51.AM.movMacOS: DesktopScreen.Recording.2023-12-03.at.7.43.18.PM.mov |
Hi @shubham1206agra @tienifr , we have made changes related to the channel log, I think they are related to each other and may cause conflicts. Can the team help check to hold this PR until our PR is merged cc @cubuspl42 @mobilify |
@namhihi237 Can you link the related PR? |
Ah sorry,I am missing. I updated |
@tienifr Can you see if this problem can be solved in the meantime? #32161 (comment) |
@shubham1206agra Sure! So by that you mean we put this PR on HOLD for #30927, don't you? |
I think we can hold this as the holding PR is near merge state |
Yes, please hold. We've had many, many review rounds there. I would be grateful if you applied your solution on top of those changes. |
@tienifr Lets get this OFF HOLD now |
Seems like there was regression and they attempted to fix in #32612. I think we still need HOLD then. |
I'll push #32612 forward ASAP |
Lets get it OFF HOLD now as holding PR is now in production |
@tienifr Bump here ^ |
Taking a look. |
@shubham1206agra We can continue here. #32612 already handled most of the parsing logic for us 🙏. |
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!
✋ 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/luacmartins in version: 1.4.15-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.15-5 🚀
|
Details
Turn channel log member message into HTML so that room name is shown as link when copy to clipboard.
Fixed Issues
$ #31568
PROPOSAL: #31568 (comment)
Tests
#admin
room of that workspaceOffline tests
NA
QA Steps
#admin
room of that workspacePR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Screen.Recording.2023-11-29.at.14.31.31-compressed.mov
Android: mWeb Chrome
Screen.Recording.2023-11-29.at.14.35.33-compressed.mov
iOS: Native
Screen.Recording.2023-11-29.at.14.25.47-compressed.mov
iOS: mWeb Safari
Screen.Recording.2023-11-29.at.14.27.53-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-29.at.13.57.27-compressed.mov
MacOS: Desktop
Screen.Recording.2023-11-29.at.14.05.37-compressed.mov