v0.5.0 — Forms undo fixes + include_inactive/include_trashed
Three Gravity Forms bug fixes surfaced by a real gds-assistant v0.4.0 session.
Fixes
- Undo silently lied.
RestoreSnapshot::restoreForm/restoreFeedonly checkedis_wp_error()on the GFAPI return, butGFAPI::update_form/update_feedreturn literalfalseon validation/save failure. A failed restore flowed through to gds-assistant as success and the chat displayed "Undone" while the form stayed unchanged. Both now treatfalseas an explicit failure with a meaningful error. - Audit labels were ambiguous after multiple updates. Two consecutive
gds/forms-updatecalls on the same form both produced the snapshot labelRevert form 'X' to its previous state— the user had no way to tell which undo button reverted which change. Labels now include a short delta summary:(fields: 10 → 5)when the field count changed,(changed: title, confirmations)when only top-level metadata moved, falling back to a UTC timestamp for shape-identical edits. gds/forms-listsilently hid disabled / trashed forms. Two new optional input flags —include_inactiveandinclude_trashed— let callers widen the listing when the user is hunting for a form they remember was there. Defaults preserved for backward compat. Description updated to point the model at them.
Companion to gds-assistant v0.4.1 which nudges the model to trust read results and consult the new filter flags before declaring an item gone.
Full changelog: v0.4.0...v0.5.0