docbrown/app/javascript
Ridhwana 1025900d16
Improve the UX of the SMTP Section (#16223)
* feat: allow reply_to and email_from to be set for an SMTP config

* feat: use these SMTP values in the mailers

* spec: test the application_mailer

* fix: validate with email, and not url

* feat: mimic macs changes from https://github.com/forem/forem/pull/16216 to use in this PR

* setup packs for admin

* refactor: order the keys and add a const for the auth methods

* feat: rename the header to a more user friendlly name

* chore: move the section with Emails

* feat: add a toggle that will show and hide the SMTP form under certain conditions

* feat: add the javaScript to handle the toggles

* feat: add a better description until we convert to a dropdown

* feat: ensure that we have declared sendgrid_enabled

* chore: add  anote to the config controller

* chore: remove references of the email addresses to keep brnach scoped

* feat: tweak js

* test: cypress workflow to update smtp settings

* feat : update the smtp tests

* remove comments

* update test

* chore: rename NOTE

* feat: polisha dn test ForemInstance.only_sendgrid_enabled?

* chore: remove specs

* Update app/lib/constants/settings/smtp.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Update spec/system/admin/config/admin_updates_smtp_settings_spec.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Update spec/system/admin/config/admin_updates_smtp_settings_spec.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Update spec/system/admin/config/admin_updates_smtp_settings_spec.rb

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Update app/javascript/packs/admin/config/smtp.js

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>

* refactor js as per comments

* refactor as per comments

* Update cypress/integration/seededFlows/adminFlows/config/emailServerSettingsSection.spec.js

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* refactor: update the Cypress tests

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2022-02-15 18:40:14 +02:00
..
.storybook Now <viewbox /> is preserved in SVGs when using the inline-react-svg plugin (#16287) 2022-01-24 16:25:14 -05:00
actionsPanel Generator updates (#16339) 2022-01-28 12:20:30 +01:00
admin Improve the UX of the SMTP Section (#16223) 2022-02-15 18:40:14 +02:00
analytics Accessibility enhancements to navigation tabs (#13559) 2021-05-07 15:24:34 +01:00
article-form Add new tag autocomplete to editor (#16025) 2022-01-21 08:58:05 +00:00
articles Generator updates (#16339) 2022-01-28 12:20:30 +01:00
CommentSubscription Update a11y of ButtonGroup component (#15765) 2021-12-15 12:52:33 +00:00
common-prop-types ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
contentDisplayPolicy Accessibility improvements for hide comments modal (#15462) 2021-11-24 09:50:27 +03:00
crayons Add accessible color picker component (#16385) 2022-02-07 14:30:02 +00:00
githubRepos Updated indicators (#16190) 2022-01-20 06:25:10 +01:00
leftSidebar Refactoring cached_followed_tags (#16175) 2022-01-24 19:53:48 -05:00
liquidTags Rework user subscription liquid tag to avoid errors (#16460) 2022-02-15 09:14:03 +00:00
listings Add new tag autocomplete to editor (#16025) 2022-01-21 08:58:05 +00:00
mobile Update Android PN integration fixes (#15541) 2021-12-02 13:56:28 -06:00
modCenter Bump eslint-config-preact from 1.2.0 to 1.3.0 (#15834) 2021-12-21 14:42:20 +00:00
onboarding Removed colour picker from onboarding as it's never used. (#16491) 2022-02-09 06:17:16 -05:00
organization fix some prop type errors on the home page (#15314) 2021-11-10 13:47:55 +00:00
packs Improve the UX of the SMTP Section (#16223) 2022-02-15 18:40:14 +02:00
podcasts Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
previewCards Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
profileDropdown ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
profilePreviewCards Generator updates (#16339) 2022-01-28 12:20:30 +01:00
readingList Storybook updates (#15848) 2022-01-14 11:06:23 +01:00
responseTemplates Edit buttons styles for Templates responses (Mod) (#14468) 2021-08-12 15:57:36 +01:00
runtimeBanner Add special case for DEV Android app (#16382) 2022-02-02 15:25:14 -06:00
Search Storybook updates (#15848) 2022-01-14 11:06:23 +01:00
searchableItemList Reading list: fix broken pagination (#14031) 2021-06-22 08:24:23 +02:00
shared/components Add new tag autocomplete to editor (#16025) 2022-01-21 08:58:05 +00:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Migrate faker dependency to supported upstream (#16037) 2022-01-10 15:00:48 -06:00
topNavigation Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
utilities Place gifs correctly regardless of center tag (#16404) 2022-02-03 15:44:44 +00:00
.eslintrc.js Reworked some webpack aliases as prework for #16174. (#16412) 2022-02-04 06:34:37 -05:00
netlify.toml Update storybook node version (#16106) 2022-01-14 08:00:39 -05:00
routes.js.erb [15-minute fix] Add js-routes gem (#15133) 2021-11-01 10:08:15 +07:00