iachat/app/javascript/dashboard/composables
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
..
spec feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
emitter.js feat: Reconnect logic (#9453) 2024-06-03 15:54:19 +05:30
index.js feat: Replace alertMixin usage with useAlert (#9793) 2024-07-23 16:41:11 +05:30
route.js feat: setup composables for vue 2.7 (#9305) 2024-04-29 17:00:49 +05:30
store.js feat: Rewrite conversation/labelMixin to a composable (#9936) 2024-08-12 17:41:12 +05:30
useAccount.js feat: Rewrite accountMixin to a composable (#9914) 2024-08-12 18:53:30 +05:30
useAdmin.js feat: Replace alertMixin usage with useAlert (#9793) 2024-07-23 16:41:11 +05:30
useAgentsList.js feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
useConfig.js feat: Rewrite configMixin to a composable (#9921) 2024-08-14 12:56:30 +05:30
useConversationLabels.js feat: Rewrite conversation/labelMixin to a composable (#9936) 2024-08-12 17:41:12 +05:30
useDetectKeyboardLayout.js feat: Rewrite keyboardEventListener mixin to a composable (#9831) 2024-08-05 18:59:47 +05:30
useI18n.js fix: heatmap colors for dark mode [CW-3241] (#9278) 2024-04-25 10:23:15 +05:30
useKeyboardEvents.js fix: Keydown handler in useKeyboardEvent composable not registering correctly (#9896) 2024-08-06 19:34:36 +05:30
useKeyboardNavigableList.js feat: Replace the use of mentionSelectionKeyboard mixin to a composable (#9904) 2024-08-07 14:14:41 +05:30
useMacros.js feat: Replace the use of macroMixin with a composable (#9912) 2024-08-09 18:40:06 +05:30
useUISettings.js feat: Rewrite uiSettings mixin to a composable (#9819) 2024-07-23 21:27:22 +05:30