Skip to content
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

Merged
merged 38 commits into from
Jul 24, 2024

Conversation

yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Jul 10, 2024

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.

image

Issue(s)

Steps to test or reproduce

Further comments

CORE-494

Copy link

changeset-bot bot commented Jul 10, 2024

🦋 Changeset detected

Latest commit: aeabfa9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 34 packages
Name Type
@rocket.chat/omnichannel-services Minor
@rocket.chat/pdf-worker Minor
@rocket.chat/core-services Minor
@rocket.chat/model-typings Minor
@rocket.chat/i18n Minor
@rocket.chat/meteor Minor
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/queue-worker Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/presence-service Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/apps Patch
@rocket.chat/models Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-contexts Major
@rocket.chat/web-ui-registration Major
@rocket.chat/cron Patch
@rocket.chat/instance-status Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/ui-client Major
@rocket.chat/gazzodown Major
@rocket.chat/livechat Patch
@rocket.chat/ui-avatar Major
@rocket.chat/ui-video-conf Major
@rocket.chat/uikit-playground Patch
@rocket.chat/core-typings Minor
@rocket.chat/rest-typings Minor
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/ddp-client Patch

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

Copy link
Contributor

dionisio-bot bot commented Jul 10, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 55.47%. Comparing base (b4bbcbf) to head (aeabfa9).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           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     
Flag Coverage Δ
e2e 54.02% <ø> (-0.03%) ⬇️
unit 72.27% <33.33%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@yash-rajpal yash-rajpal marked this pull request as ready for review July 11, 2024 18:15
@yash-rajpal yash-rajpal requested review from a team as code owners July 11, 2024 18:15
@yash-rajpal yash-rajpal changed the title feat(Omnichannel): System messages in PDF transcripts feat(Omnichannel): System messages in transcripts Jul 11, 2024
@yash-rajpal yash-rajpal added this to the 6.11 milestone Jul 11, 2024
@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label Jul 19, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jul 19, 2024
@yash-rajpal yash-rajpal requested review from KevLehman and removed request for MarcosSpessatto July 19, 2024 21:43
KevLehman
KevLehman previously approved these changes Jul 19, 2024
@ggazzo
Copy link
Member

ggazzo commented Jul 20, 2024

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?

@yash-rajpal
Copy link
Member Author

@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?

@ggazzo
Copy link
Member

ggazzo commented Jul 22, 2024

@ggazzo Do you mean moving all i18n logic to the package itself, so all packages can use?

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

but I think it is outside the scope of this PR and should be handled separately.

you just explained exactly why I would keep your performance part in another PR, separate from the feature ;)

@KevLehman
Copy link
Contributor

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 👀

@yash-rajpal
Copy link
Member Author

you just explained exactly why I would keep your performance part in another PR, separate from the feature ;)

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?

ggazzo
ggazzo previously approved these changes Jul 23, 2024
@kodiakhq kodiakhq bot removed the stat: ready to merge PR tested and approved waiting for merge label Jul 24, 2024
Copy link
Contributor

kodiakhq bot commented Jul 24, 2024

This PR currently has a merge conflict. Please resolve this and then re-add the ['stat: ready to merge', 'automerge'] label.

@ggazzo ggazzo merged commit 03c8b06 into develop Jul 24, 2024
49 of 50 checks passed
@ggazzo ggazzo deleted the feat/oc-pdf-system-messages branch July 24, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants