Commit graph

83 commits

Author SHA1 Message Date
bengizmo
b3b0901cd6 feat: Add advanced testing resilience and deployment scripts
- Added visual-regression.sh for detecting UI changes
- Created optimize-tests.sh to improve test performance
- Added canary-deploy.sh for safer deployments with automatic rollback
- Enhanced overall testing and deployment reliability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 21:05:01 -03:00
bengizmo
27bd8b512c feat: Add comprehensive testing resilience and monitoring scripts
- Added test-monitor.sh for monitoring test execution metrics and generating reports
- Created test-data-manager.sh for robust test data management
- Added health-check.sh for comprehensive system health verification
- Enhanced overall deployment safety and reliability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 20:58:41 -03:00
bengizmo
1bdb4f7de8 docs: Add comprehensive testing resilience documentation and scripts
- Added DEPLOYMENT-RESILIENCE.md with strategies for resilient testing
- Created TROUBLESHOOTING.md with solutions to common issues
- Added SELECTORS.md as a centralized selector database
- Created auto-recovery.sh script for automated test failure recovery
- Enhanced overall testing framework resilience

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 20:48:10 -03:00
bengizmo
261ab99e88 docs: Update testing documentation and add deployment resilience scripts
- Enhanced documentation with selector stability best practices
- Added recommendations for resilient testing and deployment
- Created verify-selectors.sh script to validate critical selectors pre-deployment
- Added pre-deploy-validation.sh for comprehensive environment validation
- Improved troubleshooting section with specific recommendations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 20:37:32 -03:00
bengizmo
d1f1005a5a fix: Update login form selectors to match actual page structure
- Updated LoginPage selectors to use more robust input[name] selectors instead of id-based
- Added better error handling and message detection
- Enhanced form waiting for better reliability
- Created debug test scripts to verify selector functionality
- Fixed isLoginFormVisible reference in trainer journey test

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 20:21:16 -03:00
bengizmo
7ac4d4b853 feat: Add test user creation and plugin verification scripts 2025-05-21 20:12:38 -03:00
bengizmo
9b2b574518 fix: Remove duplicate import in BasePage.ts 2025-05-21 20:12:30 -03:00
bengizmo
dfb4faefcf docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
bengizmo
ba40c296f5 update: Change staging domain to upskill-staging.measurequick.com
- Updated configuration files and documentation to use new staging domain
- Created centralized URL configuration for tests
- Updated page objects to use configuration instead of hardcoded URLs
- Added script to automatically update test files with new domain

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 16:42:10 -03:00
bengizmo
1eb46ad0f1 feat: Add Zoho CRM fixes deployment script
- Created deploy-zoho-fixes.sh script to deploy only Zoho-related fixes
- Script creates backups before making changes
- Patch maintains existing credentials while adding .env loading
- Enables diagnostics in wp-config.php
- Properly handles file permissions and cache clearing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 11:29:46 -03:00
bengizmo
e4e41b6c28 fix: Improve Zoho CRM environment variable loading
- Added direct .env file loading to zoho-config.php (without requiring WordPress)
- Created check-zoho-env.php to diagnose environment variable issues
- Enhanced logging of credential loading for better debugging
- Fixed issue with Zoho credentials not being loaded from .env file

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 11:26:14 -03:00
bengizmo
0d55020273 feat: Add Zoho CRM diagnostic and setup tools
- Added setup-zoho-credentials.php script to help generate OAuth credentials
- Added check-permissions.php tool to diagnose file access issues
- Updated diagnostics system to better identify common problems
- Added detailed steps for setting up Zoho CRM integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 11:22:25 -03:00
bengizmo
005bbf537e fix: Improve Zoho CRM integration debug and error handling
- Enhanced error messages for Zoho CRM connection test failures
- Added detailed error information display in admin UI
- Created diagnostics.php script for advanced troubleshooting
- Improved logging with file, line, and stack trace information
- Added client ID, secret, and refresh token validation checks
- Enhanced CSS styling for error messages and debugging info
- Added configuration status checks to help identify issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 11:09:23 -03:00
bengizmo
8d44245ec9 feat: Harmonize Playwright testing capabilities
- Create consistent test structure with latest Playwright version (1.52.0)
- Implement trainer-journey-harmonized.test.ts that works with updated Playwright
- Fix package.json to ensure consistent dependencies
- Add certificate-basic.spec.ts that avoids framework compatibility issues
- Create run-advanced-tests.sh script with enhanced configuration options
- Add comprehensive documentation for the harmonized testing approach

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 10:33:48 -03:00
bengizmo
b9fb3b43f4 test: Add standalone trainer journey test script
- Create comprehensive Node.js-based trainer journey test
- Implement event creation, dashboard verification, and certificate testing
- Add robust error handling and detailed logging
- Bypass Playwright framework issues with direct Playwright API usage
- Ensure test can run independently of test framework configuration
2025-05-21 10:19:51 -03:00
bengizmo
826555b326 test: Enhance trainer journey with certificate functionality
- Update trainer journey tests to include comprehensive certificate testing
- Add attendee search and filtering functionality to the test
- Implement certificate generation and viewing test steps
- Improve documentation with updated test coverage
- Create run script for trainer journey with certificates test
- Update test plan to reflect implemented features
2025-05-21 10:07:35 -03:00
bengizmo
f24b72dc64 test: Add standalone certificate testing script
- Fix Playwright version conflicts in package.json
- Create standalone Node.js certificate testing script
- Improve test reliability by avoiding framework issues
- Test certificate generation and report pages
- Implement filter testing for attendee search
- Add detailed logging for certificate test results
2025-05-21 10:03:09 -03:00
bengizmo
7abd608598 docs: Update testing documentation with certificate testing guidelines
- Add detailed certificate testing instructions to CLAUDE.md
- Document certificate filtering test processes
- Include certificate test data generation scripts
- Add page object model details for certificate testing
- Document certificate system components and testing workflow
2025-05-21 09:56:16 -03:00
bengizmo
353d951ba7 test: Optimize E2E testing infrastructure for certificates
- Add CertificatePage for certificate operations
- Create BasePage for common page object functionality
- Implement CertificateTestData for test data generation
- Create optimized certificate tests with improved stability
- Add test-certificate-filter.sh script for testing certificate filtering
- Improve test organization and reliability
2025-05-21 09:53:36 -03:00
bengizmo
8dde809062 test: Optimize E2E testing infrastructure for certificates
- Add dedicated AttendeeFilterPage for isolating filtering functionality
- Create optimized certificate test focusing on attendee search
- Document testing strategy and best practices
- Add script to analyze and improve Playwright configuration
- Create optimized Playwright configuration template
- Resolve test stability issues with simplified approach
- Improve test isolation and reliability for certificates
2025-05-21 09:45:00 -03:00
bengizmo
a24d3af81b feat: Add certificate test data generation and verification
- Add comprehensive test data generation scripts for certificate testing
- Create scripts to verify certificate data and attendee filtering
- Add detailed findings and documentation on test data
- Include certificate tests for various filter combinations
- Fix issues with attendee filtering implementation in template
- Add validation for certificate template file syntax
- Document test data structure and verification results
2025-05-21 09:41:09 -03:00
bengizmo
31dae475a6 Fix certificate reports page 500 error
This commit addresses the 500 error on the certificate-reports page by:
1. Adding proper error handling to certificate templates
2. Ensuring required classes are loaded in the right order
3. Adding try-catch blocks for better error reporting
4. Creating diagnostic and troubleshooting tools
5. Fixing method signature issues in the certificate manager

