Tejaswini Chile
879a244f93
fix: Automations condition based quoted text ( #7272 )
2023-06-09 17:00:05 +05:30
Chamath K.B. Attanayaka
c715e396f0
feat: added input_select type message support for whatsapp ( #6886 )
...
- Added input_select message type support for Whatsapp Cloud API and Whatsapp 360dialog.
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-06-09 15:20:45 +05:30
Sojan Jose
7e89e3a34a
chore: Ensure template_sync timestamp is updated ( #7265 )
...
Fix for the cases where there are multiple channels with invalid provider config, which results in the templates sync scheduler failing to schedule jobs for valid channels.
fixes: https://linear.app/chatwoot/issue/CW-2032/bug-whatsapp-template-sync-failing-in-cloud
2023-06-07 17:18:24 +05:30
Sojan Jose
ffc6364690
chore: Improve Whatsapp Templates Sync ( #7210 )
...
- update the templates updated at, even if the API request fails ( to prevent jobs from stacking up in case of API failures upstream )
- sequence the job in batches of 25 requests per minutes schedule ( in case API response time is high, also not to send too many requests in a single batch )
- move the sync job re-rerun to 3 hours ( since we are updating the updated at even in case of failures )(prev 15 minutes )
Fixes: https://linear.app/chatwoot/issue/CW-1590
2023-05-29 22:23:22 +05:30
Shivam Mishra
958c0d7946
feat(perf): improve performance of conversation filter API [CW-1605] ( #7120 )
...
* feat(perf): don't use count
* feat(perf): include messages in the conversation query
* feat: include contact inboxes
* refactor: use blank?
2023-05-22 16:03:11 +05:30
Tejaswini Chile
b081fe08b8
feat: whatsapp duplicate message ( #7004 )
2023-05-03 15:18:20 +05:30
Tejaswini Chile
99dfe1d5af
feat: Enable template variables in channel greeting messages ( #6971 )
2023-04-26 20:23:46 +05:30
Shivam Mishra
5600b518ac
fix: validate template_params for WhatsApp ( #6881 )
...
- Add JsonSchemaValidator, which takes a declarative schema and validates it for a given property.
- Add specs for JsonSchemaValidator
- Enable the validator for template_params
2023-04-25 16:50:36 +05:30
Pranav Raj S
474e65f4c8
feat: Save in_reply_to from WhatsApp messages ( #6964 )
2023-04-23 18:28:14 -07:00
Shivam Mishra
a34729c153
feat: add activity message for priority change ( #6933 )
...
* feat: add priority const
* feat: add toggle priority method
* feat: update controller route and specs
* refactor: status change method
* refactor: abstract label change and mute activity
* feat: add priority change_activity
* fix: interpolation for previous_changes
* refactor: reduce cognitive complexity of priority_change_activity
* refactor: move priority activity message handler to a separate module
* refactor: move typing logic to a service
* refactor: tests to reduce complexity
* fix: typo
* fix: constants
* fix: priority conditions
* fix: add a response
* fix: argument destructuring in I18n.t
---------
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2023-04-20 16:41:53 +05:30
Muhsin Keloth
d1584eea72
feat: Add an action on automation to change the priority ( #6925 )
2023-04-20 11:31:33 +05:30
Tejaswini Chile
5cdc7d654a
feat: Support multiple emails in email transcript automation ( #6924 )
2023-04-19 16:55:25 +05:30
Tejaswini Chile
610463c980
fix: flatten template array for whatsapp templates ( #6880 )
...
- Refactor the WhatsApp template sync job
- Fix the issue when fetching the next set of templates
2023-04-11 17:48:17 +05:30
Tejaswini Chile
138afd9af6
Feat: Fetch whatsapp templates till next cursor ( #6835 )
2023-04-10 14:44:27 +05:30
Tejaswini Chile
d1ac33e98c
feat: Phone number based automation conditions ( #6783 )
2023-04-02 10:54:51 +05:30
Sojan Jose
7930902ec8
chore: Refactor Automation Specs ( #6796 )
...
The current way of writing specs for automation in one single file automation_listener isn't effective. Hence we are breaking down the specs for each class into separate spec files.
fixes: CW-1447
2023-03-30 21:02:52 +05:30
Muhsin Keloth
cef44bc557
fix: Check valid params exists in WhatsAapp payload ( #6780 )
...
Fixes #6779
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-03-30 12:10:59 +05:30
Sojan Jose
7e3a4d2c20
fix: Adds assignee as a participant during auto-assign ( #6789 )
...
- Ensures that the assignee is added as a participant during auto-assign
2023-03-30 11:39:53 +05:30
Sojan Jose
a4c9a2b2f2
chore: Support telegram edited_message events ( #6785 )
...
- Add support for telegram edited_message events: Update the user message back in the Chatwoot dashboard when updated by the contact on telegram
2023-03-29 18:48:16 +05:30
Chamath K.B. Attanayaka
6002394fcf
feat: Support input_select messages on telegram ( #5887 )
...
- Adding interactive button support for telegram for outgoing and incoming messages.
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-03-28 22:50:07 +05:30
Tejaswini Chile
d94f195284
feat: Add link for instagram profile link ( #6721 )
2023-03-23 13:34:42 +05:30
Pranav Raj S
eb7070d946
feat(poc): Disable widget based on country ( #6658 )
2023-03-14 09:09:57 -07:00
Sojan Jose
da76537011
chore: Search optimisations ( #6644 )
...
- Strip search term before searching
- order messages by created_at desc
- order contacts by last_activity_at desc
- order conversations by created_at desc
- Search only resolved contacts
- Optimize resolved contacts query
ref: #6583
2023-03-13 19:10:31 +05:30
Jacson Santos
2e95d3a173
fix: Duplicate conversations and contacts WA and Brazil numbers ( #6222 )
...
Resolves issue when receiving a message from Brazil Whatsapp number.
Fixes : #5840
Co-authored-by: Sojan <sojan@pepalo.com >
2023-03-13 13:20:53 +05:30
Tejaswini Chile
fbdc79df76
Fix: skip invalid access token from sentry ( #6639 )
2023-03-09 16:28:45 +05:30
Tejaswini Chile
dd8f8fc845
chore: Disable error tracking for Whatsapp error webhooks ( #6627 )
...
https://developers.facebook.com/docs/whatsapp/on-premises/webhooks/components
We are not going to handle the WhatsApp error component webhook event.
https://chatwoot-p3.sentry.io/issues/3957884597/?project=4504723538771968&query=is%3Aunresolved&referrer=issue-stream
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-03-08 20:50:59 +05:30
Clairton Rodrigo Heinzen
eb4da33cdc
feat: Ability to customize the base url for Whatsapp Cloud Service ( #6622 )
...
Configure a custom endpoint for Whatsapp Cloud Service via `WHATSAPP_CLOUD_BASE_URL`.
refs: #5142
2023-03-08 18:23:25 +05:30
Sojan Jose
d59fd6b747
chore: Ensure Template messages work even when bot is connected ( #6455 )
...
ref: #5592
2023-03-08 18:01:00 +05:30
Tejaswini Chile
60fee519bd
Exception tracker with account ( #6603 )
2023-03-03 12:14:44 +05:30
Sojan Jose
d4e7eaecce
feat: New APIs for search ( #6564 )
...
- Adding new API endpoints for search
- Migrations to add appropriate indexes
2023-02-28 22:00:36 +05:30
Pranav Raj S
7044eda281
chore: Add controllers for conversation participants ( #6462 )
...
Co-authored-by: Aswin Dev P.S <aswindevps@gmail.com >
Co-authored-by: Sojan Jose <sojan@chatwoot.com >
2023-02-15 16:33:31 -08:00
Pranav Raj S
949ddf68ba
chore: Refactor the notification service for participants ( #6461 )
2023-02-15 14:14:56 -08:00
Jacson Santos
73d14f204e
feat: Add the ability to receive contact(vCard) on a WhatsApp inbox ( #6330 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-02-07 19:36:38 -08:00
Sojan Jose
38aee8d9ea
chore: Switch to web-push gem ( #6390 )
...
- The previous gem, `webpush` was last updated a while ago. Also, with the recent ruby upgrade, we needed a fix for zaru/webpush#106 . Hence switching to the `web-push` gem where the issues are fixed.
2023-02-03 18:55:22 +05:30
Vishnu Narayanan
b1ec67d110
chore: upgrade ruby to 3.1.3 ( #5555 )
...
* chore: update to ruby 3.1.3
* chore: ping docker version to alpine3.16 for nodev16.x
Starting with Node 17, nodejs switched to OpenSSL3. The docker builds
are installing node18.xx with alpine-3.1.3.
From Node.js 17's announcement post:
If you hit an ERR_OSSL_EVP_UNSUPPORTED error in your application
with Node.js 17, it’s likely that your application or a module you’re
using is attempting to use an algorithm or key size which is no longer
allowed by default with OpenSSL 3.0. A new command-line option,
--openssl-legacy-provider, has been added to revert to the legacy
provider as a temporary workaround for these tightened restrictions.
Looks like a webpack issue. This is fixed in webpacl 5+ and we are on
webpack4 at the moment.
Solutions
Upgrade webpack.
Pin nodejs version to be 16.x.x
Use --openssl-legacy-provider as a workaround.
Pin docker version to alpine3.16 branch to have node16.x by default
ref:
https://github.com/chatwoot/chatwoot/pull/5555#issuecomment-1379778532
* chore: update webmock
* chore: fix ruby gem path in dockerfile
* chore: switch to node16 in circleci
* chore: update ruby version in linux installer script
* chore: update ruby version in linux installer script
* chore: fix circleci
* chore: fix circleci
* feat: upgrade node version to 16.x in linux installer
* chore: update systemd files
Co-authored-by: Sojan Jose <sojan@chatwoot.com >
2023-01-24 23:55:07 +05:30
Sojan Jose
e2ccac78d2
fix: Error when unsupported Whatsapp message status ( #6295 )
...
fixes error when unsupported WhatsApp message status
2023-01-19 18:52:38 +05:30
Tejaswini Chile
00cbdaa8ca
Feat: Support for Microsoft Oauth in Email Channel ( #6227 )
...
- Adds the backend APIs required for Microsoft Email Channels
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Sojan <sojan@pepalo.com >
2023-01-17 02:39:05 +05:30
Sojan Jose
c16624dc5d
fix: Duplicate messages in Whatsapp Channel ( #6220 )
...
fixes : #5433
2023-01-10 18:57:34 +05:30
Sojan Jose
fbdc921ee5
chore: Fix sentry errors for Instagram channel ( #6189 )
...
fixes : #6188
2023-01-06 17:18:31 +05:30
OMAR.A
7b5f1e4876
feat: Support for telegram incoming location message ( #6158 )
...
Support for incoming location messages in the telegram channel.
ref: #3398
2023-01-04 16:11:54 +05:30
Tejaswini Chile
a08099bbcc
fix: Custom attr filter on conversations ( #5978 )
2022-12-02 10:37:32 +05:30
giquieu
0cad3bed71
fix: Files in Whatsapp arrives with a different Name ( #5907 )
...
- Add file name parameter to the WhatsApp attachment payload
fixes : #4481
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2022-11-29 16:54:49 +03:00
Clairton Rodrigo Heinzen
edcbd53425
feat: Read/Delivery status for Whatsapp Cloud API ( #5157 )
...
Process field statuses received in webhook WhatsApp cloud API
ref: #1021
Co-authored-by: Sojan <sojan@pepalo.com >
Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com >
2022-11-29 15:51:37 +03:00
Tejaswini Chile
fc9fc5a661
fix: destroy bulk service ( #5921 )
2022-11-25 22:46:50 +05:30
Sojan Jose
8ea0660862
chore: Add reauthorization prompt for Whatsapp Channel ( #5929 )
...
- Add reauthorization prompt for Whatsapp Channel
fixes : #5782
2022-11-24 14:50:32 +03:00
Tejaswini Chile
9bfbd528ef
feat: Assign team with teams none option ( #5871 )
2022-11-17 14:15:16 +05:30
Tejaswini Chile
e85f998a08
feat: Remove labels in macro ( #5875 )
2022-11-17 12:30:47 +05:30
Tejaswini Chile
826a735cdb
fix: Assign agent action changes ( #5827 )
2022-11-15 13:15:27 +05:30
Fayaz Ahmed
9eb861a3b7
feat: Custom attributes in automations and refactor ( #4548 )
...
* Custom attributes
* Custom Attrs Manifest
* Fix dropdown values for custom attributes
* Handle edit mode for custom attributes
* Ported duplicate logic to a mixin
* fix Code climate issue
* Fix Codeclimate complexity warning
* Bug fix - Custom attributes getting duplicated
* Bug fixes and Code Climate issue fix
* Code Climate Issues Breakdown
* Fix test spec
* Add labels for Custom attributes in dropdown
* Refactor
* Refactor Automion mixin
* Refactor Mixin
* Refactor getOperator
* Fix getOperatorType
* File name method refactor
* Refactor appendNewCondition
* spec update
* Refactor methods
* Mixin Spec update
* Automation Mixins Test Specs
* Mixin Spec Rerun
* Automation validations mixin spec
* Automation helper test spec
* Send custom_attr key
* Fix spec fixtures
* fix: Changes for custom attribute type and lower case search
* fix: Specs
* fix: Specs
* fix: Ruby version change
* fix: Ruby version change
* Removes Lowercased values and fix label value in api payload
* Fix specs
* Fixed Query Spec
* Removed disabled labels if no attributes are present
* Code Climate Fixes
* fix: custom attribute with indifferent access
* fix: custom attribute with indifferent access
* Fix specs
* Minor label fix
* REtrigger circle ci build
* Update app/javascript/shared/mixins/specs/automationMixin.spec.js
* Update app/javascript/shared/mixins/specs/automationMixin.spec.js
* fix: Custom attribute case insensitivity search
* Add missing reset action method to input
* Set team_input to single select instead of multiple
* fix: remove value case check for date,boolean and number data type
* fix: cognitive complexity
* fix: cognitive complexity
* fix: Fixed activity message for automation system
* fix: Fixed activity message for automation system
* fix: Fixed activity message for automation system
* fix: codeclimate
* fix: codeclimate
* fix: action cable events for label update
* fix: codeclimate, conversation modela number of methods
* fix: codeclimate, conversation modela number of methods
* fix: codeclimate, conversation modela number of methods
* fix: codeclimate, conversation modela number of methods
* Fix margin bottom for attachment button
* Remove margin bottom to avoid conflict from macros
* Fix automation action query generator using the right key
* fix: not running message created event for activity message
* fix: not running message created event for activity message
* codeclimate fix
* codeclimate fix
* codeclimate fix
* Update app/javascript/dashboard/mixins/automations/methodsMixin.js
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* Update app/javascript/shared/mixins/specs/automationHelper.spec.js
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* Update app/javascript/dashboard/helper/automationHelper.js
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* Update app/javascript/dashboard/mixins/automations/methodsMixin.js
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Tejaswini <tejaswini@chatwoot.com >
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Sojan Jose <sojan@pepalo.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2022-11-10 10:53:29 +05:30
salman652
6ff0c93659
feat: Ability to receive location on whatsapp inbox ( #5742 )
...
- Ability to receive location messages on WhatsApp Inbox
ref: https://github.com/chatwoot/chatwoot/issues/3398
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2022-11-07 21:36:47 -08:00