No description
Find a file
Sony Mathew 96efc44b82
Chore: Feature lock email settings in UI (#1065)
* Chore: Feature lock email settings in UI

The email settings under account settings needed to be
feature locked in a way different from teh current way for it
to be enabled for accounts in a self hosted scenario.

Some refactorings were also done along with this change.

1. There was a feature flag defined in code in account model called
domain_emails_enabled was used to check if the inbound emails was
enabled for the account. But there was already a feature flag called
"inbound_emails" defined in features.yml. So changed to use this to
check if inbound emails are enabled for an account.
2. Renamed and re-purposed existing `domain_emails_enabled` to
`custom_email_domain_enabled` to use for feature toggling the UI
for email settings.
3. To enable & disable multiple features using the featurable concern
we were passing an array of values. Changed this to accept a comma
separated set of values.

* Chore: Feature lock email settings in UI

Fixed the specs for accounts controller & removed
unneccessary code from Account seetings component in UI

* Chore: Convert newlines to <br>s

Removed the layout used while sending replies in
conversation continuity.

Converted the newlines in the messages to <br/> tags
for the correct HTML rendering.

* Chore: Bug fix in reply email domain

Renamed the function custom_email_domain_enabled  to
inbound_email_enabled.

Fixed bug on setting reply emails's domain.
2020-07-19 23:08:07 +05:30
.circleci Chore: Routine Bugfixes and enhancements (#979) 2020-06-25 23:35:16 +05:30
.dependabot Add Dependabot config (#217) 2019-11-25 09:48:11 +05:30
.github Chore: Add Github Sponsors link 2020-06-12 19:37:00 +05:30
__mocks__ Feature: Agent Profile Update with avatar (#449) 2020-02-16 17:20:38 +05:30
app Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
bin 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
config Chore: Move some email configs to ENV variables (#1064) 2020-07-19 15:35:55 +05:30
db Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
deployment Chore: Update ruby and rails versions (#831) 2020-05-08 12:13:23 +05:30
docker Chore: Update ruby and rails versions (#831) 2020-05-08 12:13:23 +05:30
docs Chore: Corrections in docs (#1054) 2020-07-17 20:38:21 +05:30
lib Chore: Add migration for feature flags (#1024) 2020-07-10 00:09:40 +05:30
log Initial Commit 2019-08-14 15:18:44 +05:30
public Feature: Slack - receive messages, create threads, send replies (#974) 2020-06-22 13:19:26 +05:30
spec Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
swagger Chore: Routine Bugfixes and enhancements (#979) 2020-06-25 23:35:16 +05:30
tmp Initial Commit 2019-08-14 15:18:44 +05:30
vendor/assets Initial Commit 2019-08-14 15:18:44 +05:30
.all-contributorsrc [docs] Move contributors section to docs (#120) 2019-10-06 09:23:24 +05:30
.browserslistrc Initial Commit 2019-08-14 15:18:44 +05:30
.codeclimate.yml Feature: Feature flags on account (#814) (#815) 2020-05-04 23:06:42 +05:30
.dockerignore Reduce docker image size (#394) 2019-12-31 18:23:18 +05:30
.editorconfig Introduce .editorconfig (#149) 2019-10-16 12:01:05 +05:30
.env.example Chore: Move some email configs to ENV variables (#1064) 2020-07-19 15:35:55 +05:30
.eslintrc.js Chore: Upgrade babel packages (#736) 2020-04-17 18:49:14 +05:30
.gitignore Chore: Enable Users to create multiple accounts (#440) 2020-03-07 12:18:16 +05:30
.nvmrc Feature: API for updating account settings (#645) 2020-03-29 12:16:31 +05:30
.prettierrc Add linters and pre-commit hook 2019-08-21 10:27:57 +05:30
.rspec Fix url in emails, add frontendURL helper (#19) 2019-08-25 19:59:28 +05:30
.rubocop.yml Chore: Refactor round robin logic (#1015) 2020-07-08 00:14:07 +05:30
.rubocop_todo.yml Chore: Refactor round robin logic (#1015) 2020-07-08 00:14:07 +05:30
.ruby-version Chore: Update ruby and rails versions (#831) 2020-05-08 12:13:23 +05:30
.scss-lint.yml Enhancement: Add focus state for reply box in dashboard (#999) 2020-07-04 13:50:44 +05:30
app.json Chore: Update PostgreSQL version to 12 (#1034) 2020-07-14 11:36:31 +05:30
babel.config.js Chore: Upgrade babel packages (#736) 2020-04-17 18:49:14 +05:30
Capfile 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
config.ru Initial Commit 2019-08-14 15:18:44 +05:30
crowdin.yml Chore: Add translated languages to account settings (#826) 2020-05-06 13:38:36 +05:30
docker-compose.production.yaml Chore: Update PostgreSQL version to 12 (#1034) 2020-07-14 11:36:31 +05:30
docker-compose.yaml Chore: Update PostgreSQL version to 12 (#1034) 2020-07-14 11:36:31 +05:30
Gemfile Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
Gemfile.lock Chore: Routine Bugfixes and enhancements (#979) 2020-06-25 23:35:16 +05:30
jest.config.js Feature: Agent Profile Update with avatar (#449) 2020-02-16 17:20:38 +05:30
LICENSE Docs: Update year in license file (#401) 2020-01-02 12:27:22 +05:30
package.json Feature: Ability to customise widget color (#903) 2020-05-30 17:28:00 +05:30
postcss.config.js Upgrade bourbon to ^6.0.0 (#161) 2019-10-20 13:34:19 +05:30
Procfile Use db:prepare instead of db:migrate (#924) 2020-06-04 23:13:10 +05:30
Procfile.dev Feature: Add Sidekiq docker (#443) 2020-01-27 00:15:13 +05:45
Rakefile Initial Commit 2019-08-14 15:18:44 +05:30
README.md Chore: grammatical changes to readme (#1035) 2020-07-14 22:52:48 +05:30
semantic.yml Chore: Update copy on Signup page (#1023) 2020-07-09 16:28:09 +05:30
workbox-config.js [Feature] Add PWA support (#157) 2019-10-18 12:37:09 +05:30
yarn.lock Chore: Bump lodash from 4.17.15 to 4.17.19 (#1056) 2020-07-18 12:05:04 +05:30

Woot-logo

A simple and elegant live chat software
An opensource alternative to Intercom, Zendesk, Drift, Crisp etc.

Deploy


Maintainability CircleCI Badge Docker Build Badge License Commits-per-month Discord

ChatUI progess

Background

Chatwoot is a customer support tool for instant messaging channels which can help businesses provide exceptional customer support. The development of Chatwoot started in 2016. It failed to succeed as a business and eventually shut up shop in 2017. During 2019 #Hacktoberfest, the maintainers decided to make it opensource, instead of letting the code rust in a private repo. With a pleasant surprise, Chatwoot became a trending project on Hacker News and best of all, got lots of love from the community.

Now, a failed project is back on track and the prospects are looking great. The team is back to working on the project and this time, we are building it in the open. Thanks to the ideas and contributions from the community.

Documentation

Detailed documentation is available at www.chatwoot.com/docs.

You can find the quick setup docs here.

Branching model

We use the git-flow branching model. The base branch is develop. If you are looking for a stable version, please use the master or tags labelled as v1.x.x.

Heroku one-click deploy

Deploying chatwoot to heroku is a breeze. It's as simple as clicking this button:

Deploy

Follow this link to understand setting the correct environment variables for the app to work with all the features. There might be breakages if you do not set the relevant environment variables. This applies to deploying the docker image as well.

Docker

Follow our docker development guide to develop and debug the application using docker-compose.

Follow our environment variables guide to setup the environment for Docker.

Contributors

Thanks goes to all these wonderful people:

Chatwoot © 2017-2020, ThoughtWoot Inc - Released under the MIT License.