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
Nithin David Thomas
018c468303
chore: Refactors widget to use i18n locale for articles ( #7958 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-09-21 18:24:03 +05:30
Nithin David Thomas
fabb3c8da4
fix: Help Center articles are not available on the widget [CW-2534] ( #7954 )
2023-09-21 17:06:15 +05:30
Nithin David Thomas
8d43101892
chore: Improvements to dark mode usage in widget ( #7873 )
2023-09-11 09:31:11 +05:30
Muhsin Keloth
03bbd048a7
chore: Add action to set dark mode from the react-native-widget ( #7167 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-05-22 15:34:09 -07:00
Pranav Raj S
b8dae07c0f
feat: Add an option to use darkMode only in the widget ( #7151 )
2023-05-22 09:05:05 +05:30
Nithin David Thomas
2f2cdd7e7c
feat: Hides dismissed campaigns while browsing [cw-33] ( #6842 )
...
* Chore: moves localstorage helper as a shared utility and refactors constants
* Refactors constants file
* feat: Hides dismissed campaigns while browsing
* Snoozes all campaigns for an hour after dismissing
* Fixes error with date parsing
* Snooze ongoing campaigns
* Review fixes
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-04-25 22:38:36 +05:30
Shivam Mishra
a040aee96b
feat: allow adding custom attributes to conversations from the SDK ( #6782 )
...
* feat: add conversation attributes method to sdk and widget app
* feat: add endpoints to update custom attributes
* refactor: update SDK api
* feat: add api and actions for conversation updates
* fix: error message
* test: custom attributes on conversations controller
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-04-04 08:57:55 +05:30
Nithin David Thomas
70cb0a8ed9
fix: Use account locale as the default locale on widget ( #6248 )
...
* fix: Use account locale as the default locale on widget
* Refactors check for invalid locale
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-01-16 12:14:35 +05:30
Nithin David Thomas
abe439594e
fix: Add preference to choose browser lang for widget settings page ( #5726 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-10-25 15:04:29 -07:00
Sivin Varghese
a773ad7d08
fix: Read status not updated in widget popout mode ( #5454 )
2022-09-19 15:35:41 -07:00
Sojan Jose
f71980bd95
chore: Enhance contact merge action for identified users ( #4886 )
...
- Discard conflicting keys
- Do not merge if there is already an identified contact
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-06-23 15:48:56 +05:30
Pranav Raj S
7bb8186e43
chore: Update self-closing tag eslint config ( #4826 )
...
* chore: Fix self-closing tag issues
* Fix merge conflicts
Co-authored-by: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com >
2022-06-10 19:29:52 +05:30
Fayaz Ahmed
ef850eda0f
feat: Add the SDK method to programatically toggle live chat bubble ( #4223 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-05-06 19:30:48 +05:30
Muhsin Keloth
4f3a271355
chore: Add custom attributes in campaign.triggered event ( #4463 )
2022-04-20 10:49:52 +05:30
Muhsin Keloth
26f23a6e21
feat: Custom fields in pre-chat form ( #4189 )
2022-04-19 12:47:29 +05:30
Sivin Varghese
14e6a5d6b0
fix: Background dark mode colour issue in campaign view ( #4416 )
2022-04-08 10:54:51 +05:30
Sivin Varghese
5b490bc8cc
chore: fix scroll bar color in the dark mode ( #4404 )
2022-04-07 07:14:40 +05:30
Muhsin Keloth
eff3a50316
fix: Disable showing read messages in unread view ( #4324 )
2022-03-31 17:35:39 +05:30
Pranav Raj S
6c94768bdb
feat: Add flat design for widget ( #4065 )
2022-02-25 16:18:18 +05:30
Nithin David Thomas
94209d29cb
fix: Fixes widget unread view blocking parent page ( #3658 )
...
Co-authored-by: Pranav <pranav@chatwoot.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
2022-01-12 12:27:16 -08:00
Pranav Raj S
9c31d7c672
feat: Use vue-router on widget route management ( #3415 )
...
* feat: Add vue-router to widget
Co-authored-by: Pranav <pranav@chatwoot.com >
* Move to dynamic imports
* Move to routerMixin
* Fix popup button display
* Remove unnecessary import
* router -> route
* Fix open state
* Fix issues
* Remove used CSS
* Fix specs
* Fix specs
* Fix widgetColor specs
* Fix mutation specs
* Fixes broken lint errors
* Fixes issues with widget flow
Co-authored-by: Nithin <nithin@chatwoot.com >
Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2022-01-12 16:25:27 +05:30
Sanju
2c3c1888f1
Enhancement: Show unread marker on widget bubble ( #3390 )
...
* add unread marker
* add removeClass in IFramehelper
* Update app/javascript/sdk/sdk.js
* Update app/javascript/sdk/sdk.js
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2021-11-25 20:25:14 +05:30
Pranav Raj S
1a8b8f0900
chore: Move referrerHost to appConfig store ( #3433 )
2021-11-22 15:05:29 +05:30
Muhsin Keloth
a2764e5c1d
chore: Update deleteCustomAttribute method in SDK ( #3334 )
2021-11-15 14:56:35 +05:30
Muhsin Keloth
c6326993df
feat: Show pre-chat form before triggering the campaign ( #3215 )
2021-11-11 19:02:16 +05:30
Muhsin Keloth
5c30bc3e2b
fix: Read message appears on page refresh in the widget ( #3175 )
2021-10-14 11:51:00 +05:30
Muhsin Keloth
6bfa551c85
fix: Trigger campaigns only during business hours ( #3085 )
...
Fixes #2433
2021-10-12 17:58:33 +05:30
koudshoorn
af1d8c0ee5
feat: Fixes #1940 WCAG support for website widget ( #2071 )
...
Co-authored-by: Kaj Oudshoorn <kaj@milvum.com >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2021-09-02 12:13:53 +05:30
Nithin David Thomas
70d41ffcdd
fix: Smoothens out opening animation for widget ( #2789 )
2021-08-14 08:40:29 +05:30
Nithin David Thomas
9c257578b0
fix: Fixes unread view blocking page scroll ( #2727 )
...
* fix: Fixes unread view blocking page scroll
* Update sdk.js
* Fixes the height issue for unread view
* Fix unread message position issue
* Code climate fixes
* Fixes height issue for large messages
* Fixes height issue on unread view
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2021-08-07 11:56:15 +05:30
Muhsin Keloth
f0f66c7da6
feat: Add ability to create a new conversation if the previous conversation is resolved ( #2512 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-06-30 21:09:44 +05:30
Muhsin Keloth
e41957ae02
fix: Campaign message is hiding the conversation view after opening the widget ( #2428 )
...
* Fix the widget triggered- campain collision
* fix spelling mistakes
2021-06-15 08:53:16 -07:00
Muhsin Keloth
fb2f3ff89f
feat: Create campaign conversation only if user interacts with the bubble ( #2335 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2021-06-15 20:09:42 +05:30
Pranav Raj S
20a0d381a7
fix: Resolve infinite loop with campaign API call ( #2290 )
...
Co-authored-by: Muhsin <muhsinkeramam@gmail.com >
2021-05-18 12:15:23 +05:30
Muhsin Keloth
610a7c661e
chore: Execute campaigns based on matching URL ( #2254 )
2021-05-17 21:38:35 +05:30
Muhsin Keloth
3fc646f330
feat: Add campaigns in web widget ( #2227 )
...
* add campaign store(getter, actions and mutations)
* add campaign store module
* add get campaigns api
* add fetch campaign action widget load
* add specs
* code cleanup
* trigger campaig api fixes
* integrate campaign trigger action
* code cleanup
* revert changes
* trigger api fixes
* review fixes
* code beautification
* chore: Fix multiple campaigns being send because of race condition
* chore: rubocop
* chore: Fix specs
* disable campaigns
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com >
Co-authored-by: Sojan <sojan@pepalo.com >
2021-05-10 00:31:00 -07:00
Nithin David Thomas
3043ee5058
Fix: Hide prechat for sessions inititated with setUser ( #1914 )
2021-03-20 17:44:20 +05:30
Muhsin Keloth
7d5493ac78
chore: enable close button in react-native widget ( #1910 )
2021-03-15 22:40:26 +05:30
Muhsin Keloth
d8cb03525f
chore: add post message event for sending cookie to rn widget ( #1860 )
2021-03-05 21:47:38 -08:00
Pranav Raj S
037ffc7419
feat: Add a pre-chat form on widget ( #1769 )
2021-02-16 00:14:13 +05:30
Muhsin Keloth
f9bd447912
chore: Upgrade vue-i18n to 8.x ( #1383 )
...
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com >
2020-12-12 12:08:36 +05:30
Pranav Raj S
666948b809
chore: Reduce the click area on Branding ( #1340 )
2020-10-15 00:11:47 +05:30
Pranav Raj S
45cd949c40
feat: Add a popout option on webwidget ( #1174 )
...
* feat: Add a popout option on webwidget
2020-08-28 17:39:46 +05:30
Sojan Jose
cdd385b269
feat: Custom Attributes for contacts ( #1158 )
...
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-08-21 19:30:27 +05:30
Pranav Raj S
0adbc346df
feat: Add an extended bubble design for the widget ( #1123 )
...
* feat: Add a new design for chat bubble
Signed-off-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
* Add i18n
* Fix stye issues
* Set fixed font-size
* Update docs for bubble
2020-08-09 16:07:32 +05:30
Nithin David Thomas
49db9c5d8a
Adds unread message bubbles for widget ( #943 )
...
Co-authored-by: Sojan <sojan@pepalo.com >
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com >
2020-07-08 00:04:44 +05:30
Pranav Raj S
59f4dd7ebe
Feature: Introduce locale in web-widget SDK ( #871 )
...
* Introduce setLocale in SDK
Co-authored-by: Sojan <sojan@pepalo.com >
2020-05-17 16:15:53 +05:30
Pranav Raj S
f28ec29b8c
Feature: Customise widget for bot conversations ( #834 )
...
* Feature: Customise widget for bot conversations
2020-05-09 22:02:43 +05:30
Pranav Raj S
c7120e9637
Chore: Add translated languages to account settings ( #826 )
...
* Add available languages in account settings
Co-authored-by: Sojan <sojan@pepalo.com >
2020-05-06 13:38:36 +05:30