feat(validate): add check_client_theme.php + update client detection #68

Closed
opened 2026-05-23 23:12:59 +00:00 by jmiller · 0 comments
Owner

Summary

PR #67 on dev adds support for client WaaS theme packages (Joomla type="file").

New: validate/check_client_theme.php

Validator for client theme packages:

  • Manifest: required elements (name, element, version), type="file", method="upgrade", XX.YY.ZZ version format
  • Required files: light.custom.css, dark.custom.css
  • PHP syntax check on script.php
  • CSS brace balance + BOM detection
  • Version consistency (manifest vs updates.xml vs CHANGELOG)
  • Image size warnings (>1MB)

Updated: validate/auto_detect_platform.php

Client detection now recognises type="file" manifests in src/templateDetails.xml as client repos (theme packages), alongside legacy sftp-config/monitoring detection.

Context

Client repos (client-waas-*) now use Joomla file packages instead of raw site deployments. The CI workflow (ci-client.yml) calls check_client_theme.php for validation. Already deployed to:

  • OptainFunding/client-waas-optainfunding
  • ClarksvilleFurs/client-waas-clarksvillefurs
  • MokoConsulting/Template-Client-WaaS

PR

PR #67 is ready to merge when dev is free.

Generated with Claude Code

## Summary PR #67 on dev adds support for client WaaS theme packages (Joomla `type="file"`). ### New: `validate/check_client_theme.php` Validator for client theme packages: - Manifest: required elements (`name`, `element`, `version`), `type="file"`, `method="upgrade"`, XX.YY.ZZ version format - Required files: `light.custom.css`, `dark.custom.css` - PHP syntax check on `script.php` - CSS brace balance + BOM detection - Version consistency (manifest vs `updates.xml` vs CHANGELOG) - Image size warnings (>1MB) ### Updated: `validate/auto_detect_platform.php` Client detection now recognises `type="file"` manifests in `src/templateDetails.xml` as client repos (theme packages), alongside legacy sftp-config/monitoring detection. ### Context Client repos (`client-waas-*`) now use Joomla file packages instead of raw site deployments. The CI workflow (`ci-client.yml`) calls `check_client_theme.php` for validation. Already deployed to: - `OptainFunding/client-waas-optainfunding` - `ClarksvilleFurs/client-waas-clarksvillefurs` - `MokoConsulting/Template-Client-WaaS` ### PR PR #67 is ready to merge when dev is free. Generated with Claude Code
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#68