Chatwoot/spec
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
..
actions Chore: Convert Message Sender to polymorphic (#740) 2020-06-27 21:34:53 +05:30
assets Feature: Profile API [#238] (#354) 2019-12-10 10:29:35 +05:30
builders Feature: Twilio SMS Channel (#658) 2020-04-05 22:11:27 +05:30
channels Feature: Availability Statuses (#874) 2020-07-04 11:42:47 +05:30
controllers Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
dispatchers Non blocking event dispatch (#652) 2020-03-29 19:18:30 +05:30
factories Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
finders Feature: Inbox greeting message (#927) 2020-06-09 23:54:35 +05:30
fixtures Chore: Change the prefix in reply emails (#1060) 2020-07-19 13:34:34 +05:30
helpers 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
integration Fix url in emails, add frontendURL helper (#19) 2019-08-25 19:59:28 +05:30
jobs Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
lib Chore: Convert Message Sender to polymorphic (#740) 2020-06-27 21:34:53 +05:30
listeners Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
mailboxes Feature: Inbox greeting message (#927) 2020-06-09 23:54:35 +05:30
mailers Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
models Chore: Refactor round robin logic (#1015) 2020-07-08 00:14:07 +05:30
policies Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
presenters Chore: Fix issues with conversation data models (#1000) 2020-07-04 19:46:17 +05:30
requests/api/v1 Feature: Slack - receive messages, create threads, send replies (#974) 2020-06-22 13:19:26 +05:30
services Chore: Cleanup attachment handling for Facebook & Whatsapp (#1051) 2020-07-17 00:32:32 +05:30
support Feature: Slack - receive messages, create threads, send replies (#974) 2020-06-22 13:19:26 +05:30
workers Enhancement: ability to send out an email without summary #1048 (#1049) 2020-07-15 16:33:52 +05:30
rails_helper.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
spec_helper.rb Chore: Routine Bugfixes and enhancements (#979) 2020-06-25 23:35:16 +05:30
test_helper.rb Chore: Setup test coverage in codeclimate [#332] (#333) 2019-12-02 08:57:11 +05:30