Ghost/ghost/admin/mirage
Thibaut Patel a47b61c1d4 Added canceled subscriptions in member detail screen (#2287)
refs https://github.com/TryGhost/Team/issues/1141

Showing canceled subscriptions provide a more complete picture of the activity of a member.

- Given there is no `member.product` object when a subscription is canceled, use the `member.subscriptions.price.product` objects instead of `member.products`.
- applied boy-scout rule for linter errors and and code formatting
- removed `multipleTiers` flag conditionals as it's now GA
- set up subscriptions as a separate mirage resource so they are easier to work with
    - updated `PUT /members/:id/` endpoint to match real API's complimentary subscription behaviour
    - modified mirage member serializer to match API output

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2022-03-18 16:15:42 +00:00
..
config Added canceled subscriptions in member detail screen (#2287) 2022-03-18 16:15:42 +00: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 Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
utils.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00