-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Added newsletters.button_style
column
#23322
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 - added `newsletters.button_style` column ready for controlling button styles in emails, with two options of `fill` (default, current production design) and `outline` which is a new option
WalkthroughA new migration script has been added to introduce a Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (4)
✨ 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 (
|
It looks like this PR contains a migration 👀 General requirements
Schema changes
Data changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to check most of the items from the checklist. The testing ones I think we're discussing on Slack.
Not sure about the filename for the migration. I didn't find specific guidelines, but judging from what we've done in the past, for adding a column we've often used the format YYYY-MM-dd-HH-mm-ss-add-column-name-to-table-name.js
, so this migration should probably be called 2025-05-13-17-36-56-add-button-style-to-newsletters.js
. What do you think @kevinansfield?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevinansfield as discussed on our call, please just use a recent convention that feels good for the filename. 🙂
Personally I like the |
My 2c here is as long as we use hyphens, similar language (e.g. add and not adding or added) and the right date format it's fine. Uppercase, snake case, spaces etc all cause real issues :D |
ref https://linear.app/ghost/issue/PROD-1717
newsletters.button_style
column ready for controlling button styles in emails, with two options offill
(default, current production design) andoutline
which is a new option