Ghost/ghost/admin/tests/integration
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
..
adapters Switched from v3 to canary API 2021-02-05 09:12:26 +00:00
components 🎨 Updated post settings menu visibility option to support member segments 2021-05-10 20:34:23 +01:00
helpers Fixed test failure for post time format 2020-12-11 10:03:29 +01:00
services Switched from v3 to canary API 2021-02-05 09:12:26 +00:00