Commit graph

173 commits

Author SHA1 Message Date
Sony Mathew
1fd4127709
Removed agent dashboard link in conversation mail to user (#445) 2020-01-24 14:31:52 +05:45
Sony Mathew
04d347f0ee Chore: Changed from email and reply to email for conversation email (#444) 2020-01-24 14:10:52 +05:45
Sony Mathew
d4b3ba4baa [#139] Send conversation emails (#442)
* [#139] Delayed emails for conversations

* Added the setex and get methods to Redis wrapper
* Set the priorities for the sidekiq queues
* Was not able to use mailhog for testing email in local, switched back to letter opener and added comments on using the SMTP settings
* Added after create hood in messages to queue the sending of mail after 2 minutes using sidekiq worker and also set the redis key for the conversation to avoid the email sending for every message
* Added the sidekiq worker to send the email and delete the conversation redis key
* Added the mailer and mail template
* mailer sends the last 10 messages along with the new messages from the time it was queued

* Send email only in development or if smtp config is set

* Send email only in development or if smtp config is set
* Set the SMTP_PORT in production variable

* Adding redis to circle CI

* Specs for the conversation email changes

* Added specs for conversation email sidekiq worker
* Added specs for conversation mailer
* Added specs in message model for the after create hook for notify email

* Send emails only when there is a reply from agent

* set development to use mailhog

* Adding comments for using letter opener
2020-01-23 23:14:07 +05:45
Pranav Raj S
95fb6893b4 Feature: API to list the agents for the inbox (#438)
Co-authored-by: Sojan Jose <sojan@pepalo.com>
2020-01-21 19:56:58 +05:45
Pranav Raj S
a2b025b548 Feature: View conversation labels on sidebar (#436) 2020-01-21 18:57:44 +05:45
Muhsin.K
9290893f9d
Style: Fix the last message style issue (#433) 2020-01-19 14:17:15 +05:30
Nithin David Thomas
f7f7a6b9c7 Feature: Widget design update (#426) 2020-01-17 13:36:05 +05:30
Subin T P
cc180b77ce Include only incoming/outgoing messages in reporting (#429)
* Skip activity messages from reporting

* Makes reportable? as access list for reporting
2020-01-14 00:50:18 +05:30
Pranav Raj S
18bf1a9e62 Ignore case from input email (#424) 2020-01-13 14:25:23 +05:30
Nithin David Thomas
7cf19e0b52 Feature: Update design for web widget (#408) 2020-01-13 12:10:40 +05:30
Pranav Raj S
655c585358 Feature: View a contact's previous conversation (#422)
* Add API to fetch conversations of a contact

* Add conversation list in sidebar
2020-01-13 11:17:03 +05:30
Pranav Raj S
fc6a8c2601
Bug: Fix Heroku deployment on develop branch(#421) 2020-01-12 19:31:32 +05:30
Sojan Jose
722f540b03 [Feature] Email collect message hooks (#331)
- Add email collect hook on creating conversation
- Merge contact if it already exist
2020-01-09 13:06:40 +05:30
Sojan
59d4eaeca7 Merge branch 'hotfix/1.0.1' into develop 2020-01-09 12:01:07 +05:30
Sojan
8e6b735299 Bugfix: Sidekiq queues getting stuck [#411]
ref: https://github.com/rails/rails/issues/36810
closes: #411
2020-01-09 11:59:31 +05:30
Sojan Jose
f875a09fb7 Chore: Switch from Carrierwave to ActiveStorage (#393) 2020-01-07 22:59:17 +05:30
mbronek7
f02d422b6a Move ActionCable Broadcast Calls to sidekiq #154 (#403)
* Move Pusher Calls to sidekiq

* CR changes

Co-authored-by: Sojan Jose <sojan@pepalo.com>
2020-01-06 22:32:41 +05:30
Pranav Raj S
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
Pranav Raj S
7c4cc68561
Bug: Force fetch inbox settings on route change (#400) 2019-12-30 11:53:16 +05:30
Pranav Raj S
e2aeeeca43 Specs: Add specs for Facebook::SendReplyService (#396) 2019-12-28 23:14:09 +05:30
Pranav Raj S
5ddc46c474 Refactor: Inbox store, remove inboxes from sidebar (#387)
* Refactor: Inbox store, remove inboxes from sidebar

* Add a new page for inbox settings

* Show inboxes on sidebar

* Add inbox_members API

* Disable similar-code check

* Fix codeclimate scss issues

* Add widget_color update API and actions

* Add specs for inbox store

* Fix Facebook auth flow

* Fix agent loading, inbox name
2019-12-28 21:56:42 +05:30
Pranav Raj S
005ca62c6e Bug: Fix signup 500 error (#389) 2019-12-26 11:52:14 +05:30
Pranav Raj S
f55c42d5a1 Bug: Fix copy when no inbox is added. (#386) 2019-12-25 20:06:43 +05:30
Pranav Raj S
3440230187 [Bug] Fix short_code param in update canned response API (#385) 2019-12-25 11:52:02 +05:30
Anto Dominic
4e9290ad76 Send emails via sidekiq (#380)
* add sidekiq web view if the user is an administrator

* add sidekiq setup configuration and support

* update devise to use delivery_later method and update test

* update conversation to use deliver_later instead of deliver

* Update Routes

* Add Procfile for Heroku One-Click Start

* updating docs

* update concurrency and Procfile for supporting Heroku Free Dyno

* update Procfile.dev
2019-12-25 03:03:02 +05:30
Sojan Jose
f98cd83a29 Code-climate duplicate code fixes (#382)
* Code-climate duplicate code fixes

* Spec for accounts controller
2019-12-24 17:32:27 +05:30
Sojan
97ab82892d Chore: labels to Conversations [#245] 2019-12-24 16:42:18 +05:30
Sojan Jose
7d85f2e046 Feature: Contact Merge Action (#378) 2019-12-24 13:27:25 +05:30
Pranav Raj S
1143893d9c [Bug] Fix conversation assignment mailer url (#374)
* Fix conversation assignment mailer url

* Remove mailer scope
2019-12-23 12:16:46 +05:30
Pranav Raj S
2ce7438c79 [Refactor] Cleanup agent store and actions (#373)
* Cleanup agent store and actions

* Move set/create/update/destroy to helpers

* Update mutation specs

* Add specs for API helper

* Fix edit/delete action visibility

* Add actions specs

* Remove unused API helpers

* Remove duplicates

* Remove duplicates

* Fix duplicate
2019-12-21 22:54:35 +05:30
Pranav Raj S
4b677ae00e [Bug] Fix timestamp in temporary message (#369)
* [Bug] Fix timestamp in temporary message

* Fix tests
2019-12-17 09:47:44 +05:30
James George
87fb1adab1 Refactor: Minor code refactoring in accordance with Vue.js best practices (#368) 2019-12-16 18:23:14 +05:30
Pranav Raj S
17587d8a0c [Enhancement] Group widget messages by users (#367)
* Remove thumbnail

* Show grouped messages
2019-12-15 23:53:04 +05:30
James George
5c7c325c9c Refactor: use Array.includes instead of indexOf (#366) 2019-12-15 23:24:34 +05:30
Pranav Raj S
a7cb75e468 [Performance] Optimize queries in conversation/message finders (#364)
* [Performance] Optimize queries in conversation/message finders

* Add message_finder spec

* Fix message_finder spec
2019-12-15 16:59:12 +05:30
Pranav Raj S
cfc56705fd [Enhancement] Group widget messages by date (#363)
* [Enhancement] Group widget messages by date

* Update DateSeparator snapshot
2019-12-15 00:06:01 +05:30
Pranav Raj S
7b63cbe1f7 [Enhancement] Select widget_color while creating inbox (#362)
* [Enhancement] Select widget_color while creating inbox

* Fix codeclimate issues

* Fix !important
2019-12-14 18:14:35 +05:30
Pranav Raj S
19852b60cd [Bug] Fix icon alignment in buttons (#360)
* Fix icon alignment in buttons

* Fix ordering
2019-12-13 15:26:14 +05:30
Mukesh Chaudhary
5b275ea157 Add option to reset password of agents to Admin (#351)
* Add option to reset password of agents to Admin

* Fix copy, remove setTimeout
2019-12-13 13:04:49 +05:30
Ender Ahmet Yurt
cef1200351 Refactor for reauthorize_page method (#110)
* Refactor for reauthorize_page method

* Fix the rubocop issues
2019-12-13 02:42:16 +05:30
Pranav Raj S
febc4bef83 [Enhancement] Hide sidebar on tablets (#358)
* [Enhancement] Hide sidebar on tablets

* Remove unnecessary console.log

* Use beforeDestroy
2019-12-12 12:53:15 +05:30
Pranav Raj S
2b41e91768 [Enhancement] Fetch previous messages in the conversation (#355)
* Fetch previous messages in the conversation

* Add specs for conversation store

* Fix codeclimate issues

* Exclude specs folder

* Exclude globally

* Fix path in exclude patterns

* Add endPoints spec

* Add snapshots for Spinner

* Add specs for actions
2019-12-11 20:57:06 +05:30
Sojan Jose
1abaee04d8 Feature: Profile API [#238] (#354)
- api to update name and email
- api to change password
- api to  set profile pic
- fixes update_attribute! deprecation warning
- introducing active storage
2019-12-10 10:29:35 +05:30
Karthik Sivadas
3a1c0aef07 Add specs for model facebook_page (#346) 2019-12-05 13:20:04 +05:30
Sojan Jose
6a2f4e6673 Chore: Ability to configure Mailer sender emails [#339] (#342)
* Chore: Ability to configure Mailer sender emails [#339]

fixes : #339
fixes : #330

* update the documentation
2019-12-03 22:54:08 +05:30
Karthik Sivadas
c758c13ffb Add Account Model specs (#341) 2019-12-03 10:09:45 +05:30
Pranav Raj S
829cb4da57 Add docs to add a website channel (#337) 2019-12-01 22:53:39 +05:30
Karthik Sivadas
330e8625d3 Update user model specs (#334) 2019-12-01 15:42:15 +05:30
Subin T P
84799fd0a1 [#247] Filters conversation by status and paginate conversations (#284)
* [#247] Filters conversation by status

* Fixes conversation finder specs

* [#248] Paginates conversation

* Use method name in description

* Move page to default param, add filters on frontend

* Fix code climate issues
2019-12-01 10:16:51 +05:30
Mukesh Chaudhary
c08074b981 Annotations (#327)
* Add annotate gem to the project
* Annotate models, fixtures, factories and model_specs
* Keep annotations only in Models
* Remove unwanted changes in model specs
* Exclude auto_annotate_models from rubocop
2019-11-30 19:09:55 +05:30