Chatwoot/spec/factories
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
..
bot_message Feature: Rich Message Types (#610) 2020-04-10 16:42:37 +05:30
channel Feature: Twilio Whatsapp Integration (#779) 2020-04-30 01:41:13 +05:30
facebook_message Chore: Switch from Carrierwave to ActiveStorage (#393) 2020-01-07 22:59:17 +05:30
integrations Feature: Slack - receive messages, create threads, send replies (#974) 2020-06-22 13:19:26 +05:30
twitter Feature: Create conversations from Tweets (#470) 2020-02-09 15:47:48 +05:30
account_users.rb Chore: Enable Users to create multiple accounts (#440) 2020-03-07 12:18:16 +05:30
accounts.rb Chore: Feature lock email settings in UI (#1065) 2020-07-19 23:08:07 +05:30
agent_bot_inboxes.rb Feature: Introduce bots (#545) 2020-03-06 01:43:12 +05:30
agent_bots.rb Feature: Introduce bots (#545) 2020-03-06 01:43:12 +05:30
canned_responses.rb Chore: Added tests for canned_responses (#477) 2020-02-08 11:58:40 +05:30
contact_inbox.rb Feature: Contact Merge Action (#378) 2019-12-24 13:27:25 +05:30
contacts.rb Chore: Added tests for contacts_controller (#509) 2020-02-17 17:08:29 +05:30
conversations.rb Adds unread message bubbles for widget (#943) 2020-07-08 00:04:44 +05:30
events.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
inbox_members.rb [#247] Filters conversation by status and paginate conversations (#284) 2019-12-01 10:16:51 +05:30
inboxes.rb [Feature] Email collect message hooks (#331) 2020-01-09 13:06:40 +05:30
labels.rb Feature: Improve label experience (#975) 2020-06-25 21:04:03 +05:30
messages.rb Chore: Cleanup attachment handling for Facebook & Whatsapp (#1051) 2020-07-17 00:32:32 +05:30
notification_subscriptions.rb Feature: Add web push notification permission in frontend (#766) 2020-05-06 00:10:56 +05:30
notifications.rb Feature: User Notification Objects (#752) 2020-05-01 14:53:43 +05:30
super_admins.rb Feature: Introduce Super Admins (#705) 2020-05-11 23:07:22 +05:30
users.rb Enhancement: Move reporting metrics to postgres (#606) 2020-03-18 16:53:35 +05:30
webhooks.rb Feature: As a admin, I should be able to add webhooks to account (#572) 2020-02-29 17:43:49 +05:30