The issues were caused by missing database tables or classes not being loaded in the correct order.

Additional improvements:
- Added certificate system diagnostic scripts
- Added comprehensive troubleshooting documentation
- Added automated fix deploy script
2025-05-20 23:29:41 -03:00
bengizmo
5d08f8d28e docs: Update certificate testing documentation and methodology
This commit:
- Creates comprehensive CERTIFICATE_TESTING_GUIDE.md to document certificate testing
- Updates TRAINER_JOURNEY_TEST_SUMMARY.md to include certificate functionality
- Updates main README.md with certificate testing information
- Creates a centralized Config.ts utility for consistent configuration
- Updates CertificatePage.ts and other page objects for consistency
- Creates a guided manual test script (run-certificate-tests.sh)
- Archives outdated certificate test files
- Improves documentation organization and consistency
2025-05-20 23:10:19 -03:00
bengizmo
fbc2d818c0 feat: Add comprehensive certificate E2E tests
- Created CertificatePage class for testing certificate functionality
- Updated DashboardPage to support certificate links in navigation
- Implemented test data generator for certificate testing
- Added tests for certificate generation with checked-in users
- Added tests for certificate generation with non-checked-in users
- Added certificate management (view/email/revoke) tests
- Created comprehensive trainer journey test including certificates
- Added utility script to run certificate-specific tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 20:44:42 -03:00
bengizmo
c417a6154b feat: Implement certificate generation system
- Add certificate database table for storing certificate records
- Create certificate generator using TCPDF library
- Implement certificate template system with HTML templates
- Add certificate management UI for viewing, emailing, and revoking
- Add AJAX handlers for certificate actions
- Implement secure certificate download with tokenization
- Create certificate reports and generation pages with appropriate UI

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 18:33:34 -03:00
bengizmo
64af743cdd fix: Improve email sending functionality and debugging
- Remove problematic  filter implementation
- Add improved email debugging and logging
- Enhance error handling for wp_mail failures
- Add helpful email troubleshooting information
- Add SMTP configuration debugging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 16:48:23 -03:00
bengizmo
8a9f86718f fix: Enhance email system with better error handling and debugging
- Add detailed logging for email system to track issues
- Use PHP mail() as fallback when wp_mail() fails
- Improve recipient matching and validation
- Add debug tools to diagnose email issues on staging
- Add email system debugging panel for admin users
- Fix direct sending for attendees created from test data
- Handle different email field formats from test attendees

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 16:38:28 -03:00
bengizmo
6f3dab5c53 fix: Add direct database query fallback for email attendees page
- Update email attendees class to handle custom attendee data
- Add fallback method to directly query attendee data from database
- Support multiple field formats for attendee names and emails
- Ensure email page works with test attendees created via WP-CLI

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 16:35:15 -03:00
bengizmo
967d3e9c4c fix: Improve dashboard data retrieval for test attendees
- Update dashboard data class to check multiple meta field formats
- Add attendee counting to calculate stats when meta fields missing
- Add revenue calculation based on ticket prices and attendee count
- Add fallback methods for direct database queries
- Fix event summary data to update dashboard stats on view
- Handle check-in status from multiple possible field formats

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 16:29:37 -03:00
bengizmo
42138339cb test: Add certificate generation tests and deployment tools
- Add E2E test for certificate generation functionality
- Create deployment configuration script for staging server
- Add certificate email testing script
- Update composer.lock with TCPDF dependencies

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 15:32:29 -03:00
bengizmo
964d5f75a8 feat: Implement certificate generation system
- Add certificate database schema and installer
- Integrate TCPDF for PDF generation
- Create certificate management and generation classes
- Implement certificate template customization
- Add certificate reports and generation pages
- Integrate with check-in functionality
- Implement certificate viewing, revocation, and email features
- Add certificate actions to Event Summary page

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 15:17:55 -03:00
bengizmo
9a930ea1fc feat: Enhance plugin UI with improved styling and accessibility
- Add responsive button styles with mobile optimization
- Implement accessibility focus styles and keyboard navigation support
- Create animation system for smoother interactive elements
- Add mobile navigation menu for dashboard and main pages
- Include print stylesheet for better printable event summaries
- Optimize all UI components for better usability and consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 12:37:59 -03:00
bengizmo
4262221115 fix: Correct template path for dashboard shortcode
Updated the dashboard shortcode render method to use the correct template path.
Added page rendering verification test to ensure shortcodes render properly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 10:41:18 -03:00
bengizmo
e6bdce4301 feat: Add Email Attendees functionality (Phase 2)
Implements the Email Attendees feature which allows trainers to:
- Email event attendees directly from the Event Summary page
- Filter attendees by ticket type
- Use a rich text editor to compose messages
- Include CC recipients
- Send personalized emails to selected attendees

