WIP: Bump version to 03.08.00 and add Joomla installation cleanup script #65

Closed
Copilot wants to merge 7 commits from copilot/find-missing-variables into dev/03.08.00
Copilot commented 2026-01-28 03:50:37 +00:00 (Migrated from github.com)

Purpose

Unify template version to 03.08.00 and automate media folder cleanup during template updates.

Change Summary

Version unification (25 files)

  • CSS/JS: 03.05.00/03.00.00 → 03.08.00
  • PHP/Config: 03.06.00 → 03.08.00
  • Updated VERSION comments and version tags in templateDetails.xml, joomla.asset.json, updates.xml
  • Updated all @since tags and messages in script.php to 03.08.00

Installation script (src/templates/script.php)

  • Implements InstallerScriptInterface with lifecycle hooks
  • postflight() triggers cleanup on update (not fresh install)
  • Removes files/folders from configurable arrays
  • Recursively cleans empty directories
  • Logs to logs/moko_cassiopeia_cleanup.php
  • Validates Joomla 4.0+ and PHP 7.4+ requirements
private $filesToRemove = [
    'media/templates/site/moko-cassiopeia/js/old-script.js',
];

private $foldersToRemove = [
    'media/templates/site/moko-cassiopeia/old-assets',
];

Testing Evidence

  • PHP syntax: php -l script.php passes
  • Version grep: 40 occurrences of "03.08.00", zero old versions remain
  • Script untested in live Joomla environment

Risk and Rollback

Low risk. Version changes are cosmetic. Cleanup script only runs on update with empty cleanup lists (no-op until configured). Exception handling prevents fatal errors. Rollback: git revert.

Checklist

  • Follows Conventional Commits
  • Tests added or updated
  • Documentation updated if required
  • License header present where applicable
  • Linked issue(s) referenced

Reviewer Notes

Script uses Joomla 4+ InstallerScriptInterface pattern. Cleanup targets are empty arrays—populate before deploying to remove deprecated assets. Preserves main media structure and logs all operations. Consider testing update flow in staging before production deployment.

Review and Approval


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

## Purpose Unify template version to 03.08.00 and automate media folder cleanup during template updates. ## Change Summary **Version unification (25 files)** - CSS/JS: 03.05.00/03.00.00 → 03.08.00 - PHP/Config: 03.06.00 → 03.08.00 - Updated VERSION comments and version tags in templateDetails.xml, joomla.asset.json, updates.xml - Updated all @since tags and messages in script.php to 03.08.00 **Installation script (`src/templates/script.php`)** - Implements `InstallerScriptInterface` with lifecycle hooks - `postflight()` triggers cleanup on update (not fresh install) - Removes files/folders from configurable arrays - Recursively cleans empty directories - Logs to `logs/moko_cassiopeia_cleanup.php` - Validates Joomla 4.0+ and PHP 7.4+ requirements ```php private $filesToRemove = [ 'media/templates/site/moko-cassiopeia/js/old-script.js', ]; private $foldersToRemove = [ 'media/templates/site/moko-cassiopeia/old-assets', ]; ``` ## Testing Evidence - PHP syntax: `php -l script.php` passes - Version grep: 40 occurrences of "03.08.00", zero old versions remain - Script untested in live Joomla environment ## Risk and Rollback Low risk. Version changes are cosmetic. Cleanup script only runs on update with empty cleanup lists (no-op until configured). Exception handling prevents fatal errors. Rollback: `git revert`. ## Checklist - [x] Follows Conventional Commits - [ ] Tests added or updated - [ ] Documentation updated if required - [x] License header present where applicable - [ ] Linked issue(s) referenced ## Reviewer Notes Script uses Joomla 4+ `InstallerScriptInterface` pattern. Cleanup targets are empty arrays—populate before deploying to remove deprecated assets. Preserves main media structure and logs all operations. Consider testing update flow in staging before production deployment. ## Review and Approval <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.
jmiller-moko (Migrated from github.com) reviewed 2026-01-28 03:50:37 +00:00
jmiller-moko commented 2026-01-28 11:18:54 +00:00 (Migrated from github.com)

@copilot
Bump version to 03.08.00

@copilot Bump version to 03.08.00
Copilot commented 2026-01-28 11:20:59 +00:00 (Migrated from github.com)

@copilot
Bump version to 03.08.00

Updated all version references to 03.08.00 in commit 0a348a2.

> @copilot > Bump version to 03.08.00 Updated all version references to 03.08.00 in commit 0a348a2.

Pull request closed

Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoCassiopeia#65