Skip to content

Added automations beta feature toggle#28379

Draft
EvanHahn wants to merge 1 commit into
fix-toggle-checkedfrom
add-automations-beta-feature
Draft

Added automations beta feature toggle#28379
EvanHahn wants to merge 1 commit into
fix-toggle-checkedfrom
add-automations-beta-feature

Conversation

@EvanHahn
Copy link
Copy Markdown
Contributor

@EvanHahn EvanHahn commented Jun 4, 2026

closes https://linear.app/ghost/issue/NY-1321
ref #28384

Beta.feature.mp4

Blocked by #28384.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4bfe0fa0-3ea2-477c-b187-4fd521898563

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-automations-beta-feature

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@EvanHahn EvanHahn force-pushed the add-automations-beta-feature branch from d091006 to eb009a3 Compare June 5, 2026 15:49
EvanHahn added a commit that referenced this pull request Jun 8, 2026
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
EvanHahn added a commit that referenced this pull request Jun 8, 2026
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
@EvanHahn EvanHahn force-pushed the add-automations-beta-feature branch from eb009a3 to edc8a2a Compare June 8, 2026 18:32
@EvanHahn EvanHahn changed the base branch from main to fix-toggle-checked June 8, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant