Ghost/ghost/admin/app/controllers
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
..
editor Collapsed @service injection definitions to single-line style 2022-02-01 17:03:54 +00:00
members Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
settings Added sender email verification flow for newsletters 2022-04-13 19:34:58 +01:00
setup 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
application.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
billing.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
dashboard.js Updated member count charts to use the new Stats API 2022-03-31 16:09:41 +02:00
designsandbox.js Renamed design sandbox template 2021-02-05 14:00:51 +01:00
editor.js Added newsletter dropdown to publish menu 2022-04-06 10:22:06 +01:00
error.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
home.js Added display of get-started modal after completing setup flow 2022-02-01 18:20:26 +00:00
launch.js Updated pricing setup on launch wizard 2021-05-20 17:01:12 +05:30
member.js Cleaned up membersActivityFeed labs flag (#2309) 2022-03-30 12:43:52 +01:00
members-activity.js Excluded all email related events from feeds when newsletter is disabled 2022-01-27 19:19:15 +00:00
members.js 🐛 Fixed duplicate email open rate column when filtering members by open rate 2022-03-17 09:29:15 +00:00
offer.js Hid archived tiers from offer creation page 2022-03-24 10:26:44 +01:00
offers.js Resolved deprecation warnings for dynamic modal component binding (#2303) 2022-03-14 10:52:04 +00:00
pages-loading.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
pages.js Switched majority of files from EmberObject to native class syntax using @classic decorator (#2227) 2022-02-01 09:34:03 +00:00
posts-loading.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
posts.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
reset.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
settings.js Collapsed @service injection definitions to single-line style 2022-02-01 17:03:54 +00:00
setup.js Directed selfhosters to 'done' screen after setup 2022-03-11 12:42:06 +00:00
signin.js Fixed linter error 2022-03-09 12:24:36 +00:00
signup.js Fixed linter error 2022-03-09 12:24:36 +00:00
site.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
tag.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
tags.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
whatsnew.js Updated database warning wording 2022-01-18 11:10:25 +00:00