Sojan Jose
022383d942
chore: Upgrade to Rails 7 ( #6719 )
...
fixes : #6736
2023-05-06 10:44:52 +05:30
Sojan Jose
cf91e9eb58
chore: Use find_each instead of .all.each ( #6975 )
...
- Enable the rubocop Rails/FindEach
- Replace the .all.each with .find_each
This should let us avoid potential memory usage.
Motivation from the speedshop newsletter by Nate Berkopec
ref: https://www.rubyinrails.com/2017/11/16/use-find-each-instead-of-all-each-in-rails/
ref: https://linear.app/chatwoot/issue/CW-1480/chore-run-all-sidekiq-jobs-async
2023-04-25 09:32:35 +05:30
Muhsin Keloth
92fa9c4fdc
feat: Ability to improve drafts in the editor using GPT integration ( #6957 )
...
ref: https://github.com/chatwoot/chatwoot/issues/6436
fixes: https://linear.app/chatwoot/issue/CW-1552/ability-to-rephrase-text-in-the-editor-using-gpt-integration
---------
Co-authored-by: Sojan <sojan@pepalo.com >
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-04-24 23:52:23 +05:30
Tejaswini Chile
e3193dcabc
feat: Link help center portal to an Inbox ( #6903 )
2023-04-24 12:49:52 +05:30
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
Tejaswini Chile
e69e0bc984
Add status reopen activity message for api channel ( #6839 )
2023-04-10 19:12:20 +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
Shivam Mishra
00ee0478eb
feat: IndexedDB based caching for labels, inboxes and teams [CW-50] ( #6710 )
...
* feat: allow caching of labels in the account scope
* feat: send cache keys in account json response
* feat: kickstart web worker
* feat: setup basic architecture for workers
* feat: install idb
* feat: add datamanger
* fix: typos
* refactor: rename method
* feat: make init db a manual step
* refactor: separate accountIdFromRoute
* feat: cache enabled API client
* feat: enable caching for inboxes and labels
* feat: enable cache for team
* feat: manage exceptions for team
* feat: add team to data manager
* feat: add a generic listener
* refactor: send only cache keys
* refactor: separate validate method
* feat: add listeners
* feat: add event for revalidate
* feat: add cache keys endpoint
* refactor: fetch cache keys instead of full account data
* fix: key pattern
* feat: don't fetch account for cache_keys
* fix: cache key base class
* refactor: cache keys helper
* feat: add helper
* fix: cache-key update logic
* feat: delete indexeddb on logout
* feat: remove worker.js
* refactor: move data-manager
* refactor: name of file
* feat: add test for DataManager
* refactor: add fake idb to jest setup
* test: cache keys helper
* test: cache keys helper
* test: cache_keys in accounts controller
* refactor: remove cache_keys context
* feat: add policy for cache-keys
2023-03-27 12:16:25 +05:30
Tejaswini Chile
9c040af028
[CW-1348] fix: Update email regex validation for contact_inbox ( #6705 )
2023-03-21 10:51:12 +05:30
Tejaswini Chile
4f936aada5
[CW-1342]: Inbox deletion in background job ( #6708 )
2023-03-20 13:46:07 +05:30
Tarang
0c9f129c74
Fix issues with Microsoft Provider ( #6702 )
2023-03-20 12:27:43 +05:30
Tejaswini Chile
cf487c76a0
fix: delete user record if belongs to no account ( #6664 )
2023-03-15 21:49:49 +05:30
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
Tejaswini Chile
8f4d4798c2
feat: Backend changes for article and categories ordering ( #6655 )
2023-03-13 17:39:07 +05:30
Pranav Raj S
9e8eb293e9
fix: Allow integration apps to be listed by an agent ( #6587 )
...
* fix: Allow integration apps to be listed by an agent
* Fix rubocop
2023-03-02 13:02:21 +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
c998c84bc0
fix: Name missing when email is collected via email hook ( #6530 )
...
- The name is not updated when the email is updated via the email collect message. This PR fixes that.
2023-02-24 15:24:53 +05:30
Vishnu Narayanan
930863b25b
fix: sentry CHATWOOT-37A ActiveRecord::RecordNotUnique ( #6496 )
...
* fix: sentry CHATWOOT-37A #6457
* chore: add spec
---------
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2023-02-21 09:34:51 +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
Shubham Kumar
29025759d6
feat: Add webhook events for contact created, updated ( #6415 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-02-13 13:28:27 -08:00
Tejaswini Chile
c5b245977a
Added one more endpoint to attach tempfile and get logo ( #6407 )
2023-02-09 14:05:45 +05:30
Shivam Mishra
f8aa544aae
fix: order for canned response ( #6400 )
...
* feat: order canned response
Order canned responses by short_code match first and then with content
* Added specs
---------
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2023-02-06 12:53:48 -08:00
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
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
Pranav Raj S
ffb4bd0109
feat: Add the support for video calls with Dyte in the live-chat widget ( #6208 )
...
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
Co-authored-by: iamsivin <iamsivin@gmail.com >
2023-01-09 11:52:31 -08:00
Pranav Raj S
cbfbe6dbad
feat: Add backend APIs for Dyte integration ( #6197 )
...
- The backend changes required for Dyte Integration.
2023-01-09 12:37:18 +05:30
Pranav Raj S
aaacf9d4d2
feat: Allow users to disable marking offline automatically ( #6079 )
...
Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com >
2022-12-16 11:59:27 -08:00
Tejaswini Chile
0b5c82ad5f
fix: Save hostname for the custom domain in the portal ( #5984 )
...
* fix: Save hostname for the custom domain in the portal
2022-12-03 20:37:56 +05:30
Tejaswini Chile
3083f74d45
fix: Update inbox json, removing password ( #5981 )
...
- Filter restricted inbox attributes in APIs for agents
Fixes chatwoot/product#668
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2022-11-30 13:04:46 +03:00
Nithin David Thomas
85b52a1d3f
feat: Add a view for unattended conversations ( #5890 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-11-29 08:18:00 -08:00
Tejaswini Chile
a397f01692
fix: unassign team activity message ( #5969 )
2022-11-29 13:35:08 +05:30
Sojan Jose
b05d06a28a
feat: Ability to lock to single conversation ( #5881 )
...
Adds the ability to lock conversation to a single thread for Whatsapp and Sms Inboxes when using outbound messages.
demo: https://www.loom.com/share/c9e1e563c8914837a4139dfdd2503fef
fixes : #4975
Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com >
2022-11-25 13:01:04 +03:00
Sojan Jose
606fc9046a
feat: Allow users to mark a conversation as unread ( #5924 )
...
Allow users to mark conversations as unread.
Loom video: https://www.loom.com/share/ab70552d3c9c48b685da7dfa64be8bb3
fixes : #5552
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-11-24 10:55:45 +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
Muhsin Keloth
b5f7be0cd2
fix: Full name update when creating a conversation without an email id ( #5832 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-11-14 19:39:46 -08:00
Tejaswini Chile
48373628a1
fix: Macros authorizations ( #5779 )
...
Macros policy update.
ref: #5730
2022-11-07 17:46:00 -08:00
Tejaswini Chile
a23974d8b9
Feat/5733 Add private note action in macros ( #5805 )
2022-11-07 22:12:10 +05:30
Sojan Jose
8b659de73d
chore: Use connection_pool for redis ( #5790 )
...
fixes : #3199
2022-11-02 17:31:20 -07:00
Tejaswini Chile
a0606d36f6
fix: Set message sender to macros excution ( #5769 )
2022-10-31 19:33:12 +05:30
Tejaswini Chile
782165478b
fix: Update article count in portal admin dashboard ( #5647 )
...
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-10-21 13:43:15 -07:00
Pranav Raj S
95cc55d043
fix: Update pagination logic in the help center ( #5693 )
2022-10-20 20:05:17 -07:00
Tejaswini Chile
a274a1702a
chore: Macros enhancement ( #5609 )
...
- Fixed send_attachment and send_email_transcript
- Fixed duplicate activity messages
- Fixed Order of execution
Fixes : #5584
2022-10-20 19:41:48 -07:00
Muhsin Keloth
2e7ab484bd
fix: Discard invalid contact attributes in widget conversation end point ( #5664 )
...
Fixes : chatwoot/product#601
2022-10-18 13:16:29 -07:00
Tejaswini Chile
7419e413f4
fix: Added "None" option in bulk actions assignment menu ( #5585 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
2022-10-11 13:44:35 -07:00
Muhsin Keloth
b668723313
chore: Ability to change default account ( #5393 )
...
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Tejaswini Chile <tejaswini@chatwoot.com >
2022-10-05 17:31:12 -07:00
Tejaswini Chile
336c09e072
fix: Add all articles count to article API ( #5497 )
2022-09-27 12:35:53 -07:00
Tejaswini Chile
c1c57fb2cd
fix: Add slug to articles ( #5500 )
2022-09-27 12:27:18 -07:00
Tejaswini Chile
111016fe4c
fix: Add not found status if macro not found ( #5473 )
2022-09-21 14:10:35 +05:30