Ben
ea54d476bb
refactor: remove old button navigation and integrate into dropdown menu
...
- Removed old button navigation from master dashboard
- Added Google Sheets to Tools dropdown menu
- Added Account dropdown with Trainer Dashboard and Logout options
- Ensured all navigation links are properly integrated in the menu system
- Master dashboard now uses consistent navigation with all other pages
2025-08-22 18:32:06 -03:00
Ben
2f9213e878
fix: critical master dashboard rendering issues identified in zen code review
...
Address top 3 critical issues preventing dashboard content from rendering:
1. HTML Injection Fix (class-hvac-community-events.php:924-927):
- Move error div from wp_head to wp_footer with proper styling
- Prevent markup corruption that breaks content rendering
- Add proper escaping with esc_html()
2. Remove Template Redundancy (class-hvac-community-events.php):
- Remove force_master_dashboard_content() method and filter
- Eliminate competing content injection mechanisms
- Simplify to single template_include approach
3. Navigation System Integration (class-hvac-master-menu-system.php):
- Align DOM IDs with existing JavaScript expectations
- Change wrapper classes to match existing CSS hooks
- Fix capability vs role filtering logic
4. Template Safety (page-master-dashboard.php):
- Guard constant definition to prevent redefinition notices
These fixes resolve zen GPT-5 identified issues:
- [CRITICAL] HTML in wp_head breaking content display
- [HIGH] Redundant template mechanisms causing conflicts
- [HIGH] CSS/JS integration mismatches preventing navigation
- [MEDIUM] Capability filtering using role names incorrectly
Architecture improvements maintain security while fixing execution.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 11:35:40 -03:00
Ben
9c2e8cdd3c
fix: master trainer dashboard template loading and navigation restructure
...
Three critical fixes to resolve dashboard not rendering below navigation:
1. Template Loading Fix (class-hvac-community-events.php:838-840):
- Force custom template loading for master dashboard page
- Remove WordPress template assignment dependency that was failing
2. Direct Template Inclusion (page-master-dashboard.php:44):
- Replace shortcode approach with direct include
- Bypass shortcode processing issues preventing content render
3. Navigation Restructure (class-hvac-master-menu-system.php):
- Reduce navigation from 17 complex items to 5 essential items
- Add capability-based filtering and internationalization
- Implement proper WordPress security patterns
Successfully addresses user-reported issues:
- No content below toolbar (template inclusion fix)
- Overly complex UI elements (17→5 navigation items)
- Non-functional navigation links (structured menu system)
Architecture improvements:
- Proper role-based access control (roles vs capabilities)
- Plugin hook extensibility with apply_filters
- Comprehensive capability filtering system
- WordPress i18n compliance with esc_html__()
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 11:33:53 -03:00