Ben
bc2a7191e7
fix: master dashboard layout and breadcrumb issues
...
- Fixed breadcrumb method name (render() -> render_breadcrumbs())
- Resolved two-column layout by moving navigation inside content wrapper
- Added dedicated CSS to force single-column layout
- Updated hierarchical URL detection for master dashboard pages
- Updated TROUBLESHOOTING.md with complete master dashboard fixes
- Removed redundant authentication blocking content display
2025-08-22 15:16:45 -03:00
Ben
8724853fdb
fix: resolve master trainer authentication issue preventing page access
...
- Fixed capability check in check_master_dashboard_auth function
- Changed from custom capabilities to role-based check: hvac_master_trainer role
- Root cause: function was checking for capabilities that hvac_master_trainer role didn't have
- This was causing HTTP 302 redirects to login page instead of loading dashboard content
- Master trainer pages now properly authenticate users with hvac_master_trainer role
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 12:50:39 -03:00
Ben
758307a057
fix: create missing master trainer pages to resolve 404 errors
...
Critical page creation fixes identified in headed browser testing:
1. Page Manager Updates (class-hvac-page-manager.php):
- Add master-trainer/trainers page definition
- Add master-trainer/events page definition
- Add master-trainer/communication-templates page definition
- All pages configured with proper templates and capabilities
2. Template Creation:
- Create page-master-trainers.php for All Trainers management
- Create page-master-events.php for Events Management
- Both templates include proper security checks and navigation
These fixes resolve 404 errors discovered in authentic browser testing:
- master-trainer/trainers/ now has proper page definition
- master-trainer/events/ page created for navigation consistency
- All master trainer navigation links will work after deployment
Navigation structure now complete:
✅ Dashboard (working)
✅ Trainers (fixed - was 404)
✅ Events (created)
✅ Tools/Communication Templates (existing)
✅ Help (working)
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 12:09:06 -03:00