Includes unit tests, integration tests, and E2E tests to verify functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 10:33:03 -03:00
bengizmo
11bad93a65 feat: Implement Order Summary page functionality
- Enhanced Order Summary template with detailed information display
- Added comprehensive order details including events, tickets, and notes
- Improved Order Summary Data class with additional functionality
- Added access control to ensure only authorized users can view orders
- Created links from Event Summary page to Order Summary page
- Added E2E test for the Order Summary feature
- Created helper script for Order Summary page creation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 09:56:28 -03:00
bengizmo
20a5be3e65 feat: Add trainer profile editing functionality
- Add profile edit form template
- Implement profile update handler with validation
- Add profile update shortcode registration
- Create E2E test for profile editing
- Support updating personal & business info, location info and training preferences
- Add password change functionality with validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 09:47:22 -03:00
bengizmo
60369a212e test: Improve Event Summary authentication tests
- Add specific test for unauthorized access
- Simplify test assertions to be more reliable
- Make tests more resilient to different redirect behaviors
- Update .gitignore to include E2E test files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 09:28:49 -03:00
bengizmo
88c1cd1990 fix: Enhance Event Summary authentication checks
- Add robust authentication check in the template file
- Add WordPress hook at template_redirect to prevent unauthorized access
- Update Event Summary Data class with permission methods
- Modify E2E test to check for accessibility after login
- Fix potential errors in the plugin activation code for page creation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 09:14:22 -03:00
bengizmo
b54f544713 test: Update event summary security test to check for login prompt instead of redirect 2025-05-20 08:30:52 -03:00
bengizmo
e492f7fec3 test: Fix event summary redirect test with increased timeouts 2025-05-20 08:29:18 -03:00
bengizmo
1a563f3133 feat: Add Event Summary Page functionality
- Add event-summary page to required_pages array in main plugin file
- Update render_event_summary() method to handle event ID from URL
- Update template_include filter to load custom event summary template
- Update dashboard event links to point to new event summary page
- Create comprehensive event summary template with statistics and attendee info
- Add E2E tests for Event Summary Page
- Add documentation for Event Summary functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 08:23:40 -03:00
bengizmo
e59c2e5ccc feat: Add Trainer Profile page and functionality
- Add trainer-profile page to required_pages array in main plugin file
- Create template-trainer-profile.php with comprehensive profile display
- Implement render_trainer_profile() function in main class
- Add template loading for trainer-profile page
- Create helper script to ensure trainer-profile page exists in WordPress
- Fix shortcode registration in Login_Handler to prevent duplicates
- Add dashboard verification script for testing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-20 07:43:39 -03:00
bengizmo
461304e9f6 docs: Add dashboard improvements documentation
- Create detailed documentation for dashboard UI/UX improvements
- Document row layout for stats section
- Document dynamic event filtering functionality
- Add technical implementation details
- Add testing information

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 19:43:23 -03:00
bengizmo
5bcd8a48a8 feat: Improve dashboard UI and interactivity
- Change 'Your Stats' section to row layout for better visual display
- Add dynamic event filtering without page reload
- Create AJAX endpoint for event filtering
- Add loading animation and UI feedback
- Improve mobile responsiveness

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 18:54:52 -03:00
bengizmo
f5ccb9085c fix: Resolve Login Page shortcode processing issue
- Fix the Trainer Login page to directly use Login_Handler class
- Skip shortcode processing and call render_login_form directly
- Ensure Login_Handler class is loaded before rendering the form

