Ghost/ghost/admin/mirage/config
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
..
api-keys.js Added initial custom integrations UI (#1051) 2018-10-18 00:18:29 +01:00
authentication.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
config.js 🎨 Added auto-login to private site when viewing site preview in admin (#1286) 2019-08-12 09:11:10 +01:00
custom-theme-settings.js Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
emails.js Fixed tests 2019-11-08 11:14:04 +07:00
integrations.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
invites.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
labels.js Fixed mirage setup for members 2022-02-23 14:21:28 +00:00
members.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
newsletters.js Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
offers.js Fixed mirage setup for members 2022-02-23 14:21:28 +00:00
pages.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
posts.js Added newsletter dropdown to publish menu 2022-04-06 10:22:06 +01:00
products.js Fixed mirage setup for members 2022-02-23 14:21:28 +00:00
roles.js Clarified staff user roles in Admin (#1874) 2021-04-07 15:20:30 +01:00
settings.js Updated to fetch settings using /settings/?group= instead of ?type= 2020-06-24 14:23:51 +01:00
site.js Updated config service to use new /site/ and /config/ endpoints 2019-02-25 21:47:17 +07:00
slugs.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
snippets.js Implemented first iteration of content snippets 2020-10-15 18:03:35 +01:00
tags.js Fixed normalization of attrs in Mirage config and tests (#872) 2017-09-28 09:33:00 +07:00
themes.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
uploads.js Updated gh-uploader to work with new /images/upload/ endpoint 2019-02-25 23:01:49 +07:00
users.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
webhooks.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00