iachat/app/javascript/dashboard/components/widgets/conversation
Sivin Varghese c63a6ed8ec
feat: Rewrite agentMixin to a helper (#9940)
# Pull Request Template

## Description

This PR will replace the usage of `agentMixin`with the utility helpers
functions.

**Files updated**

1. dashboard/components/widgets/conversation/contextMenu/Index.vue
2. dashboard/components/widgets/conversation/ConversationHeader.vue
**(Not used)**
3. dashboard/routes/dashboard/commands/commandbar.vue
4. dashboard/routes/dashboard/conversation/ConversationAction.vue
5. dashboard/routes/dashboard/conversation/ConversationParticipant.vue

Fixes
https://linear.app/chatwoot/issue/CW-3442/rewrite-agentmixin-mixin-to-a-composable

## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

**Test cases**

1. See agent list sorting based on availability, if agents are on the
same status, then sorted by name.
2. Test actions like assigning/unassigning agent from conversation
sidebar, CMD bar, Context menu.
3. Test actions like adding/removing participants from conversation
sidebar.
4. See agent list is generated properly, none value.


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] 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
- [x] 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
2024-08-22 13:02:11 +05:30
..
advancedFilterItems chore: RTL configuration (#6521) 2023-02-23 17:50:44 +05:30
bubble fix: Instagram audio rendering issues (#9957) 2024-08-14 13:24:00 +05:30
components feat: Replace the use of keyboardEventListener mixin to a composable (Part -2) (#9892) 2024-08-07 15:43:11 +05:30
contextMenu feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
conversation feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
conversationBulkActions feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
conversationCardComponents fix: TypeError cannot read properties of undefined (reading 'id') (#9947) 2024-08-13 16:28:41 +05:30
EmptyState feat: Rewrite accountMixin to a composable (#9914) 2024-08-12 18:53:30 +05:30
helpers chore: Migrate all instances of old vuelidate to new v2 syntax [CW-3274] (#9623) 2024-07-30 15:08:22 +05:30
linear feat: Add issue status in linear issue search item (#9598) 2024-08-08 13:44:08 +05:30
specs feat: Replace alertMixin usage with useAlert (#9793) 2024-07-23 16:41:11 +05:30
stories feat: Add the ability to receive contact(vCard) on a WhatsApp inbox (#6330) 2023-02-07 19:36:38 -08:00
WhatsappTemplates feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
AvailabilityStatusBadge.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
CannedResponse.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ChatFilter.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
ConversationAdvancedFilter.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ConversationBasicFilter.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ConversationBox.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ConversationCard.vue feat: Rewrite conversations mixin to a helper (#9931) 2024-08-13 15:15:04 +05:30
ConversationHeader.vue feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
EmailTranscriptModal.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
FilterItem.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
Message.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
MessagePreview.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
MessageSignatureMissingAlert.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
MessagesView.vue feat: Rewrite configMixin to a composable (#9921) 2024-08-14 12:56:30 +05:30
MoreActions.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
OnboardingFeatureCard.vue feat: Redesign onboarding screen (#9939) 2024-08-16 13:01:22 +05:30
OnboardingView.vue feat: Redesign onboarding screen (#9939) 2024-08-16 13:01:22 +05:30
PriorityMark.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ReplyBox.vue feat: Replace rtlMixin to a composable (#9924) 2024-08-12 15:50:21 +05:30
ReplyEmailHead.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
ReplyToMessage.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30
TagAgents.vue feat: Replace the use of mentionSelectionKeyboard mixin to a composable (#9904) 2024-08-07 14:14:41 +05:30
VariableList.vue feat: Eslint rules (#9839) 2024-08-05 14:02:16 +05:30