feat: pre-update backup notice + live-progress modal on update pages (#196) #232
Reference in New Issue
Block a user
Delete Branch "feat/preupdate-modal-notice"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase-1 baseline for the pre-update backup modal ("notice now, interception later").
Why nothing "popped"
The server-side
onExtensionBeforeUpdatebackup runs synchronously mid-request, so it can't drive a browser modal — the HTTP response isn't flushed until the whole update finishes. A live modal has to live on the client, on the update page.What this adds
plg_system_mokosuitebackupgainsonBeforeCompileHead— oncom_joomlaupdateandcom_installer&view=update, gated by the existingshow_update_notice+backup_before_updateparams (and skipped if a pre-update backup already ran this session), it injects:ajax.init→ loopajax.stepuntildone) with a dependency-free progress overlay.AjaxController::preupdateAck()(new endpoint) — after a successful modal backup the client pings it; it arms the same 10-minute throttle keyrunPreActionBackup()checks, so clicking Joomla's Update afterward won't run a duplicate server-side backup.media/jsfolder; en-US/en-GB language keys added.Design notes
Joomla.getOptions('plg_system_mokosuitebackup.preupdate').Verify
php -lclean (AjaxController, plugin);node --checkclean (JS).config.xmlparamsshow_update_notice,backup_before_update,default_profile.Refs #196
https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i