Ghost/ghost/admin/app/utils
Fabien 'egg' O'Carroll a4107b8202
🐛 Fixed incorrect member subscription details in Admin (#20476)
fixes https://linear.app/tryghost/issue/ENG-642

- When a subscription is in the `canceled` state the corresponding
Member has no access to the Ghost site. The only time a Member will
continue to have access if their subscription is due to cancel at the
period end is if it is still in an active state, which is one of
`active` `trialing` `unpaid` or `past_due`
- When a subscription is canceled immediately (i.e. before the end of
the current billing period), we now render "Ended" without a date,
because we don't store the cancellation date in the subscription object.
We previously used "Ended {current_period_end}" which would sometimes
lead to dates in the future
- Bonus: refactored code and added unit tests

---------

Co-authored-by: Sag <guptazy@gmail.com>
2024-07-02 13:58:20 +00:00
..
analytics.js Added Posthog event sending to trackEvent function (#19716) 2024-02-20 14:32:56 -08:00
bound-one-way.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
caja-sanitizers.js Fixed multiple no-shadow linting errors 2020-06-17 09:35:46 +01:00
copy-text-to-clipboard.js 🐛 Fixed copy-to-clipboard buttons in Chrome + Firefox 2021-10-05 15:32:23 +01:00
ctrl-or-cmd.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
currency.js Fixed typos (#18648) 2023-10-31 15:21:44 +00:00
fetch-koenig-lexical.js Implemented cachebuster for Admin-X Settings and Koenig-Lexical files 2023-10-06 10:41:37 +02:00
flatten-grouped-options.js Brought checkboxes back to publish menu recipient selection (#1972) 2021-05-21 18:22:01 +01:00
get-scroll-parent.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00
ghost-paths.js Updated Admin-X bundling process 2023-09-19 11:31:55 +02:00
isNumber.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
link-component.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
merge-stats-by-date.js Optimized stats aggregation code for Admin dashboard 2024-06-26 15:46:39 +02:00
password-generator.js Fix linting errors 2019-07-22 11:21:24 +01:00
publish-options.js Reduced amount of member count queries when opening the editor (#19474) 2024-01-13 19:13:49 +01:00
route.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
selection-list.js Added bulk edit pages API and admin UI (#16633) 2023-04-14 12:16:15 +02:00
sentry.js Moved error exclusion to correct place 2024-06-26 12:43:55 +02:00
shortcuts.js 🐛 Fixed pasting into the post tags input not working (#1739) 2022-08-03 11:14:12 +01:00
slug-url.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
subscription-data.js 🐛 Fixed incorrect member subscription details in Admin (#20476) 2024-07-02 13:58:20 +00:00
window-proxy.js use windowProxy to avoid mangling URL during team acceptance tests 2017-11-10 14:27:47 +00:00