Ghost/ghost/admin/mirage
Kevin Ansfield 6e0be9e175 Wired up newsletter management with real newsletter model and API
refs https://github.com/TryGhost/Team/issues/1441

- switched "leave settings" confirmation modal on members email settings screen over to modern modal pattern
- removed unused `showEmailDesignSettings` property and `closeEmailDesignSettings()` action on `<Settings::MembersEmailLabs>` component
  - the used property and action live on the controller, looks like it was a copy/paste hangover when functionality was moved to a component
- added newsletter model
  - includes design-related attributes which are not yet supported by the API but are due to be added
  - includes `default` attribute but there is no setting for it, due to be removed from the API but it's needed for save not to error for now
  - set up basic mirage model and endpoints
  - added validation for main settings to match API validation
- added `EditNewsletter` modal
  - separate tabs for general newsletter settings and design-related settings
  - used for both creating and editing newsletters
- added `/settings/members-email/newsletters/new` and `/settings/members-email/newsletters/:id` routes
  - both display the `EditNewsletter` modal on top of the members-email settings screen with the appropriate newsletter model
- updated `<Settings::MembersEmailLabs::NewsletterManagement>` component to work with real newsletter model instances and the new add/edit routes
- removed now-unused `newsletter` service that was providing mocked data for earlier design iteration
2022-04-04 19:30:52 +01:00
..
config Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +01:00
factories Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
fixtures Updated mirage with new tier visibility property 2022-03-08 15:51:40 +05:30
models Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
scenarios 🔥 Removed all subscriber feature related code (#1337) 2019-09-26 15:58:01 +02:00
serializers Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00:00
.eslintrc.js Update dependency eslint to v7 (#1566) 2020-05-17 22:53:37 +01:00
config.js Wired up newsletter management with real newsletter model and API 2022-04-04 19:30:52 +01:00
utils.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00