Skip to content

Conversation

@prschulz
Copy link
Contributor

Got some code for us? Awesome 🎊!

Please take a minute to explain the change you're making:

  • Why are you making it?
    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.
  • What does it do?
    This change introduces a new computed property showMemberSegmentDropdown that 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.
  • Why is this something Ghost users or developers need?
    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:

  • I've read and followed the Contributor Guide
  • I've explained my change
  • I've written an automated test to prove my change works

We appreciate your contribution! 🙏


Linear Issue: DES-1274

Open in Cursor Open in Web

fixes https://linear.app/ghost/issue/DES-1274

When Stripe is not connected or there are no paid members, the member
segment dropdown in the email preview now hides entirely when there's
only one option. The dropdown remains visible on the web preview where
there are multiple options.

Co-authored-by: peter <peter@ghost.org>
@cursor
Copy link

cursor bot commented Jan 22, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

The segment dropdown is now hidden when there's only one option
available, so the test now verifies this behavior instead of trying
to interact with the dropdown.

Co-authored-by: peter <peter@ghost.org>
@github-actions
Copy link
Contributor

React E2E Tests Failed

To view the Playwright test report locally, run:

REPORT_DIR=$(mktemp -d) && gh run download 21260901355 -n playwright-report-react -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants