Ghost/ghost/admin/app/routes
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 [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
member
members
offer
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
tag Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
admin.js
application.js Resolved ember-simple-auth deprecations 2022-01-22 00:30:56 +00:00
authenticated.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
dashboard.js Updated default redirect for contributors 2022-02-02 10:12:16 +01:00
designsandbox.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
editor.js Dropped ember-useragent dependency 2022-03-07 10:06:35 +00:00
error404.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
home.js Renamed Finishing Touches onboarding step to Done with other changes and styling tweaks 2022-03-02 12:46:15 +00:00
launch.js
member.js Cleaned up membersActivityFeed labs flag (#2309) 2022-03-30 12:43:52 +01:00
members-activity.js Cleaned up membersActivityFeed labs flag (#2309) 2022-03-30 12:43:52 +01:00
members.js
offer.js
offers.js
pages.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
posts.js Contributors updates (#2235) 2022-02-01 18:59:20 +01:00
pro.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
reset.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
settings.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
setup.js 🎨 Redesigned user authentication pages (#2286) 2022-03-08 17:30:46 +00:00
signin.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
signout.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
signup.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
site.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
tag.js
tags.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
unauthenticated.js
whatsnew.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00