upskill-event-manager/wordpress-dev/package.json
bengizmo 587773b56b fix: Resolve CSS loading and Google Sheets redirect issues
Major fixes implemented:
1. CSS Loading on Hierarchical Pages - FIXED
   - Enhanced page detection logic in hvac-community-events.php
   - Added URL pattern matching for /trainer/* and /master-trainer/*
   - All 7 HVAC CSS files now load correctly on hierarchical pages

2. Google Sheets Infinite Redirect Loop - FIXED
   - Removed duplicate master-trainer-google-sheets page
   - Added redirect loop prevention with hvac_redirect_check parameter
   - Disabled WordPress canonical redirects for Google Sheets URLs
   - Page now loads in 2.4s with 0 redirects (was 50+ before)

3. Google Sheets Folder Manager Integration
   - Moved folder manager to proper location in includes/google-sheets/
   - Added conditional file loading to prevent fatal errors
   - Enhanced error handling throughout Google Sheets components

4. Dashboard Navigation Improvements
   - Fixed duplicate navigation buttons
   - Enhanced Master Trainer dashboard with folder hierarchy support
   - Improved permission checks and role-based access

Technical improvements:
- Added comprehensive debugging capabilities
- Enhanced error handling with try-catch blocks
- Improved conditional file loading patterns
- Fixed hardcoded URLs in Google Sheets admin

All issues tested and verified working on staging environment.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-17 06:50:53 -03:00

29 lines
1 KiB
JSON

{
"name": "wordpress-dev",
"version": "1.0.0",
"description": "WordPress Development Environment",
"scripts": {
"test": "playwright test",
"test:debug": "playwright test --debug",
"test:cert": "playwright test tests/e2e/certificates.test.ts",
"test:cert:gen": "playwright test tests/e2e/certificate-generation-checked-in.test.ts",
"test:basic": "playwright test tests/e2e/certificate-basic.spec.ts",
"test:journey": "playwright test tests/e2e/trainer-journey-harmonized.test.ts",
"test:journey:debug": "playwright test tests/e2e/trainer-journey-harmonized.test.ts --debug",
"test:journey:ui": "playwright test tests/e2e/trainer-journey-harmonized.test.ts --ui",
"report": "playwright show-report"
},
"dependencies": {
"dotenv": "^16.3.1",
"jsdom": "^22.1.0",
"playwright": "^1.53.0",
"ssh2": "^1.14.0"
},
"devDependencies": {
"@playwright/test": "^1.52.0",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.9.0",
"@types/ssh2": "^1.11.18",
"typescript": "^5.2.2"
}
}