-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Wired up alpha button style setting #23343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ref https://linear.app/ghost/issue/PROD-1717 - copied style setting from prototype to alpha newsletter details modal - updated EmailRenderer data fetching/passthrough to include setting - can be used with `{{#if hasOutlineButtons}}` in the main template/partials where we don't have string matching available in handlebars - full setting value is passed through to cards under the `design.buttonStyle` option
WalkthroughThis change introduces a new UI control in the newsletter settings sidebar that allows users to select the button style ("Fill" or "Outline") for newsletters. The selected style is stored in the newsletter's Possibly related PRs
Suggested labels
Suggested reviewers
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.31.1)ghost/core/test/unit/server/services/email-service/email-renderer.test.js🔧 ESLint
apps/admin-x-settings/src/components/settings/email/newsletters/NewsletterDetailModalAlpha.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-react-hooks". (The package "eslint-plugin-react-hooks" was not found when loaded as a Node module from the directory "/apps/admin-x-settings".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-react-hooks" was referenced from the config file in "apps/admin-x-settings/.eslintrc.cjs". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Graph Analysis (1)ghost/core/core/server/services/email-service/EmailRenderer.js (2)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🔇 Additional comments (9)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ref https://linear.app/ghost/issue/PROD-1717
{{#if hasOutlineButtons}}
in the main template/partials where we don't have string matching available in handlebarsdesign.buttonStyle
option