Refactoring plugin settings with the WordPress DataForm API
WordPress 6.9 ships the DataForm component, so a settings page can be declared as configuration instead of a stack of PanelBody components. Field definitions, card layouts, and wiring the form up to the REST API.