5f2b2f4221
feat: APIs to assign agents_bots as assignee in conversations ( #12836 )
...
## Summary
- add an assignee_agent_bot_id column as an initital step to prototype
this before fully switching to polymorphic assignee
- update assignment APIs and conversation list / show endpoints to
reflect assignee as agent bot
- ensure webhook payloads contains agent bot assignee
[Codex
Task](https://chatgpt.com/codex/tasks/task_e_6912833377e48326b6641b9eee32d50f )
---------
Co-authored-by: Pranav <pranav@chatwoot.com >
2025-11-18 18:20:58 -08:00
Pranav and GitHub
8faccba052
chore: Update the precision of the updated_at timestamp in conversation model ( #10875 )
...
Use to_f instead of to_i to preserve the millisecond precision in the UI.
2025-02-10 20:22:11 -08:00
Pranav and GitHub
02000de905
chore: Add updated_at attribute to the conversation event ( #10873 )
...
This PR adds updated_at attribute to the conversation event.
2025-02-10 19:33:26 -08:00
Sojan Jose and GitHub
4e28481f27
feat: Conversation API to return applied_sla and sla_events ( #9174 )
...
* chore: Add sla_events to push_event_data
* chore: Return SLA details in the API
* chore: feature lock sla push event data
* Update _conversation.json.jbuilder
* chore: rubocop fixes
2024-04-01 23:30:07 +05:30
Sojan Jose and GitHub
3dae3ff3ad
feat: Conversation update API for sla_policy_id ( #8973 )
...
- Add an endpoint for updating conversation attributes (priority / sla_policy_id )
- Swagger spec
- minor chores around the conversation API/spec
Fixes: https://linear.app/chatwoot/issue/CW-2100/feat-backend-api-to-update-the-sla-of-a-conversation
2024-03-14 17:22:32 +05:30
Pranav Raj S and GitHub
890515edfd
feat(perf): Cache labels on the conversation model ( #8527 )
2023-12-11 18:27:55 -08:00
Pranav Raj S and GitHub
ebefb2e201
fix: Consider the emails where in-reply-to header has multiple values ( #7715 )
...
- Return the first message id for now to avoid the errors and subsequently missing the message.
- Use .last instead of .first to avoid expensive query.
- Fix array response in response bot.
Fixes: https://linear.app/chatwoot/issue/CW-2358/activerecordstatementinvalid-pgdatatypemismatch-error-argument-of-and
2023-08-11 17:53:57 -07:00
Pranav Raj S and GitHub
bafff90f18
chore: Add account_id scope for conversation.messages ( #7707 )
2023-08-10 23:02:53 -07:00
Pranav Raj S and GitHub
1a06bfd69c
fix: Force account_id in message filters ( #7705 )
2023-08-10 21:58:25 -07:00
Pranav Raj S and GitHub
1cac2e86c3
fix: Limit count query to return only 10 values ( #7704 )
2023-08-10 19:30:02 -07:00
Jordan Brough and GitHub
a7bc855486
refactor: Remove deprecated "belongs_to" relationships in Message ( #7434 )
...
- Remove the deprecated columns in message model
2023-07-27 11:41:34 +03:00
Pranav Raj S and GitHub
93daaea19b
feat: Add a sort option for conversations waiting for a reply from an agent ( #7364 )
2023-06-21 13:20:39 -07:00
Shivam Mishra and GitHub
cac9fe1880
Revert "feat(perf): update query to reduce N+1 impact [CW-1926] ( #7228 )" ( #7271 )
...
This reverts commit f28533bc47 .
2023-06-15 16:23:56 +05:30
Sojan Jose and GitHub
117d5301b4
chore: API documentation updates for CSAT surveys ( #7255 )
...
- Expose conversation uuid in APIs
- swagger documentation for cast survey update via public/message/update endpoints
- swagger documentation for survey/responses/conversation_uuid endpoint
Fixes : #6328
2023-06-05 21:14:01 +05:30
Shivam Mishra and GitHub
f28533bc47
feat(perf): update query to reduce N+1 impact [CW-1926] ( #7228 )
...
* feat: update query to reduce N+1 impact
* feat: remove channel eager loading
fixes the error: ActiveRecord::EagerLoadPolymorphicError Exception: Cannot eagerly load the polymorphic association :channel
* test: fix search test
* chore: revert change
2023-06-02 11:11:55 +05:30
Shivam Mishra and GitHub
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
59433d9d3c
feat: Adds the ability to sort conversations ( #6853 )
...
* Add sort filter
* Change UI
* Change filter
* Complete sort by filters
* Style fixes
* Fix default sort
* Update app/javascript/dashboard/components/widgets/conversation/ConversationBasicFilter.vue
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* Update app/javascript/dashboard/components/widgets/conversation/ConversationBasicFilter.vue
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* Update app/javascript/dashboard/components/ChatList.vue
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
* Added translation
* Added review fixes
* Add more updates
* Code cleanups
* Update last_activity_at on message received event
* Cleans up the design for chatlist and icons
* Fix sort
* Remove inline styles
* Add tag along with the title
---------
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com >
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com >
2023-05-05 17:08:32 -07:00
Shivam Mishra and GitHub
0874aeee2d
feat: priority UI ( #6966 )
2023-04-24 19:00:08 +05:30
Sivin Varghese and GitHub
9782f71bdf
feat: Shows the last activity, created at timestamp in the same row ( #6267 )
2023-01-23 21:50:16 +05:30
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
Pranav Raj S and GitHub
66044a0dc3
feat: Show last non-activity messages in the chat list ( #5864 )
2022-11-16 15:43:55 -08:00
Geophilus Durairaj and GitHub
bd445216e9
fix: DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated ( #5560 )
...
fixes the warning: Rendering actions with '.' in the name is deprecated
2022-10-05 17:24:34 -07:00
791d90c6b7
chore: Migrate PubSub Token to contact inbox ( #3434 )
...
At present, the websocket pubsub tokens are present at the contact objects in chatwoot. A better approach would be to have these tokens at the contact_inbox object instead. This helps chatwoot to deliver the websocket events targetted to the specific widget connection, stop contact events from leaking into other chat sessions from the same contact.
Fixes #1682
Fixes #1664
Co-authored-by: Pranav Raj S <pranav@chatwoot.com >
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com >
2021-11-22 23:32:17 +05:30
Pranav Raj S and GitHub
57abdc4d5f
feat: Display "Snoozed Until" time on conversation header ( #3028 )
2021-09-29 19:33:51 +05:30
Tejaswini Chile and GitHub
54bdb2957f
feat: Add assignee last seen to conversations ( #3069 )
...
- Adds assignee last seen attribute to conversations
2021-09-23 20:59:10 +05:30
Muhsin Keloth and GitHub
0c24df96a8
chore: Conversation custom attribute APIs ( #3024 )
2021-09-22 10:46:48 +05:30
Nithin David Thomas and GitHub
c99c63cd79
Feat: Assign conversations to teams. ( #1849 )
2021-03-15 18:37:03 +05:30
Sojan Jose and GitHub
5d5e75ce9c
Chore: Fix Deserialisation Error in Jobs ( #1683 )
...
- Ignore Jobs on de-serialization error
- Show empty conversations in chat UI
Fixes : #1480
2021-01-31 13:05:07 +05:30
Pranav Raj S and GitHub
b6ca77158c
fix: Limit the number of unread messages returned in the API ( #1504 )
2020-12-10 23:30:38 +05:30
Pranav Raj S and GitHub
870a24126e
fix: Display assignee only if the assignee has access to the account ( #1500 )
2020-12-08 22:49:47 +05:30
Pranav Raj S and GitHub
3bb2d27646
chore: Use agent partial instead of user in conversation API ( #1333 )
2020-10-10 21:57:09 +05:30
399f9e004a
fix: Use last_activity_at instead of updated_at for sorting ( #1281 )
...
Co-authored-by: Akash Srivastava <akash.srivastava.1911@gmail.com >
2020-10-05 22:52:43 +05:30
Sony Mathew and GitHub
fc7b84d612
Chore: Fix N+1 queries in dashboard side ( #1254 )
...
* Chore: Fix N+1 queries in dashboard side
Fixed a couple of N+1 queries fired on the dashboard side of
the app to improve performance.
2020-09-19 12:46:34 +05:30
31c07771e8
feat: Notification on new messages in conversation ( #1204 )
...
fixes : #895
fixes : #1118
fixes : #1075
Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com >
2020-09-10 19:19:15 +05:30
Pranav Raj S and GitHub
2b1d445003
feat: Use display_name instead of name of the agent ( #1097 )
...
* feat: Use display_name instead of name of the agent
2020-07-27 22:19:26 +05:30
0f2d3418f9
fix: Add a check for 24 hour window before sending a message ( #1084 )
...
Co-authored-by: Sojan Jose <sojan@pepalo.com >
2020-07-25 22:54:45 +05:30
4612494923
Chore: Fix issues with conversation data models ( #1000 )
...
Co-authored-by: Sojan <sojan@pepalo.com >
2020-07-04 19:46:17 +05:30
Sojan Jose and GitHub
4f83d5451e
Chore: Routine Bugfixes and enhancements ( #979 )
...
- Fix slack scopes
- Docs for authentication
Fixes : #704 , #973
2020-06-25 23:35:16 +05:30
97ad39713b
Feature: Improve label experience ( #975 )
...
Co-authored-by: Sojan <sojan@pepalo.com >
2020-06-25 21:04:03 +05:30
Abdulkadir Poyraz and GitHub
b1aab228ae
Feature: Ability to mute contacts ( #891 )
...
fixes : #867
2020-05-26 17:43:59 +05:30
b0950d6880
Feature: Rich Message Types ( #610 )
...
Co-authored-by: Pranav Raj S <pranavrajs@gmail.com >
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com >
2020-04-10 16:42:37 +05:30
19ab0fe108
Chore: Scope URLs with account_id ( #601 )
...
* Chore: Enable Users to create multiple accounts
Addresses: #402
- migrations to split roles and other attributes from users table
- make changes in code to accommodate this change
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com >
2020-03-09 23:27:10 +05:30
Pranav Raj S and GitHub
2a4fb7b056
Bug: Fix conversation not loading from the links in email ( #602 )
...
Bug: Load conversation from links
2020-03-08 22:08:25 +05:30
Sojan Jose and GitHub
a8ac048716
Bug: Fix duplicate messages from Twitter DM and tweets ( #599 )
...
* Bug: Fix duplicate messages from Twitter DM and tweets
2020-03-06 01:47:37 +05:30
Pranav Raj S and GitHub
0740d4762f
Enhancement: Paginate conversation calls in tabs ( #560 )
...
* Use conversationPage module for pagination
* Load more conversations
* Reset list if conversation status is changed
* Add specs to conversationPage
* Reset filter when page is re-mounted
* Update text
* Update text
2020-02-26 21:15:01 +05:30
Tim Lange and GitHub
fc23a10a99
Chore: Added tests for conversations_controller ( #508 )
...
* Chore: Added tests for conversations_controller
* Chore: Remove get_messages function from conversations
2020-02-17 15:57:57 +05:30
Pranav Raj S and GitHub
272c481464
Feature: Create conversations from Tweets ( #470 )
...
* Feature: Add tweets to conversations
2020-02-09 15:47:48 +05:30
Pranav Raj S and Sojan Jose
a2b025b548
Feature: View conversation labels on sidebar ( #436 )
2020-01-21 18:57:44 +05:45
Sojan Jose and Pranav Raj S
f875a09fb7
Chore: Switch from Carrierwave to ActiveStorage ( #393 )
2020-01-07 22:59:17 +05:30
Pranav Raj S and Sojan Jose
439e064d90
Feature: Contact Panel with conversation details ( #397 )
...
* Add Contact panel changes
* Fix parent iframe blocked
* Add Conversation Panel, Contact messages
* Update contact panel with conversation details
* Update designs in sidebar
* Fix specs
* Specs: Add specs for conversationMetadata and contact modules
* Fix currentUrl issues
* Fix spelling
* Set default to empty string
2020-01-01 22:30:43 +05:30