The issue was that the shortcode registration mechanism wasn't working properly
between the namespace and the static/non-static method calls. By directly
instantiating the Login_Handler class and calling the render method, we bypass
the shortcode system and directly render the login form.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 18:05:40 -03:00
bengizmo
12e360b6e6 fix: Resolve Trainer Login page and link issues
- Fix shortcode registration for community login with correct namespace
- Create dedicated page template for community-login page
- Enable template_include filter to properly load custom page templates
- Fix early loading of Login_Handler class
- Update Trainer Login page title and template handling
- Ensure proper shortcode execution on the login page

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 17:54:43 -03:00
bengizmo
7d74938ab9 feat: Add Trainer Login link to admin sidebar menu
- Add a direct link to the Trainer Login page under HVAC Community Events menu
- Link directly to the community-login frontend page
- Maintain consistent positioning in the menu structure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 17:40:23 -03:00
bengizmo
6974385990 fix: Update Admin Dashboard metrics for attendees and revenue
- Fix attendee count to properly query Event Tickets data
- Add support for counting attendees across all ticket providers (RSVP, PayPal, Tickets Commerce)
- Implement detailed revenue metrics from multiple sources
- Support Event Tickets Plus with WooCommerce ticket sales
- Add support for Tickets Commerce revenue statistics
- Add support for legacy PayPal ticket sales
- Improve dashboard accuracy with proper database queries

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 17:37:04 -03:00
bengizmo
54312badba feat: Add comprehensive Admin Dashboard to HVAC Community Events
- Create Admin Dashboard class with multiple metric categories
- Add health checks for plugin dependencies and system status
- Implement trainer metrics (total registrations, weekly registrations, login tracking)
- Add event statistics (total/past/future/draft/cancelled events, attendee counts)
- Implement revenue statistics (total revenue, weekly revenue, purchase counts)
- Create maintenance controls for cache clearing, database optimization, role regeneration
- Add AJAX-powered metric refresh and CSV export functionality
- Include responsive dashboard UI with metric widgets
- Integrate dashboard into WordPress admin menu under HVAC Community Events
- Add auto-refresh capability (every 5 minutes)
- Include error handling and user notifications

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 17:24:26 -03:00
bengizmo
bc72309bab fix: Resolve critical error on Zoho CRM Sync admin page
- Fix undefined constants in HVAC_Zoho_CRM_Auth class
- Add conditional constant checking for all Zoho configuration constants
- Update zoho-admin.php to use correct method signature for make_api_request
- Create zoho-config.php with default configuration values
- Ensure all ZOHO_* constants have fallback defaults when undefined

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-19 14:59:21 -03:00