Ghost/ghost/admin/app/components/modals
Kevin Ansfield e398557a75 Added sender email verification flow for newsletters
refs https://github.com/TryGhost/Team/issues/584
refs https://github.com/TryGhost/Team/issues/1498

- updated newsletter save routine in `edit-newsletter` modal to open an email confirmation modal if the API indicates one was sent
  - modal indicates that the previously set or default email will continue to be used until verified
  - response from API when saving looks like `{newsletters: [{...}], meta: {sent_email_verification: ['sender_name]}}`
  - added custom newsletter serializer and updated model so that the `meta` property returned in the response when saving posts is exposed
    - Ember Data only exposes meta on array-response find/query methods
    - https://github.com/emberjs/data/issues/2905
- added `/settings/members-email-labs/?verifyEmail=xyz` query param handling
  - opens email verification modal if param is set and instantly clears the query param to avoid problems with sticky params
  - when the modal opens it makes a `PUT /newsletters/verify-email/` request with the token in the body params, on the API side this works the same as a newsletter update request returning the fully updated newsletter record which is then pushed into the store
- removed unused from/reply address code from `<Settings::MembersEmailLabs>` component and controller
  - setting the values now handled per-newsletter in the edit-newsletter modal
  - verifying email change is handled in the members-email-labs controller
- fixed mirage not outputting pluralized root for "singular" endpoints such as POST/PUT requests to better match our API behaviour
2022-04-13 19:34:58 +01:00
..
design Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
edit-newsletter Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
editor Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
limits [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
members Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
offers Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
post-preview Dropped ember-concurrency-decorators dependency 2022-02-09 10:49:38 +00:00
tiers Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
confirm-unsaved-changes.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
custom-view-form.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
custom-view-form.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
delete-post.hbs Added "Enter" key handling to refactored delete-post modal 2021-09-13 13:58:13 +01:00
delete-post.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
edit-newsletter.hbs Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +01:00
edit-newsletter.js Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
email-preview.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
email-preview.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
new-custom-integration.hbs [chore] adds ember-template-lint and fixes all fixable issues (#2238) 2022-02-02 16:09:43 +00:00
new-custom-integration.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
post-preview.hbs Hid email related ui when subscription access is set to 'Nobody' 2022-02-11 09:29:11 +01:00
post-preview.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
search.hbs Refactored search modal 2022-01-11 17:59:48 +00:00
search.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00