Repository navigation
A forward-looking option for admin settings pages, plus a green-gate fix.
Added
DataFormreference (.claude/references/DATAFORM.md) —@wordpress/dataviews'DataForm/DataViewsis the direction WordPress core is taking for admin UI, so the kit now offers it alongside the PHP Settings API, with a decision table for which to reach for. Covers the@wordpress/dataviews/wpimport path required underwp-scripts, registering the plugin's one option as a REST-exposed schema (show_in_rest+additionalProperties => false), enqueuing via the generatedindex.asset.php, mounting the React app, and thefields/formconfig shape.- It deliberately supplies the security layer the upstream WordPress.org tutorial omits: double capability gating, schema-as-validation, a
sanitize_callbackfor defense in depth, and why the REST nonce authenticates but does not authorise. @wordpress/dataviewsadded to the constitution's default npm dependencies, flagged pre-1.0 (import from/wp, pin the version, re-check on upgrade).
Fixed
- Quality gate is green again — the v1.0.2 autoloader closure's
$classparameter tripped a newer WPCS reserved-keyword sniff; renamed to$fqcn. No behaviour change.
Full changelog: https://github.com/pluginslab/wp-agentic-kit/blob/main/CHANGELOG.md