Added automations beta feature toggle#28379
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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThe PR extends the feature-toggle system with optional confirmation-modal support and integrates it to add a guarded "Automations" beta lab toggle. Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 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 |
d091006 to
eb009a3
Compare
towards https://linear.app/ghost/issue/NY-1321 *This change should have no user impact.* This fixes two things with `<Toggle>`: - Updates the props so the component is either [controlled or uncontrolled][0]. In other words, it should be impossible to pass `checked` without passing `onChange`, and vice-versa. - Uses `checked`, not `defaultChecked`, to properly control the input. This means we can update `<Toggle>`s without having to extra work to make it re-render. I think this is a useful change on its own, but will also make [an upcoming change][1] easier. [0]: https://react.dev/reference/react-dom/components/input#controlling-an-input-with-a-state-variable [1]: #28379
towards https://linear.app/ghost/issue/NY-1321 *This change should have no user impact.* This fixes two things with `<Toggle>`: - Updates the props so the component is either [controlled or uncontrolled][0]. In other words, it should be impossible to pass `checked` without passing `onChange`, and vice-versa. - Uses `checked`, not `defaultChecked`, to properly control the input. This means we can update `<Toggle>`s without having to extra work to make it re-render. I think this is a useful change on its own, but will also make [an upcoming change][1] easier. [0]: https://react.dev/reference/react-dom/components/input#controlling-an-input-with-a-state-variable [1]: #28379
eb009a3 to
edc8a2a
Compare
edc8a2a to
30eeeb7
Compare
30eeeb7 to
eb1e486
Compare
eb1e486 to
ae2e4f3
Compare
| okRunningLabel: 'Enabling...' | ||
| }} | ||
| disabled={isAutomationsEnabled} | ||
| flag="automations" |
There was a problem hiding this comment.
This is the same as the labs flag.
closes https://linear.app/ghost/issue/NY-1321
ref #28384
Beta.feature.mp4