Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Got some code for us? Awesome 🎊!
Please take a minute to explain the change you're making:
To improve the user experience in the newsletter email preview. Currently, when there's only one member segment option (e.g., no paid members or Stripe not connected), the dropdown is still visible and clickable, which is redundant and can be confusing.
This change introduces a new computed property
showMemberSegmentDropdownthat controls the visibility of the member segment dropdown and its divider. The dropdown will now be hidden entirely in the email preview when only one member segment option is available, while remaining visible in the web preview or when multiple options exist.Ghost users will benefit from a cleaner and less confusing interface when composing newsletters, as redundant UI elements are removed. Developers will appreciate the more intuitive behavior of the preview modal.
Please check your PR against these items:
We appreciate your contribution! 🙏
Linear Issue: DES-1274