Ghost/ghost/admin/app/controllers
Kevin Ansfield bd60c8089b 🐛 Fixed confusing member count shown in save notification and editor header
closes https://github.com/TryGhost/Team/issues/776

Since switching to using a real NQL filter in the `posts.email_recipient_filter` field where we used to show `free members`, `paid members`, or `all members` we were showing `status:free`, `status:-free`, and `status:free,status:-free` respectively. If labels are used in a filter the text became even longer.

- added a `membersCountCache` service
  - `.count(filter)` fetches a numeric count from the members API, if the filter has been counted in the last minute it returns the count directly from a cache instead to avoid hammering the members API when we show counts in multiple places across the UI
  - `.countString(filter)` fetches a count but returns a humanized string with the logic extracted from what we displayed in the confirm email sending modal
- added a `<GhRecipientFilterCount @filter="" />` component that acts as a wrapper around the async count from `membersCountCache`
- updated confirm email send modal, plus save notification and editor status displays for scheduled posts to use the new service and component
2021-06-11 11:44:50 +01:00
..
editor 🎨 Updated admin area design and usability (#1232) 2019-06-18 11:47:20 +01:00
integration/webhooks Updated navigation (#1832) 2021-02-02 16:08:06 +00:00
integrations Added limit check before adding new integration (#1934) 2021-04-28 19:29:25 +12:00
members Added automatic filter of members list after CSV import 2020-07-23 14:15:07 +01:00
settings Wired new membership tiers UI to API 2021-06-04 13:30:11 +05:30
setup Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
staff Added upgrade moal when unsuspending staff user 2021-04-28 18:07:18 +04:00
about.js Switched About screen to use config service 2019-02-26 16:12:34 +07:00
application.js 🐛 Fixed link contrast in editor with very light/dark accent colors (#1870) 2021-03-18 16:46:38 +00:00
billing.js Added billing controller for explicitness 2020-04-22 16:44:34 +12:00
dashboard.js Reverted "Added home redirect for pricing wizard" 2021-05-07 16:15:29 +05:30
designsandbox.js Renamed design sandbox template 2021-02-05 14:00:51 +01:00
editor.js 🐛 Fixed confusing member count shown in save notification and editor header 2021-06-11 11:44:50 +01:00
error.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
integration.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
integrations.js Disabled zapier if custom integrations are disabled 2021-03-04 21:26:24 +00:00
launch.js Updated pricing setup on launch wizard 2021-05-20 17:01:12 +05:30
member.js Updated complimentary subscription assignment to member 2021-05-19 22:36:02 +05:30
members.js Added automatic CSV export when bulk deleting members 2021-04-08 16:06:00 +01:00
pages-loading.js 🎨 Updated admin area design and usability (#1232) 2019-06-18 11:47:20 +01:00
pages.js Added open rate order option to posts list 2020-12-04 10:30:03 +00:00
posts-loading.js Added access level filter to posts and pages lists in admin 2020-06-09 12:19:40 +01:00
posts.js Fixed open rate appearing twice in posts ordering dropdown 2020-12-10 15:14:13 +00:00
reset.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
settings.js Removed unused portal-settings modal code from settings screen 2021-05-19 18:32:37 +01:00
setup.js Fixed deprecated access of controller.{currentPath,currentRouteName} 2019-05-06 14:51:23 +01:00
signin.js Switch deprecated htmlSafe imports from @ember/string to @ember/template 2021-05-12 12:33:40 +01:00
signup.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
site.js Added reset-to-homepage behaviour when clicking "view site" link 2019-03-21 17:55:58 +00:00
tag.js 🐛 Fixed tag metadata fields not being populated when editing in admin (#1714) 2020-09-28 16:20:53 +01:00
tags.js Cleaned up and re-organised tag and new tag routes/controllers 2019-12-09 17:44:16 +00:00