Ghost/ghost/admin/mirage/serializers
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
..
application.js Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
integration.js Added initial custom integrations UI (#1051) 2018-10-18 00:18:29 +01:00
label.js Added ability to bulk delete members by label or status (#1883) 2021-04-08 12:06:27 +01:00
member-activity-event.js Refactored member activity list components 2022-01-19 12:58:09 +00:00
member.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
page.js Removed use of ?include=tags,authors,authors.roles query param on post/page requests 2019-02-25 21:55:55 +07:00
post.js Removed use of ?include=tags,authors,authors.roles query param on post/page requests 2019-02-25 21:55:55 +07:00
product-benefit.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
product.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
subscription.js Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
tag.js Automatically update count.posts when serialising tags in mirage 2018-11-08 13:49:00 +00:00
user.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00