- Added hvac_master_trainer role with special capabilities: * view_master_dashboard * view_all_trainer_data * manage_google_sheets_integration - Created Master Dashboard page and template: * System overview with 6 key statistics (events, trainers, revenue) * Trainer performance analytics table * All events management with filtering * System-wide data aggregation across all trainers - Implemented comprehensive access control: * Master trainers and administrators can access * Regular trainers denied with proper error handling * Non-logged users redirected to login - Added data aggregation class (HVAC_Master_Dashboard_Data): * Direct database queries bypass TEC trainer filters * Aggregates events, tickets, and revenue across all users * Methods for total events, trainer stats, and events data - Enhanced template loading and shortcode registration: * Added [hvac_master_dashboard] shortcode * Integrated master dashboard template loading * Uses harmonized CSS framework for consistent styling - Created comprehensive Playwright test suite: * Tests administrator and trainer access * Verifies access control and error handling * Validates data display and UI rendering * Includes visual verification with screenshots 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
804 B
804 B
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
[... existing content remains unchanged ...]
Memory Entries
- Do not make standalone 'fixes' which upload separate from the plugin deployment. Instead, always redeploy the whole plugin with your fixes. Before deploying, always remove the old versions of the plugin. Always activate and verify after plugin upload
- The deployment process now automatically clears Breeze cache after plugin activation through wp-cli. This ensures proper cache invalidation and prevents stale content issues.
- When testing the UI, use playwright + screenshots which you inspect personally to verify that your features are working as intended.
[... rest of the existing content remains unchanged ...]