Problem: - E2E tests for registration (`registration.spec.ts`) were failing. - Successful submissions did not redirect as expected. - Validation errors were not displayed on the form after submitting invalid data. Debugging: - Initial analysis pointed to issues in the PHP form handler (`class-hvac-registration.php`). - Refactored handler to use `admin_post` hook and transients for error persistence. - Success redirect test passed, but validation errors still missing. - Added extensive logging (`error_log`) to trace execution flow and transient handling. - Investigated log output location (stderr via php-fpm.conf, not debug.log). - Logs showed PHP handler wasn't being called on validation failures. - Ruled out JS interference (`hvac-registration.js`). - Diagnosed native HTML5 validation (`required` attribute) as blocking form submission in E2E tests. Solution: - Added `novalidate` attribute to the `<form>` tag in `display_form_html` to bypass browser validation during tests. - Confirmed PHP handler (`process_registration_submission`) is now invoked correctly on both success and failure. - Confirmed `validate_registration` generates errors correctly. - Confirmed transient mechanism correctly passes errors back to the form page. - Confirmed error messages are displayed correctly in the HTML. Outcome: - All E2E tests in `registration.spec.ts` now pass. - Registration form handling follows standard WordPress practices (`admin_post`, transients). Changes: - Modified `class-hvac-registration.php` (admin_post, transients, novalidate). - Modified `registration.spec.ts` (removed test.fail directives). - Updated `activeContext.md`, `progress.md`, `decisionLog.md`, `implementation_plan.md`. |
||
|---|---|---|
| .roo | ||
| docs | ||
| memory-bank | ||
| wordpress-dev | ||
| .gitattributes | ||
| .gitignore | ||
| .rooignore | ||
| .roomodes | ||
| insert-variables.sh | ||
| README.md | ||
Network Events
Status: Active/Authoritative Last Updated: March 12, 2025 Scope: Main project documentation
A specialized community events platform for trainers using The Events Calendar suite.
Description
Network Events is a WordPress plugin that extends The Events Calendar suite to create a specialized platform for trainers. It provides a custom user role for trainers, registration and login forms, a trainer dashboard, and event management capabilities.
Features
- Custom user role for HVAC trainers
- Trainer registration and login
- Trainer dashboard
- Event creation and management
- Event summary and reporting
- Attendee management
- Email communication with attendees
- Integration with The Events Calendar suite
Requirements
WordPress Environment
- WordPress 5.9 or higher
- PHP 7.4 or higher
Required Plugins (Pre-installed on Production)
All required plugins are automatically synced from production during development environment setup:
-
The Events Calendar Suite:
- The Events Calendar (6.10.2+)
- Events Calendar Pro (7.4.2+)
- Event Tickets (5.19.3+)
- Event Tickets Plus (6.2.0+)
- Community Events (4.10.0+)
-
Additional Plugins (present on the Upskill HVAC Website):
- Spectra Pro (2.0.0+)
- Premium Starter Templates (4.4.14+)
- Essential Blocks (5.3.2+)
License
Copyright (c) 2025 Teal Maker Consulting
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. You may NOT assume that you can use any other version of the GPL.
Credits
Developed by Teal Maker Consulting