iachat/app/javascript/dashboard/helper
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
..
AnalyticsHelper fix: return if user is not present (#9768) 2024-07-15 17:42:35 +05:30
AudioAlerts fix: TypeError cannot read properties of undefined (reading '$store') (#9777) 2024-07-15 18:50:43 +05:30
CacheHelper feat: fallback to DB localStorage for idb names (#8682) 2024-01-15 15:08:15 +05:30
directives feat: SLA threshold card component (#9163) 2024-03-27 13:19:51 +05:30
specs feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
actionCable.js feat: Reconnect logic (#9453) 2024-06-03 15:54:19 +05:30
actionQueryGenerator.js fix: Unable to save automation "send email to team" (#6052) 2022-12-12 20:10:33 +05:30
agentHelper.js feat: Rewrite agentMixin to a helper (#9940) 2024-08-22 13:02:11 +05:30
APIHelper.js fix: Allow users to login even if they have access to more than 15 accounts (#4475) 2022-04-14 20:54:26 +05:30
auditlogHelper.js fix: TypeError: Cannot read properties of null (reading 'user_id') (#9884) 2024-08-07 14:42:01 +05:30
automationHelper.js feat: Add the ability to un-assign teams using automation (#9668) 2024-06-26 12:40:36 -07:00
commons.js feat: Add the ability add new portal (#5219) 2022-08-10 09:27:52 +05:30
conversationHelper.js fix: TypeError: t.messages.at is not a function (#9950) 2024-08-13 19:16:15 +05:30
customViewsHelper.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
DOMHelpers.js feat: add promise based loader for FB script (#9780) 2024-07-22 11:32:05 +05:30
downloadHelper.js feat: Add business hours in downloadable reports (#4674) 2022-05-27 09:26:59 +05:30
editorHelper.js feat: Support image resize in message signature (#8042) 2023-10-09 13:20:12 +05:30
featureHelper.js feat: Update the design for macros design page (#9999) 2024-08-21 18:27:53 +05:30
filterQueryGenerator.js chore: Support multiple values for automation message content (#7871) 2023-09-19 13:04:58 +05:30
flag.js chore: Replace packages with native functions (#5140) 2022-08-03 17:08:21 +05:30
inbox.js feat: add reauthorization banner for Facebook (#9553) 2024-05-30 09:41:04 +05:30
labelColor.js feat: Create portal UI improvements (#5261) 2022-08-18 17:11:19 +05:30
permissionsHelper.js fix: Remove user.permissions, resolve it from accounts (#9990) 2024-08-21 11:36:26 +05:30
portalHelper.js feat: Add support to uncategorized articles (#6912) 2023-05-02 15:35:26 +05:30
preChat.js feat: Support Regex validation for custom attributes (#7856) 2024-01-23 18:01:57 +04:00
pushHelper.js feat: Replace alertMixin usage with useAlert (#9793) 2024-07-23 16:41:11 +05:30
ReconnectService.js fix: Add a DISCONNECT_DELAY_THRESHOLD while fetching the conversations (#9757) 2024-07-10 20:28:30 -07:00
routeHelpers.js fix: Remove user.permissions, resolve it from accounts (#9990) 2024-08-21 11:36:26 +05:30
scriptHelpers.js chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
snoozeHelpers.js feat: Inbox header actions (Snooze/Delete) (#8858) 2024-02-06 08:54:15 +05:30
states.js Move src to dashboard (#152) 2019-10-16 14:36:17 +05:30
themeHelper.js feat: Add the option to toggle the dark/light color-scheme (#7662) 2023-08-03 12:21:45 -07:00
uploadHelper.js feat: Add upload under account scope (#7914) 2023-09-19 09:51:54 +05:30
URLHelper.js fix: Instagram audio rendering issues (#9957) 2024-08-14 13:24:00 +05:30
validations.js chore: Migrate all instances of old vuelidate to new v2 syntax [CW-3274] (#9623) 2024-07-30 15:08:22 +05:30