Ghost/ghost/admin/app/transforms
Kevin Ansfield 3e4b9a6865 🎨 Updated post settings menu visibility option to support member segments
https://github.com/TryGhost/Team/issues/581

The API now supports `posts.visibility` being an NQL string as well as the special-case `'members'` and  `'paid'` values so the post settings menu visibility select needs to be updated to reflect that.

- swapped visibility dropdown for two radio buttons, "Public" and "Members-only" which uses the `<GhMembersSegmentSelect>` component
- updated post model to use a `visibility-string` transform
  - converts `members` and `paid` to/from the NQL equivalent for correct display in the segment select
- updated post model with two additional properties `isPublic` and `visibilitySegment`
  - `isPublic` helps with the radio button display
  - `visibilitySegment` allows fallback to the default content visibility setting when set to public
- added validation for `post.visibility` so we can show an error and skip saving when members-only is selected and the segment select is cleared
- deleted the now-unused `<GhPsmVisibilityInput>` component
2021-05-10 20:34:23 +01:00
..
facebook-url-user.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
json-string.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
member-product.js Wired up Member details screen to Custom Products 2021-04-26 17:28:39 +01:00
member-subscription.js Revert "Revert "Updated usage of subscriptions data for members (#1834)"" 2021-02-09 07:52:40 +05:30
members-segment-string.js Added default newsletter recipients setting (#1946) 2021-05-07 10:02:19 +01:00
moment-date.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
moment-utc.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
navigation-settings.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
raw.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
slack-settings.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
stripe-price.js Wired new Products settings UI to API data (#1930) 2021-04-26 23:52:04 +05:30
twitter-url-user.js Upgraded eslint-plugin-ghost and fixed new linter errors 2020-01-16 17:01:12 +00:00
visibility-string.js 🎨 Updated post settings menu visibility option to support member segments 2021-05-10 20:34:23 +01:00