-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[FIX] Auto Translate not working on new message template #27317
Conversation
This pull request introduces 1 alert when merging b90ea63 into b816803 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog. |
244e91a
to
6d1f466
Compare
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.
packages/core-typings/src/IMessage/MessageAttachment/MessageAttachmentBase.ts
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/MessageList/components/ThreadMessagePreviewBody.tsx
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #27317 +/- ##
===========================================
- Coverage 42.90% 42.88% -0.03%
===========================================
Files 814 817 +3
Lines 17199 17234 +35
Branches 1923 1934 +11
===========================================
+ Hits 7380 7391 +11
- Misses 9563 9579 +16
- Partials 256 264 +8
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Since this is a very large PR on an important feature, I'll ask for an additional review.
apps/meteor/client/components/message/content/attachments/file/AudioAttachment.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/components/message/variants/ThreadMessage.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/components/message/variants/ThreadMessagePreview.tsx
Outdated
Show resolved
Hide resolved
packages/core-typings/src/IMessage/MessageAttachment/TranslatedMessageAttachment.ts
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/contextualBar/Threads/components/ThreadMessageList.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/MessageList/lib/parseMessageTextToAstMarkdown.ts
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/MessageList/hooks/useAutoTranslate.ts
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/MessageList/hooks/useMessageBody.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/room/MessageList/hooks/useMessageBody.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/components/message/variants/ThreadMessagePreview.tsx
Outdated
Show resolved
Hide resolved
…ixSearch * 'develop' of github.com:RocketChat/Rocket.Chat: Chore: Show different labels based on the call originator on direct calls (#27729) Chore: Change bundle tags color and refactor app details page header styles (#27293) [FIX] Auto Translate not working on new message template (#27317) Chore: Custom Sounds Empty State (#27632) [IMPROVE] Require acceptance when setting new E2E Encryption key for another user (#27556) Regression: Broken room and message composer events (#27754) [FIX] Missing placeholders from encrypted channel preview messages now with expected behavior (#27699) [IMPROVE] SAML and OAuth role sync to support id and name (#27405) Chore: add e2e test coverage for Video Conference (#27075) Chore: Invites Empty State (#27631) [FIX] Marketplace app status initially disabled (#27330) Regression: Missing contexts on contextual bar (#27734)
Proposed changes (including videos or screenshots)
Issue(s)
closes #27567
Steps to test or reproduce
Further comments
I had to move
useAutoTranslate
anduseKatex
to a separate hook cause onMessageList
component the context isn't fulfilled yet.Quote attachment
Multilevel quote attachments get translated as well:
But if you try to translate a message that wasn't translated yet and has multiple levels of quote message it will only translate the first quote message...
ThreadMessagePreview component translated