Added welcomeEmailsDesignCustomization feature flag#26663
Conversation
refs https://linear.app/ghost/issue/NY-1106 Adds a private feature flag to toggle welcome email design customization on/off
WalkthroughAdds a new private lab feature titled "Welcome Emails Design Customization" with flag 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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 |
Documents the steps for adding a new private feature flag to Ghost
Renamed the feature flag from welcomeEmailDesignCustomization to welcomeEmailsDesignCustomization to match the correct naming convention. This private flag enables design customization options for welcome emails and is available in Labs under developer experiments.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.claude/skills/add-private-feature-flag/SKILL.md (1)
19-23: Add an explicit manual UI verification step for Labs visibility.The test steps currently cover unit/snapshot checks only. Add a short manual check for “Developer Experiments enabled → Labs → Private features toggle visible” to close the loop on UI behavior.
Suggested addition
3. **Run tests and update the config API snapshot** - Unit: `cd ghost/core && yarn test:single test/unit/shared/labs.test.js` - Update snapshot and run e2e: `cd ghost/core && UPDATE_SNAPSHOTS=1 yarn test:single test/e2e-api/admin/config.test.js` - Review the diff of `ghost/core/test/e2e-api/admin/__snapshots__/config.test.js.snap` to confirm only your new flag was added. + - Manually verify in Admin: enable Developer Experiments, then confirm the new toggle appears under **Labs → Private features**.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.claude/skills/add-private-feature-flag/SKILL.md around lines 19 - 23, Update the test steps in the "Run tests and update the config API snapshot" block to include an explicit manual UI verification: after running the unit and snapshot commands (the lines referencing ghost/core && yarn test:single and ghost/core/test/e2e-api/admin/config.test.js), add a short manual check instructing the tester to enable "Developer Experiments" in the UI, navigate to Labs, and confirm the "Private features" toggle is visible; reference the snapshot file ghost/core/test/e2e-api/admin/__snapshots__/config.test.js.snap so reviewers know to verify only the new flag was added.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.claude/skills/add-private-feature-flag/SKILL.md:
- Line 27: The example flag string in SKILL.md is incorrect: replace the
camelCase example `welcomeEmailDesignCustomization` with the canonical key
`welcomeEmailsDesignCustomization` so documentation matches the PR standard and
prevents incorrect flag registration; update the example line that currently
reads "Flags are camelCase strings (e.g. `welcomeEmailDesignCustomization`)." to
use `welcomeEmailsDesignCustomization`.
---
Nitpick comments:
In @.claude/skills/add-private-feature-flag/SKILL.md:
- Around line 19-23: Update the test steps in the "Run tests and update the
config API snapshot" block to include an explicit manual UI verification: after
running the unit and snapshot commands (the lines referencing ghost/core && yarn
test:single and ghost/core/test/e2e-api/admin/config.test.js), add a short
manual check instructing the tester to enable "Developer Experiments" in the UI,
navigate to Labs, and confirm the "Private features" toggle is visible;
reference the snapshot file
ghost/core/test/e2e-api/admin/__snapshots__/config.test.js.snap so reviewers
know to verify only the new flag was added.
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
ghost/core/test/e2e-api/admin/__snapshots__/config.test.js.snapis excluded by!**/*.snap
📒 Files selected for processing (3)
.claude/skills/add-private-feature-flag/SKILL.mdapps/admin-x-settings/src/components/settings/advanced/labs/private-features.tsxghost/core/core/shared/labs.js
🚧 Files skipped from review as they are similar to previous changes (2)
- apps/admin-x-settings/src/components/settings/advanced/labs/private-features.tsx
- ghost/core/core/shared/labs.js
welcomeEmailsDesignCustomization feature flag
closes https://linear.app/ghost/issue/NY-1106/create-feature-flag-for-email-settings-customization
Summary
welcomeEmailDesignCustomizationprivate feature flag to enable toggling welcome email design customization on/offTest plan
ghost/core/test/unit/shared/labs.test.js— 10 passing)