-
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
feat(Omnichannel): System messages in transcripts #32752
Conversation
🦋 Changeset detectedLatest commit: aeabfa9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 34 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Looks like this PR is ready to merge! 🎉 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #32752 +/- ##
========================================
Coverage 55.46% 55.47%
========================================
Files 2635 2635
Lines 57343 57343
Branches 11874 11876 +2
========================================
+ Hits 31807 31811 +4
- Misses 22842 22853 +11
+ Partials 2694 2679 -15
Flags with carried forward coverage won't be shown. Click here to find out more. |
As your pr has changes related with performance, I don't think we need a service to deal with translations, I think everything could be moved to a lib and all services could use it, that would be much faster. what do you think? |
@ggazzo Do you mean moving all i18n logic to the package itself, so all packages can use? If so, then that's a great improvement and we should definitely do that, but I think it is outside the scope of this PR and should be handled separately. Currently this PR is important for this release. Maybe this can be a future overall improvement. What do you think? |
yep, its not necessarily huge code. I imagine this service was created before we removed meteor dependencies, nowadays, it would make much more sense to use this as a lib
you just explained exactly why I would keep your performance part in another PR, separate from the feature ;) |
Vote 3 for removing service. It was created when translations were handled by meteor. Now that the files are free of meteor we could move the actual i18n thing onto it. Also vote of doing that on a separate PR 👀 |
You are right, but earlier I implemented the feature without the performance part, but the implementation created performance issues as we were having to do a lot of i18n calls for each and every message, making entire process async (as getting translations was async). The performance part is just making this process synchronous using some tricks. So, it is kinda needed, can't remove it for now to do in future. But for sure this translation service should be removed and should be handled by a lib, when doing this we can improve transcripts as well. What do you think? |
This PR currently has a merge conflict. Please resolve this and then re-add the |
aeabfa9
Proposed changes (including videos or screenshots)
Currently we don't handle system messages in our transcripts, the system messages are shown as empty space in our transcripts.
This PR adds this support to handle system generated messages for both, email and PDF transcripts.
Issue(s)
Steps to test or reproduce
Further comments
CORE-494