Commit graph

172 commits

Author SHA1 Message Date
Pranav Raj S
a3662091c7 Add an intermediate pending state for widget messages (#323)
* Add an intermediate pending state for widget messages

* Remove unnecessary setTimeout

* Rename method
2019-11-29 17:42:35 +05:30
Pranav Raj S
6e911e69f8 Update font family to make design consistent in all platforms (#318)
* Add inter font, remove modal header bg

* Remove unnecessary font files

* Fix codeclimate issues, remove letter-spacing attribute
2019-11-28 11:03:01 +05:30
Nithin David Thomas
7c65142fcd Adjust space between message bubbles in widget (#309) 2019-11-27 11:45:33 +05:30
Pranav Raj S
ded8f33fc8 Fix private note shown to user in widget (#308)
fixes #306
2019-11-27 10:12:57 +05:30
Sojan Jose
c36b4279ac [Bugfix]Fixes agent cannot be removed from inbox #18 (#304)
Closes #18
2019-11-27 09:12:17 +05:30
Sojan Jose
cbf2d27b6b [BugFix] Fix Users not deletable because of foreign key reference (#300)
Fixes #297
2019-11-27 09:01:39 +05:30
Nithin David Thomas
274ad381cb Makes widget header expand and collapse by messages size (#293) 2019-11-26 22:35:26 +05:30
Sojan Jose
ddae36a4a3 [Chore] - Fix docker build (#290)
fixes #289
2019-11-26 13:37:28 +05:30
Pranav Raj S
5d2efdc7fc Update widget colors based on the widgetConfig (#276) 2019-11-26 00:10:27 +05:30
Sojan Jose
9c6a101768
[Chore] Add bullet gem #249 (#281)
* closes #249 add bullet gem

- upgrade gems
- fix the warning in the console
- fix the deprecation message for where not
2019-11-25 23:55:18 +05:30
Sojan Jose
78adcf822d #251 - Disable subscription in community edition (#277)
* #251 - Disable subscription in community edition

* Hide billing routes in sidebar for community edition

* Remove subscription serializer if billing disabled
2019-11-24 19:09:17 +05:30
Sony Mathew
70e4cc08b6
[#260] One click deploy to heroku (#275)
* [#260] One click deploy to heroku

* Added app.json file for Heroku deployment
* Made changes in Procfile to accept the PORT as env variable
* Added the one click button in README.md

* Change readme and link

* Alignment of button in Readme

* Changing redis to free plan

* Removed node-js build-pack

* Changed the post-deploy script to be rake db:migrate

* Removed web concurrency variable from app.json for heroku

* Changed the link to chatwoot logo referenced in app.json

* Changed postdeploy hook

* Changed logo to be raw content from github

* Changed the SMTP variables

* Added optional conditional for sending mail
* Changed the naming of SMTP variables

* Having logo as base 64 encoded image for heroku deploy page

* Fixed key not found error for SMTP variables

* Correcting the specs for conversation assignment mailer

* Spec rubocop fixes

* Spec rubocop fixes
* Added the link to master for heroku app.json
2019-11-24 17:19:14 +05:30
Alexander Kadyrov
b6186e93e7 Remove unused method from ApplicationRecord (#257) 2019-11-24 02:51:33 +05:30
Sony Mathew
da9ac8b26d 🔥Docker and environment variables cleanup (#270)
* Added dotenv-rails gem to manage environment variables

* Added dotenv-rails gem to manage environment variables
* Removed figaro which was used earlier for this purpose

* Standardized variable names

* Changed all env variables to be upper case. This included changes in files referencing env variables.
* Added example env file with all variables set to empty value
* Removed the earlier setup of copying application.yml and database.yml and the scripts and documentation associated to this

* Docker setup

* Added docker file for building the docker images
* Added entrypoint.sh script which is referenced inside the Docker image
* Cloned the Procfile for development using docker which has slight change compared to regular procfile
* Added the docker-compose.yml which has 3 service's configuration, postgres, redis and chatwoot server and a mounted volume for postgres

* Added docker related info to documentation

* Added the docker setup info in the documentation
* Added info for using`rbenv` instead of rvm for managing ruby versions
* Updated the documentation for environment variables to have one about `dotenv-rails` gem and removed the documentation about the old copy paste method used by figaro

* Changing the postgres database, username and password as environment variables

* Removed database.yml from gitignore
* Made the postgres databse, username and password as environemnt variables
* Added this in documentation

* Added a quick setup page

* Added quick setup page
* Removed the docs from README and added link to the docs in website
* Removed the figaro related things from circle.ci config

* Adding external volume for redis in docker compose

* Added instructions for adding the redis volume in docs
2019-11-24 01:27:39 +05:30
Pranav Raj S
c6feea9f6d [Enhancement] Format messages in widget (#268)
* Use message formatter in widget

* Rename the variable
2019-11-24 00:29:55 +05:30
Pranav Raj S
e610a11bc5
[Enhancement] Add a temporary image for channel if no image available (#231) 2019-11-21 12:08:54 +05:30
Pranav Raj S
c914d94b18
Format time, fix sort (#230) 2019-11-21 12:02:10 +05:30
Pranav Raj S
8348f4adae
Fix scrollTop of undefined in CannedResponseList (#226) 2019-11-20 15:40:34 +05:30
Pranav Raj S
aef3b04aa5
[Bug] Remove markSeen, toggleTyping calls for WebWidget channels (#225) 2019-11-20 00:04:32 +05:30
Pranav Raj S
bcce70c95a
[Bug] Fix widget mobile layout design (#224) 2019-11-20 00:01:16 +05:30
Ronald Walker
0d5c070f51 [Bug] Fix ReadableTime overlapping message text in Firefox(#219) 2019-11-19 12:55:12 +05:30
Pranav Raj S
2ebc07b381
[Bug] Remove toggle_typing API call for channels except Facebook (#211) 2019-11-17 14:15:05 +05:30
Pranav Raj S
127dd4cf61
[Bug] Fix selected label alignment in MultiSelect (#210) 2019-11-17 13:32:30 +05:30
Pranav Raj S
1ad36f164f
[Enhancement] Create EmptyState component (#209) 2019-11-17 13:09:10 +05:30
Pranav Raj S
88ac20efb5
[Feature] Detect browser on conversation initiation (#208) 2019-11-16 14:48:38 +05:30
Pranav Raj S
88fc4d894a
Init Contact Panel (#206) 2019-11-14 13:46:43 +05:30
Pranav Raj Sreepuram
b985085786 Fix styles in conversation view 2019-11-12 10:09:58 +05:30
Pranav Raj S
6d8b6d4769
[Bug] Scroll conversation to bottom on load (#205) 2019-11-12 09:46:30 +05:30
Pranav Raj Sreepuram
e37c04a81f Remove console warning from foundation 2019-11-12 08:55:35 +05:30
Pranav Raj S
7b4b5d31d9
[Bug] Update copy in search agent select dropdown (#204) 2019-11-10 22:58:55 +05:30
Pranav Raj S
7e3409c3e1
[Enhancement] Enter to send message, add click on bubble instead of icon (#202) 2019-11-09 17:12:31 +05:30
Pranav Raj S
63ce5607e9
[Bug] Rescue error on JWT.encode (#201) 2019-11-09 16:04:02 +05:30
Pranav Raj Sreepuram
de76780ce5 [Enhancement] Use thumbnail component 2019-11-05 10:15:56 +05:30
Pranav Raj Sreepuram
7a2fb8eef1 [Bug] Fix unable to set unsafe-headers 2019-11-04 12:54:41 +05:30
Pranav Raj Sreepuram
dbb57a8a56 Upgrade foundation to 6.5.3 2019-11-01 13:44:03 +05:30
Pranav Raj S
5cc3543657 [Internal] Add route for widget testing (#199) 2019-11-01 12:53:01 +05:30
Pranav Raj Sreepuram
f3fc542a5f [Bug] Fix conversation scroll in dashboard 2019-10-30 12:08:10 +05:30
Lauren
bfa4121f41 Feature/add inbox specs (#192)
* Add base Inbox association and validation specs

* `#facebook?``

* `#add_member` and `#remove_member`

* cleanup

* Rubocop

* Rubocop but again

really this time
2019-10-30 10:49:23 +05:30
Pranav Raj S
3d3aefb197 [Enhancement] Use JS-Cookie to set Cookies (#193)
* Update js-cookie

* Add sdk css

* Remove conversation padding
2019-10-30 10:43:11 +05:30
José Miguel Ochoa
e32b6bf6d4 [Enhancement] Add default avatar when profile image is not available (#188)
* Add default avatar when agent image is not available

* Remove fonts from avatar
Separate non-computed style values
2019-10-29 23:36:21 +05:30
Pranav Raj S
16fe912fbd
[Feature] Website live chat (#187)
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
2019-10-29 12:50:54 +05:30
Moisés Ñañez
5a41f321c8 [Enhancement] Move chart options to a variable (#189) 2019-10-28 21:00:02 +05:30
Pranav Raj S
17bb50c977
Configure SCSS linter rules (#186) 2019-10-27 19:28:02 +05:30
Pranav Raj Sreepuram
170f8716c5 Refactor Conversation, Message API calls, store 2019-10-27 19:01:59 +05:30
Sojan Jose
c21c839dca
Contact model changes (#184)
* move source id from contacts

* Fix contactInbox model name

* rubocop fix

* Fix rspec
2019-10-27 13:14:36 +05:30
Sojan Jose
3b6d58bbdf Refactor Reports Controller 2019-10-27 11:11:51 +05:30
Pranav Raj S
6c60b60240
[Enhancement] Add ApiClient, refactor CannedResponse (#183) 2019-10-27 10:48:26 +05:30
Pranav Raj S
50fc06681c
[Enhancement] Update vue-chartjs to fix production build (#182) 2019-10-27 10:24:19 +05:30
Pranav Raj S
f869598cb4
[Enhancement] Remove frontend env file 🔥(#179) 2019-10-25 12:01:05 +05:30
Pranav Raj S
f4358d9993 Replace pusher with action cable (#178)
closes #43
2019-10-25 01:37:01 +05:30
Nursoltan Saipolda
c0354364ff removed app/stylesheets & set stylesheet generator to false (#177) 2019-10-24 17:08:38 +05:30
Nursoltan Saipolda
73d433b591 deleted coffee files & coffee-rails gem. disable js generation on application.rb (#173) 2019-10-23 15:59:45 +05:30
Pranav Raj S
e0d291c49e
Create util for apiLoadingStatus (#170)
* Create util for apiLoadingStatus

* Revert "Fix #52 rubocop metrics abc size in passwords controller (#119)"

This reverts commit 9c22da0ac6.
2019-10-22 13:28:45 +05:30
AlexisChavez97
9c22da0ac6 Fix #52 rubocop metrics abc size in passwords controller (#119)
* Fix #52 rubocop metrics abc size in passwords controller

* Fix DeviseTokenAuth headers names
2019-10-22 12:32:06 +05:30
Aleksandr
a7787e0f23 issue #151: add rubocop to ci (#168) 2019-10-21 11:18:47 +05:30
Sojan Jose
ba8f055802
Change sender_id to contact_id in conversations (#167)
* change sender_id to contact_id in conversations

* Fix failing tests

* Fix seeds

* fix specs

* Fix issues in facebook messenger
2019-10-21 00:40:18 +05:30
Sojan Jose
2099dc01a6
Routine weeding of the codebase (#163)
* Routine weeding of the codebase
* fix the spec
2019-10-20 16:19:12 +05:30
Pranav Raj S
94c6d6db6f
🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
Pranav Raj S
dd018f3682
Upgrade bourbon to ^6.0.0 (#161) 2019-10-20 13:34:19 +05:30
Pranav Raj S
20cfd005b9
[Enhancement] Remove Ionicons CDN usage, upgrade packages (#160) 2019-10-20 09:29:05 +05:30
Sojan Jose
a7da2428b0
upgrade facebook messenger gem (#159)
- carrierwave local config
- upgrade facebook messenger gem to support facebook graph api 4.0
2019-10-20 01:41:24 +05:30
Pranav Raj S
af20e61604
[Feature] Add PWA support (#157)
* Add icons, manifest

* Add workbox config
2019-10-18 12:37:09 +05:30
Sojan Jose
701722983b Refactoring Gem Groups 2019-10-17 03:48:48 +05:30
Sojan Jose
3988777718
Refactoring the code for pub sub (#155)
- We were using the attribute name 'channel' to store pubsub tokens, which was confusing.
- switched to faker from ffaker
- spec for contact.rb
2019-10-17 03:18:07 +05:30
Akshay Birajdar
7b5c9dae63 Fixes #115 Use middle instead of centre in flex-align (#153)
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-10-16 22:45:36 +05:30
Pranav Raj S
2783fb6006
Move src to dashboard (#152) 2019-10-16 14:36:17 +05:30
Akshay Birajdar
a1452d7d89 Sprinkle frozen string literal & Indentation Fix (#150)
* Avoid extra string alocation as join will always return string

* Fix indentation

* Sprinkle frozen string literal true
2019-10-16 12:22:30 +05:30
Akshay Birajdar
4bb6842a4d Prefer Enumerable#detect over Enumerable#select.first (#147) 2019-10-15 11:46:18 +05:30
Davyd McColl
01b72ca051 Initial testing with jest (#133)
* 🎉 initial testing with jest

* 👌 update test script names & remove package-lock.json

* 👌 add 'yarn test' step to circle-ci build workflow
2019-10-15 00:18:46 +05:30
Andrei
cdada37e3a Fix #114: Address color contrast warning messages (#144)
* Make button text black

* Remove custom white text for warning buttons
2019-10-15 00:15:33 +05:30
Lauren
b89353b76c Feature/update confirmation email information (#145)
* Add `invited_by` foreign key to User

Allows for a User to be tied to the user who invited them

* Include `current_user` in new agent initialization parameters

* Add `shoulda-matchers` for testing associations

* Add Inviter information and associated account to welcome email

* Only show inviter info if applicable

* Update conversation spec for FFaker compatibility
2019-10-14 14:24:58 +05:30
Emil Shakirov
4768aca484 Refactor Conversation model (#134)
* Add Conversation factory with dependent factories

* Include FactoryBot methods in rspec config

* Add unit tests for public methods of Conversation model

* Move Current model into a separate file in lib folder

* Disable Metrics/BlockLength rule for db/migrate and spec folders

* Get rid of global $dispatcher variable

* Create Message#unread_since scope

* Refactor callback methods in Conversation model

* Create Conversations::EventDataPresenter

* Add translation keys for activity messages

* Add pry-rails gem

* Refactor Conversation#notify_status_change

* Add mock_redis for test env
2019-10-12 23:38:41 +05:30
Nima
df0c1fa0c5 Refactor parseErrorCode and try to decrease method complexity (#132) 2019-10-10 09:11:18 +05:30
Allan Klaus
0621fa66e4 Fix abs rubocop metric of create_activity (#101)
* Fix abs rubocop metric of create_activity

* Fix anothers rubocop issues

* Remove comment that was removed on master
2019-10-09 01:15:04 +05:30
Anca
e066a9cff5 Fix #58 - Refactor inbox_members_controller (#109) 2019-10-08 14:03:41 +05:30
Kirill Arutyunov
eef7555d62 Fix #77 issue codeclimate in _tabs.scss (#125)
* Fix #77 issue codeclimate in app/javascript/src/assets/scss/widgets/_tabs.scss

* Update border-width for #77 in _tabs.scss
2019-10-08 01:31:09 +05:30
Nishant Samel
59db1de1dc Fix Code Climate issues with Conversation View (#103) 2019-10-08 01:06:01 +05:30
Nithin David Thomas
3a01a40c26
Merge branch 'master' into codeclimate-76-issue-sidemenu-scss 2019-10-07 20:34:17 +05:30
Nithin David Thomas
99322842a7
Merge branch 'master' into codeclimate-70-issue-emojiinput-scss 2019-10-07 20:22:47 +05:30
Kirill Arutyunov
ea13a21da5 Fix #78 issue codeclimate in app/javascript/src/assets/scss/widgets/_thumbnail.scss (#121) 2019-10-06 20:03:01 +05:30
Kirill Arutyunov
c0f40b1713 Fix #65 issue codeclimate in app/javascript/src/assets/scss/widgets/_billing.scss (#124) 2019-10-06 19:46:05 +05:30
Kirill Arutyunov
942f47fa2d Fix #70 issue codeclimate in app/javascript/src/assets/scss/widgets/_emojiinput.scss 2019-10-06 16:08:17 +03:00
Kirill Arutyunov
426ac33acf Fix #76 issue codeclimate in app/javascript/src/assets/scss/widgets/_sidemenu.scss 2019-10-06 16:02:59 +03:00
Marc C
9b9aee4657 Update contact_params function (#100)
removed if block,
cannot be shortened further due to exception handling and params formatting
2019-10-06 10:29:54 +03:00
Ender Ahmet Yurt
bbbc14448b Refactor for attachment_params method (#108) 2019-10-05 17:15:32 +08:00
Ender Ahmet Yurt
ca63bba63f Refactor for notify_status_change (#106) 2019-10-05 17:12:50 +08:00
Davyd McColl
b41a8c8477 ♻️ reduce complexity of validateAuthenticateRoutePermission function (#95) 2019-10-05 17:07:05 +08:00
Ricardo Ferro Moreno
e91868f823 Fix multiple SelectorFormat issues in views/_signup.scss (#88) 2019-10-05 16:34:24 +08:00
Ian Vaughan
ccfa135264 Reduce line code to please Rubocop (#111)
Fixes #58
2019-10-04 01:57:34 +03:00
Sojan Jose
e2448c5ece
Merge pull request #93 from arku/refactor/attachment-push-event-data
Refactor Attachment#push_event_data
2019-10-03 11:25:57 +03:00
Arun Kumar Mohan
9d291638c4 Refactor Attachment#push_event_data 2019-10-02 18:19:27 -05:00
Arun Kumar Mohan
1b52316c16 Update location where attachment uploads are stored in test environment (#91) 2019-10-02 21:56:09 +08:00
Jaques Dias
9afbc8c55f Fix code climate issues on Plan model (#98) 2019-10-02 21:46:32 +08:00
Jaques Dias
d1f06992b2 Refactor create_activity method on Conversation model (#105) 2019-10-02 21:03:07 +08:00
Sai Sandeep Mutyala
f2544816d4 Fixed ZeroUnit issue (#99) 2019-10-02 18:17:36 +08:00
Pranav Raj S
b7ba0d95a8
Fix codeclimate lint errors in _login.scss (#83) 2019-10-02 11:13:57 +08:00
Pranav Raj S
9951feabc1
[scss-lint] Fix "Shorthand" issue, Remove redundant variables, use shorthand (#82) 2019-10-02 11:07:10 +08:00
Pranav Raj S
7e76285f7c
[scss-lint] Fix "HexLength" issue (#81) 2019-10-02 11:03:56 +08:00
Pranav Raj Sreepuram
a3128cee35 Remove unused http error codes 2019-09-05 13:18:27 +05:30
Pranav Raj Sreepuram
3549fc5fdd Split conversation module into getters and actions 2019-09-05 13:01:36 +05:30