iachat/app/javascript/dashboard/store/modules
Fayaz Ahmed b474929f5e
chore: Replace eventBus with mitt.js [CW-3275] (#9539)
# Replace the deprecated `eventBus` with mitt.js

## Description

Since eventBus and it's respective methods are deprecated and removed
from all future releases of vue, this was blocking us from migrating.
This PR replaces eventBus with
[mitt](https://github.com/developit/mitt). I have created a wrapper
mitt.js to simulate the same old event names so it's backwards
compatible, without making a lot of changes.


Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

1. Made sure all the places we're listening to bus events are working as
expected.
2. Respective specsf or the events from mitt.


## 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
- [x] 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
- [x] Any dependent changes have been merged and published in downstream
modules
2024-05-31 15:50:36 +05:30
..
contacts feat: exporting contacts takes the filters into account (#9347) 2024-05-07 20:18:36 -07:00
conversations chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
helpCenterArticles chore: Refactors help center article url helper (#8269) 2023-11-04 04:18:34 +05:30
helpCenterCategories feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
helpCenterPortals feat: Adds support for logo in portal settings page [CW-2585] (#8354) 2023-11-17 19:58:27 -08:00
notifications feat: Split reconnect logic PR (store) (#9520) 2024-05-30 12:29:55 +05:30
specs chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
teams feat: IndexedDB based caching for labels, inboxes and teams [CW-50] (#6710) 2023-03-27 12:16:25 +05:30
accounts.js feat: add upgrade banner for SLA feature (#9240) 2024-04-16 16:59:39 -07:00
agentBots.js feat: Allow disconnecting agent bots (#6245) 2023-01-13 22:28:45 +05:30
agents.js fix: Update the relevant agent presence only (#5220) 2022-08-09 12:32:09 +05:30
attributes.js feat: Custom fields in pre-chat form (#4189) 2022-04-19 12:47:29 +05:30
auditlogs.js feat: audit logs UI (#6803) 2023-04-17 19:11:05 +05:30
auth.js feat: Show a confirmation banner if the email is not verified (#8808) 2024-02-02 12:31:29 -08:00
automations.js feat: add a common upload endpoint (#7806) 2023-08-31 10:36:02 +07:00
bulkActions.js feat: Adds support for all snooze option in bulk actions (#9361) 2024-05-09 19:27:31 +05:30
campaigns.js feat: more events tracking for SaaS (#6234) 2023-01-17 21:53:40 -08:00
cannedResponse.js fix: Welcome email copy changes and canned response API error handling [cw-1290] (#7054) 2023-05-15 16:17:55 +05:30
contactConversations.js feat: Add the ability to send attachment in new conversation (#7913) 2023-10-10 09:34:36 +05:30
contactLabels.js feat: Ability to add label for contact page (#2350) 2021-06-14 10:36:00 +05:30
contactNotes.js feat: Add notes for Contacts (#3273) 2021-10-25 18:35:58 +05:30
conversationLabels.js Feature: Improve label experience (#975) 2020-06-25 21:04:03 +05:30
conversationMetadata.js Feature: Contact Panel with conversation details (#397) 2020-01-01 22:30:43 +05:30
conversationPage.js feat: Add Advanced Conversation Filters (#3239) 2021-11-18 19:15:02 +05:30
conversationSearch.js fix: Search improvements and bug fixes [CW-1604] (#6985) 2023-04-27 13:20:29 +05:30
conversationStats.js Chore: Move conversationStats to a seperate module (#962) 2020-06-14 14:07:52 +05:30
conversationTypingStatus.js fix: Disable typing indicator for user when agent is typing a private note (#3303) 2021-11-01 12:20:07 +04:00
conversationWatchers.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
csat.js feat: more CSAT filters (#7038) 2023-05-18 22:50:46 +05:30
customViews.js feat: Split reconnect logic PR (store) (#9520) 2024-05-30 12:29:55 +05:30
dashboardApps.js feat: Add the ability to create dashboard apps from the UI (#4924) 2022-07-08 15:55:32 +07:00
draftMessages.js feat: Add reply editor mode to the store (#7515) 2023-07-13 14:56:53 +05:30
inboxAssignableAgents.js feat: Add Bulk actions to conversations (#4647) 2022-06-03 11:12:22 +05:30
inboxes.js feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
inboxMembers.js Chore: Inbox Members API improvements (#3008) 2021-09-14 11:55:02 +05:30
integrations.js feat: Add APIs for linear integration (#9346) 2024-05-22 13:37:58 +05:30
labels.js feat: multiple UX improvements to labels (#7358) 2023-06-25 18:49:49 +05:30
macros.js feat: Add API module and Vuex store for Macros (#5603) 2022-10-11 22:54:17 -07:00
reports.js feat: Add the bot performance reports UI (#9036) 2024-03-14 23:04:14 -07:00
sla.js feat: add option to delete and disable edits for SLA (#9108) 2024-03-15 12:21:32 +05:30
SLAReports.js feat: Download SLA reports (#9201) 2024-04-08 20:51:34 -07:00
teamMembers.js feat: Set up store for teams (#1689) 2021-03-15 18:35:56 +05:30
userNotificationSettings.js Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30
webhooks.js feat: Add event subscription option to webhooks (#4540) 2022-04-25 17:44:42 +05:30