Hid welcome emails if automation labs flag is on#27872
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughThis PR implements conditional visibility for the "Welcome emails" section in membership settings based on the automations feature flag. membership-settings imports the feature flag hook and filters SearchableSection keywords to exclude memberEmails when automations is enabled, rendering MemberEmails only when disabled. The sidebar mirrors this by computing visibleMembershipSearchKeywords and hiding the Welcome emails nav item when automations is enabled. Playwright acceptance tests assert both visible and hidden states via mocked browseConfig responses. Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| const {settings, config} = useGlobalData(); | ||
| const [hasTipsAndDonations] = getSettingValues(settings, ['donations_enabled']) as [string]; | ||
| const hasStripeEnabled = checkStripeEnabled(settings || [], config || {}); |
There was a problem hiding this comment.
These were moved up, but were otherwise unchanged.
6abf6e6 to
c5347f6
Compare
c5347f6 to
ab7a64b
Compare
closes https://linear.app/ghost/issue/NY-1251
Screencast.mp4