From d9e732c005baf95e9aa2c9ba63da1257c7bf8193 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 26 Mar 2026 09:20:36 +0530 Subject: [PATCH] chore(v5): update priority icons (#13905) # Pull Request Template ## Description This PR updates the priority icons with a new set and makes them consistent across the app. ## How Has This Been Tested? **Screenshots** image image image image ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --------- Co-authored-by: Pranav --- .../ConversationCard/CardPriorityIcon.vue | 246 ++++-------------- .../widgets/conversation/ConversationCard.vue | 9 +- .../widgets/conversation/PriorityMark.vue | 53 ---- .../conversation/ConversationAction.vue | 10 +- .../dashboard/settings/macros/MacroEditor.vue | 2 +- .../components/ui/MultiselectDropdown.vue | 12 +- .../ui/MultiselectDropdownItems.vue | 9 +- .../assets/images/dashboard/priority/high.svg | 6 - .../assets/images/dashboard/priority/low.svg | 4 - .../images/dashboard/priority/medium.svg | 5 - .../assets/images/dashboard/priority/none.svg | 4 - .../images/dashboard/priority/urgent.svg | 9 - theme/icons.js | 28 ++ 13 files changed, 110 insertions(+), 287 deletions(-) delete mode 100644 app/javascript/dashboard/components/widgets/conversation/PriorityMark.vue delete mode 100644 public/assets/images/dashboard/priority/high.svg delete mode 100644 public/assets/images/dashboard/priority/low.svg delete mode 100644 public/assets/images/dashboard/priority/medium.svg delete mode 100644 public/assets/images/dashboard/priority/none.svg delete mode 100644 public/assets/images/dashboard/priority/urgent.svg diff --git a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue index d51764ef5..c7453219f 100644 --- a/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue +++ b/app/javascript/dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue @@ -1,207 +1,63 @@ - diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue index f12b0c9c1..f50485723 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationCard.vue @@ -10,7 +10,7 @@ import InboxName from '../InboxName.vue'; import ConversationContextMenu from './contextMenu/Index.vue'; import TimeAgo from 'dashboard/components/ui/TimeAgo.vue'; import CardLabels from './conversationCardComponents/CardLabels.vue'; -import PriorityMark from './PriorityMark.vue'; +import CardPriorityIcon from 'dashboard/components-next/Conversation/ConversationCard/CardPriorityIcon.vue'; import SLACardLabel from './components/SLACardLabel.vue'; import ContextMenu from 'dashboard/components/ui/ContextMenu.vue'; import VoiceCallStatus from './VoiceCallStatus.vue'; @@ -305,7 +305,7 @@ const deleteConversation = () => { >
{ {{ assignee.name }} - +

-import { CONVERSATION_PRIORITY } from '../../../../shared/constants/messages'; - -export default { - name: 'PriorityMark', - props: { - priority: { - type: String, - default: '', - validate: value => - [...Object.values(CONVERSATION_PRIORITY), ''].includes(value), - }, - }, - data() { - return { - CONVERSATION_PRIORITY, - }; - }, - computed: { - tooltipText() { - return this.$t( - `CONVERSATION.PRIORITY.OPTIONS.${this.priority.toUpperCase()}` - ); - }, - isUrgent() { - return this.priority === CONVERSATION_PRIORITY.URGENT; - }, - }, -}; - - - - diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ConversationAction.vue b/app/javascript/dashboard/routes/dashboard/conversation/ConversationAction.vue index 4c14ba2ab..718a990bb 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/ConversationAction.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/ConversationAction.vue @@ -36,27 +36,27 @@ export default { { id: null, name: this.$t('CONVERSATION.PRIORITY.OPTIONS.NONE'), - thumbnail: `/assets/images/dashboard/priority/none.svg`, + icon: 'i-woot-priority-empty', }, { id: CONVERSATION_PRIORITY.URGENT, name: this.$t('CONVERSATION.PRIORITY.OPTIONS.URGENT'), - thumbnail: `/assets/images/dashboard/priority/${CONVERSATION_PRIORITY.URGENT}.svg`, + icon: 'i-woot-priority-urgent', }, { id: CONVERSATION_PRIORITY.HIGH, name: this.$t('CONVERSATION.PRIORITY.OPTIONS.HIGH'), - thumbnail: `/assets/images/dashboard/priority/${CONVERSATION_PRIORITY.HIGH}.svg`, + icon: 'i-woot-priority-high', }, { id: CONVERSATION_PRIORITY.MEDIUM, name: this.$t('CONVERSATION.PRIORITY.OPTIONS.MEDIUM'), - thumbnail: `/assets/images/dashboard/priority/${CONVERSATION_PRIORITY.MEDIUM}.svg`, + icon: 'i-woot-priority-medium', }, { id: CONVERSATION_PRIORITY.LOW, name: this.$t('CONVERSATION.PRIORITY.OPTIONS.LOW'), - thumbnail: `/assets/images/dashboard/priority/${CONVERSATION_PRIORITY.LOW}.svg`, + icon: 'i-woot-priority-low', }, ], }; diff --git a/app/javascript/dashboard/routes/dashboard/settings/macros/MacroEditor.vue b/app/javascript/dashboard/routes/dashboard/settings/macros/MacroEditor.vue index 4e576e5ad..0b916a4ab 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/macros/MacroEditor.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/macros/MacroEditor.vue @@ -128,7 +128,7 @@ const saveMacro = async macroData => {