fix: docblock syntax errors and crontab reset schedule #91

Merged
jmiller merged 13 commits from dev into main 2026-05-30 21:20:45 +00:00
Owner

Summary

  • Fix PHP syntax errors from */ sequences in docblock comments (closes block comment prematurely)
  • Add crontab-style reset schedule with preset dropdown (hourly, 4h, 6h, daily, weekly, etc.) plus custom option
  • Banner countdown now uses stored next-reset timestamp instead of relative timer
  • Added cron expression parser with support for wildcards, steps, ranges, comma lists

Test plan

  • Verified install on dev site (02.23.00 on Joomla 6.1.1 / PHP 8.4.20)
  • Health endpoint responding correctly
  • Verify clean build includes plg_task_mokowaasdemo
## Summary - Fix PHP syntax errors from `*/` sequences in docblock comments (closes block comment prematurely) - Add crontab-style reset schedule with preset dropdown (hourly, 4h, 6h, daily, weekly, etc.) plus custom option - Banner countdown now uses stored next-reset timestamp instead of relative timer - Added cron expression parser with support for wildcards, steps, ranges, comma lists ## Test plan - [x] Verified install on dev site (02.23.00 on Joomla 6.1.1 / PHP 8.4.20) - [x] Health endpoint responding correctly - [ ] Verify clean build includes plg_task_mokowaasdemo
jmiller added 8 commits 2026-05-30 21:14:01 +00:00
feat(demo): crontab-style reset schedule with preset dropdown and stored countdown
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Universal: Auto Version Bump / Version Bump (push) Failing after 4s
Update Server / Update Server (push) Successful in 13s
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
65e986344e
- Replace hours interval with preset schedule dropdown (hourly, 4h, 6h,
  12h, daily, weekly, monthly) plus custom crontab option
- Banner countdown now uses stored demo_next_reset timestamp calculated
  from cron schedule on save, not a relative timer from page load
- Added cron parser (calculateNextCronRun) supporting wildcards, steps,
  ranges, and comma-separated values

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The string "*/N" inside a docblock contains */ which PHP interprets as
the end of the block comment, making "N" an unexpected identifier.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix: remove all */ sequences from comments to prevent docblock termination
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 8s
Universal: Auto Version Bump / Version Bump (push) Failing after 18s
Update Server / Update Server (push) Successful in 26s
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
5245d15b9d
Cron-related comments contained */ in examples like "*/5" and "*/N"
which PHP interprets as closing the block comment, causing syntax errors.

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller added 1 commit 2026-05-30 21:17:05 +00:00
fix: add plugin attribute to task plugin manifest to set element in DB
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: PR Check / Branch Policy (pull_request) Successful in 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 1s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 6s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 7s
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 8s
Universal: Auto Version Bump / Version Bump (push) Failing after 6s
Universal: PR Check / Validate PR (pull_request) Successful in 8s
Update Server / Update Server (push) Successful in 15s
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Has been cancelled
Joomla: Extension CI / PHPStan Analysis (pull_request) Has been cancelled
Joomla: Extension CI / Build RC Pre-Release (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Generic: Repo Health / Release configuration (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
d9012ffddb
Joomla requires a <filename plugin="mokowaasdemo"> in the files block
to populate the element field in #__extensions. Without it, the DB
INSERT fails with "Field 'element' doesn't have a default value".

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller added 1 commit 2026-05-30 21:17:20 +00:00
jmiller added 1 commit 2026-05-30 21:17:23 +00:00
jmiller added 2 commits 2026-05-30 21:20:19 +00:00
Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merge branch 'dev' of https://git.mokoconsulting.tech/MokoConsulting/MokoWaaS into dev
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 21s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Universal: PR Check / Branch Policy (pull_request) Successful in 11s
Generic: Repo Health / Access control (pull_request) Successful in 4s
Universal: Auto Version Bump / Version Bump (push) Failing after 28s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 34s
Universal: PR Check / Validate PR (pull_request) Successful in 19s
Universal: Secret Scanning / Gitleaks Secret Scan (pull_request) Successful in 29s
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 1m14s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 17m48s
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Has been cancelled
Joomla: Extension CI / PHPStan Analysis (pull_request) Has been cancelled
Joomla: Extension CI / Build RC Pre-Release (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Generic: Repo Health / Release configuration (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
586b7bc105
jmiller merged commit 22acb25bbe into main 2026-05-30 21:20:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoWaaS#91