-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[NEW][EE] Omnichannel Priorities & SLAs #27083
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
Merged
Merged
Changes from all commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
23d4fe9
Create SLAs collection and modify current calls
KevLehman cb1d8c6
[BREAK] Deprecate and remove queueOrder prop (#27088)
KevLehman 80fcc59
[NEW] Add sorting mechanism setting (#27087)
KevLehman 48b0b18
Rename "Estimated due time" to "Estimated wait time" (#27138)
MartinSchoeler 24edeab
[BREAK] Migrate current priorities endpoints to SLAs (#27104)
cauefcr c4d0327
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 13da302
Fix issues after code merge
KevLehman dcbe808
fix wrong function call
KevLehman ba9c011
Minor changes to api names and test
KevLehman faa65fe
[NEW] Endpoints and model functions to reset priorities (#27237)
cauefcr b09b30e
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 2b8f2a0
[IMPROVE] Rename priorities to SLA's (#27236)
aleksandernsilva 23f0165
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 91d485d
[NEW] Priorities view including list, edit and reset (#27292)
aleksandernsilva 3528b57
Fix improper model usage
KevLehman 9a73057
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 64ba4d8
[NEW] Priority Icon component (#27362)
aleksandernsilva 506b74f
[NEW] Endpoints for room prioritizing (#27263)
cauefcr f4cd275
Regression: Don't allow empty spaces on priority name (#27407)
MartinSchoeler bba0bbc
Regression: VideoConf default info modal not showing meeting URL as a…
pierre-lehnen-rc 99568db
Chore: Update badge tokens (#27363)
juliajforesti 9f52d7e
[FIX] `channels.convertToTeam` endpoint doesn't work when only the `c…
matheusbsilva137 6c9094a
Chore: Update dark theme tokens (#27386)
juliajforesti 1d7d553
[FIX] Thread messages being included in the room history even though …
dougfabris 0564f73
Regression: Old threads not opening (#27384)
yash-rajpal cab6af8
Regression: Update VideoConfListItem Color Tokens (#27402)
dougfabris f1d199e
[FIX] Quoting Issue (#27369)
henit-chobisa 947430f
i18n: Language update from LingoHub 🤖 on 2022-11-29Z (#27410)
lingohub[bot] 448b44c
Regression: Fix issues with ContactHistoryItem (#27406)
MartinSchoeler 49f4a84
Regression: Login and Registration UI Tweaks (#27411)
dougfabris 85da50b
Chore: Update tokens (#27408)
juliajforesti 234bd17
Regression: Bad words Filtering not working on new Message Parser (#2…
xareyli 5c1897d
[FIX] Fix Piwik and add extra setting to allow workarounds (#27416)
ggazzo fb0d373
Regression: Admin menu apps option not working (#27422)
rique223 fb05d9a
Regression: message-box-editing-color (#27420)
juliajforesti d8f0830
Regression: fix sidebar status
ggazzo 7da5095
Chore: bumping apps engine version (#27414)
AllanPazRibeiro 74fc928
[FIX] Livechat: Allow resolving external image and media blocks (#27387)
cauefcr f99daad
update lock
KevLehman 71282aa
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman a947da6
[FIX] Adjusted priority form to revalidate after reset (#27458)
aleksandernsilva 32e7650
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 3efcafe
Fix lint
KevLehman 4216c54
[BREAK] update LivechatPriority data representation at disk, adds ind…
cauefcr c245e0a
Chore: SLA policies e2e tests (#27364)
aleksandernsilva a87777f
Chore: Deprecate meteor methods used by SLAs and replace with APIs
murtaza98 c5a0f4d
Chore: Add missing indexes to SLA collection (#27483)
KevLehman b3a237d
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 9986eee
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 9634d9d
[IMPROVE] Add validation on BE to ensure that priority name is unique…
murtaza98 68c1664
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman c261f1f
[FIX] Changed remove SLA message to mention SLA instead of Priority (…
aleksandernsilva 62bf23f
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman dba1be2
[NEW] Sort livechat inquiries by chosen setting (#27313)
cauefcr 5ed6af9
[IMPROVE] Added ability to reset individual priority (#27520)
aleksandernsilva 050b1ab
Merge branch 'develop' into feature/omnichannel-priorities
9d9d5c0
Merge branch 'feature/omnichannel-priorities' of ssh://github.com/Roc…
573b34f
[FIX] Added form error validation for duplicated priority name (#27506)
aleksandernsilva c61b010
Merge branch 'develop' into feature/omnichannel-priorities
c37a2a6
adapt to new useEndpoint() format
55a3219
[FIX] Incorrect sorting policy for conflicts withing priorities and S…
murtaza98 5fd87bd
[FIX] Changed sorting mechanism select option from "Service level agr…
aleksandernsilva 7e1f329
[IMPROVE] Added priority field to edit room contextual bar (#27638)
aleksandernsilva 93eac34
[IMPROVE] Added priority sorting and visual indicator on the sidebar …
aleksandernsilva c55d179
[NEW] Added priorities fetch to Omnichannel context
aleksandernsilva d9e3d09
[IMPROVE] Adding staleTime config to priorities fetch
aleksandernsilva 896f8c6
Chore: Replaced usePrioritiesData with useOmnichannelPriorities
aleksandernsilva 7ec9154
[IMPROVE] Added enabled prop to priorities data
aleksandernsilva 78573a5
[IMPROVE] Added unprioritized and tooltip to PriorityIcon
aleksandernsilva f4144c9
Merge branch 'develop' into feature/omnichannel-priorities
murtaza98 c6c4c9f
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
aleksandernsilva 5f0efa3
[FIX] Adjusting all conditional queries to use isInitialLoading inste…
aleksandernsilva 565b937
[IMPROVE] Added PriorityIcon to PrioritiesSelect (#27894)
aleksandernsilva db5a924
[NEW] Add new priority column to current chats table (#27893)
aleksandernsilva bf5694b
Merge branch 'develop' into feature/omnichannel-priorities
aleksandernsilva fe4e1aa
[NEW] Add system message upon Priority and SLA change (#27919)
murtaza98 1235397
[FIX] Invalidates rooms.info query using room data stream
aleksandernsilva 5642703
Chore: Implemented e2e tests for priorities (#27788)
aleksandernsilva bd2c4e8
[NEW] Added priorities sidebar menu (#27895)
aleksandernsilva 609b351
Merge branch 'develop' into feature/omnichannel-priorities
8430651
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
aleksandernsilva de51b96
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman c1b553a
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
aleksandernsilva e7d4d93
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 62283ef
[IMPROVE] Changed RoomMenu maxHeight to accommodate priorities (#27983)
aleksandernsilva 77097c7
damn imports
KevLehman 933d865
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
KevLehman 82a6c66
[NEW] Create stream for priority updates (#27291)
KevLehman ee5126c
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
murtaza98 a91de98
[IMPROVE] Invalidates priorities query after a priorities change
aleksandernsilva 93909af
[FIX] Migration for priorities (#27988)
KevLehman 9b5af85
[NEW] Added omnichannel sorting disclaimer to SortModeList menu (#27913)
aleksandernsilva 936a4a9
[FIX] Changed from useMutableCallback to useCallback
aleksandernsilva 160fcd3
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
aleksandernsilva 01272eb
[FIX] Adjusted priority icon positioning and added spacing (#27910)
aleksandernsilva df15901
[FIX] Changed from useMutableCallback to useCallback
aleksandernsilva d81539f
Merge branch 'feature/omnichannel-priorities' into new/omnichannel-co…
aleksandernsilva dedd38e
[NEW] Added priorities fetch to Omnichannel context (#27888)
aleksandernsilva 84791fa
Merge branch 'feature/omnichannel-priorities' of github.com:RocketCha…
KevLehman e660ec2
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 65bece0
[FIX] Priority on current chats not being updated as it should
aleksandernsilva 514b7cd
Chore: Code cleanup
aleksandernsilva 6523fbc
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman af0a196
Merge branch 'develop' into feature/omnichannel-priorities
aleksandernsilva d101728
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 222fcc4
Merge remote-tracking branch 'origin/develop' into feature/omnichanne…
sampaiodiego 4d44bc8
go brr
KevLehman 3ca749c
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman b26e6d6
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman b312c20
?
KevLehman 2498440
??
KevLehman ac67447
fix room priority not set
murtaza98 31e3922
Merge branch 'develop' into feature/omnichannel-priorities
murtaza98 da5061b
fix lint
6b1be44
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 8571617
Merge branch 'feature/omnichannel-priorities' of github.com:RocketCha…
sampaiodiego de68e2f
Merge remote-tracking branch 'origin/develop' into feature/omnichanne…
sampaiodiego f0fbcfd
returns
KevLehman 66c2e64
smol fix
KevLehman 473b3c1
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman cc41ae1
Merge branch 'feature/omnichannel-priorities' of github.com:RocketCha…
sampaiodiego 2e6fcfb
Merge remote-tracking branch 'origin/develop' into feature/omnichanne…
sampaiodiego 7350992
remove "dom" lib from tsconfig.base.server.json
sampaiodiego a6675a2
Merge branch 'develop' into feature/omnichannel-priorities
KevLehman 64c7145
remove type casting
sampaiodiego 0d64ebc
Merge branch 'develop' into feature/omnichannel-priorities
sampaiodiego 7860773
Merge branch 'develop' into feature/omnichannel-priorities
sampaiodiego 5d2e0a0
use list reporter for e2e tests
sampaiodiego 5bb4d6c
allow EE test to run for 50 minutes
sampaiodiego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { OmnichannelSortingMechanismSettingType } from '@rocket.chat/core-typings'; | ||
|
|
||
| type SortOrder = 1 | -1; | ||
|
|
||
| type ReturnType = | ||
| | { | ||
| priorityWeight: SortOrder; | ||
| ts: SortOrder; | ||
| } | ||
| | { | ||
| estimatedWaitingTimeQueue: SortOrder; | ||
| ts: SortOrder; | ||
| } | ||
| | { | ||
| ts: SortOrder; | ||
| }; | ||
|
|
||
| export const getOmniChatSortQuery = ( | ||
| sortByMechanism: OmnichannelSortingMechanismSettingType = OmnichannelSortingMechanismSettingType.Timestamp, | ||
| ): ReturnType => { | ||
| switch (sortByMechanism) { | ||
| case OmnichannelSortingMechanismSettingType.Priority: | ||
| return { priorityWeight: 1, ts: 1 }; | ||
| case OmnichannelSortingMechanismSettingType.SLAs: | ||
| return { estimatedWaitingTimeQueue: 1, ts: 1 }; | ||
| case OmnichannelSortingMechanismSettingType.Timestamp: | ||
| default: | ||
| return { ts: 1 }; | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import { OmnichannelSortingMechanismSettingType } from '@rocket.chat/core-typings'; | ||
|
|
||
| import { settings } from '../../../settings/server'; | ||
|
|
||
| export const getInquirySortMechanismSetting = (): OmnichannelSortingMechanismSettingType => | ||
| settings.get<OmnichannelSortingMechanismSettingType>('Omnichannel_sorting_mechanism') || OmnichannelSortingMechanismSettingType.Timestamp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import { css } from '@rocket.chat/css-in-js'; | ||
| import { Box } from '@rocket.chat/fuselage'; | ||
| import type { FC } from 'react'; | ||
| import React from 'react'; | ||
|
|
||
| export const InlineGroup: FC<{ gap: number }> = ({ children, gap }) => { | ||
| const badgesContainer = css` | ||
| * + * { | ||
| margin-inline-start: ${gap}px; | ||
| } | ||
| `; | ||
|
|
||
| return <Box className={badgesContainer}>{children}</Box>; | ||
| }; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.