- Add 13 critical CSS files that were missing from repository
- Fixes deployment issues on other machines/environments
- Files include dashboard, templates, certificates, and common styles
- All files force-added to override .gitignore CSS exclusions
🔧 Generated with Claude Code
Co-Authored-By: Ben Reed <ben@tealmaker.com>
- Added display:none !important, visibility:hidden !important, opacity:0 !important inline styles to modal
- Fixed CSS specificity issues preventing modal from being hidden
- Updated JavaScript to properly manage modal visibility state
- Incremented child theme version to 1.2.0 for cache busting
This resolves the non-functional Apply button overlay issue on mobile devices.
Root cause: CSS was setting display: flex by default which overrode
inline style="display: none" attribute on the modal element.
Solution: Changed .hvac-filter-modal default display to 'none' and
only show as 'flex' when .active or .show classes are present.
This ensures the modal respects inline styles and only appears
when explicitly activated by JavaScript.
Fixes modal overlay showing permanently on find-trainer page.
- CRITICAL: Reduce mobile padding waste from 30% to <10% screen usage
- Global mobile container padding: 20px → 10px → 5px (responsive breakpoints)
- Plugin content areas: 20px → 12px → 8px aggressive reduction
- Cards/panels: 15px → 8px → 6px minimal spacing
FIND-A-TRAINER PAGE MOBILE FIXES:
- Complete mobile layout redesign with vertical stacking
- Map height reduced to 200px on mobile devices
- Trainer cards: horizontal layout with 50px avatars
- Touch-optimized filters with 44px+ touch targets
- Search input: full-width with proper iOS zoom prevention
- Typography: compact sizing (16px → 13-15px)
- Ultra-tight spacing: 8px, 6px, 4px based on breakpoints
CHILD THEME INTEGRATION:
- hvac-mobile-responsive.css: Base aggressive mobile optimizations
- hvac-find-trainer-mobile.css: Find-a-trainer specific mobile fixes
- functions.php: Conditional loading and ultra-mobile body classes
- Progressive enhancement with content-based detection
MOBILE BREAKPOINT STRATEGY:
- 768px: 10px padding, stacked layout, single-column grids
- 480px: 8px padding, reduced typography, compact elements
- 375px: 5px padding, ultra-compact spacing, maximized content
FEATURES:
- Ultra-mobile body class system for maximum space usage
- Touch-optimized interface with proper accessibility
- Horizontal scrolling prevention and overflow fixes
- Mobile-first progressive enhancement approach
Deployed to staging with cache cleared and CSS files verified accessible.
Addresses user report of excessive mobile padding and find-a-trainer overflow issues.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Changed headquarters country and state fields from text inputs to dropdown selections
- Added dynamic state/province loading based on selected country (US/Canada)
- Added 'Other' option for non-US/Canada countries with text input fallback
- Properly handle org_headquarters_state_other field in backend processing
- JavaScript handlers for dynamic country/state interaction
- Consistent with Training Venue Information dropdown behavior
Co-Authored-By: Ben Reed <ben@tealmaker.com>
Performance Improvements:
- Created CSS consolidation build process with 87KB combined file
- Reduces HTTP requests from 20+ CSS files to 1 consolidated file
- Added build script for automated CSS optimization
Background Job System:
- Implemented HVAC_Background_Jobs class with WordPress cron integration
- Supports geocoding batches, CSV imports, profile migrations, cache warming
- Queue management with priority, retry logic, and failure handling
- AJAX endpoints for job status monitoring and cancellation
Database Query Monitoring:
- Added HVAC_Query_Monitor for development and performance analysis
- Tracks slow queries (>0.1s), execution times, and memory usage
- Generates optimization recommendations automatically
- Admin interface for query analysis and debugging
- WP-CLI integration for command-line monitoring
Technical Details:
- Background jobs process 5 per batch with 3 retry attempts
- Query monitor logs only HVAC plugin queries to reduce noise
- Consolidated CSS maintains dependency order and includes 7 core files
- All systems include proper error handling and logging integration
Co-Authored-By: Claude <noreply@anthropic.com>
This commit implements a complete trainer profile custom post type system with the following components:
## Core Features Implemented:
- Custom post type 'trainer_profile' with full CRUD operations
- Bidirectional data synchronization between wp_users and trainer profiles
- Google Maps API integration for geocoding trainer locations
- Master trainer interface for profile management
- Data migration system for existing users
## Key Components:
1. **HVAC_Trainer_Profile_Manager**: Core profile management with singleton pattern
2. **HVAC_Profile_Sync_Handler**: Bidirectional user-profile data synchronization
3. **HVAC_Geocoding_Service**: Google Maps API integration with rate limiting
4. **HVAC_Trainer_Profile_Settings**: Admin configuration interface
5. **Migration System**: Comprehensive user meta to custom post migration
## Templates & UI:
- Enhanced trainer profile view with comprehensive data display
- Full-featured profile edit form with 58+ fields
- Master trainer profile editing interface
- Professional styling and responsive design
- Certificate pages template integration fixes
## Database & Data:
- Custom post type registration with proper capabilities
- Meta field synchronization between users and profiles
- Migration of 53 existing trainers to new system
- Geocoding integration with coordinate storage
## Testing & Deployment:
- Successfully deployed to staging environment
- Executed data migration for all existing users
- Comprehensive E2E testing with 85-90% success rate
- Google Maps API configured and operational
## System Status:
✅ Trainer profile viewing and editing: 100% functional
✅ Data migration: 53 profiles created successfully
✅ Master dashboard integration: Clickable trainer names working
✅ Certificate pages: Template integration resolved
✅ Geocoding: Google Maps API configured and enabled
⚠️ Master trainer profile editing: Minor template issue remaining
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
• Add user role field to registration, profile display, and profile edit
- 10 role options: technician, installer, supervisor, manager, trainer, consultant, sales rep, engineer, business owner, other
- Required field with server-side validation
- Radio buttons in registration, dropdown in profile edit
- Displays in profile with proper capitalization
• Implement advanced certification tracking system
- Date Certified: HTML5 date picker with validation (no future dates)
- Certification Type: dropdown with "Certified measureQuick Trainer" and "Certified measureQuick Champion"
- Certification Status: color-coded status badges (Active/Expired/Pending/Disabled)
• Add sophisticated role-based access control
- Regular trainers: read-only access to certification fields
- Administrators & master trainers: full edit access to certification fields
- Visual indicators for read-only fields
- Server-side permission validation
• Enhance plugin activation system
- Initialize all 36 user meta fields for existing users
- Smart default assignment based on user capabilities
- Backward compatibility maintained
• Add professional UI styling
- Blue-bordered certification section with trophy icon
- Color-coded status badges with proper contrast
- Read-only field styling with visual indicators
- Enhanced form controls with focus states
• Comprehensive testing and documentation
- E2E test coverage with visual verification
- Updated API reference with new meta fields
- Access control patterns documented
- 100% test pass rate on staging environment
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Implemented comprehensive trainer navigation system:
* Horizontal and vertical navigation layouts
* Multi-level menu with dropdowns for Events, Venues, Organizers, Profile
* Responsive mobile navigation with hamburger menu
* Keyboard navigation support (Arrow keys, Enter, Escape)
* Active page highlighting
* Master trainer menu items for users with appropriate role
- Created breadcrumb system:
* Automatic breadcrumb generation based on URL structure
* Shortcode support [hvac_breadcrumbs]
* SEO-friendly with structured data (Schema.org)
* Multiple style options (default, pills, arrows)
* Responsive design
- Technical implementation:
* HVAC_Trainer_Navigation class for menu management
* HVAC_Breadcrumbs class for breadcrumb generation
* CSS for both navigation and breadcrumbs
* JavaScript for interactive menu behaviors
* Template part for easy inclusion
Navigation provides easy access to all trainer features and improves UX.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Refactored registration form:
* Moved Application Details to Personal Information section
* Renamed Business Information to Training Organization Information
* Added required Organization Logo upload with media library integration
* Added Headquarters location fields (City, State/Province, Country)
* Moved training-related fields into Organization section
* Created conditional Training Venue Information section with auto-population
- Created comprehensive venue management system:
* Training Venues List page (/trainer/venue/list) with filtering and pagination
* Manage Venue page (/trainer/venue/manage) for create/edit operations
* Full integration with The Events Calendar venue post type
* AJAX-powered forms with real-time validation
- Created trainer profile system:
* Trainer Profile view page (/trainer/profile) with stats and certifications
* Profile Edit page (/trainer/profile/edit) with photo upload
* Years of experience tracking and professional information
* Integration with user meta and custom fields
- Created training organizers management:
* Organizers List page (/trainer/organizer/list) with search functionality
* Manage Organizer page (/trainer/organizer/manage) for CRUD operations
* Organization logo upload and headquarters tracking
* Full integration with The Events Calendar organizer post type
- Technical improvements:
* Modular PHP class architecture for each feature
* Comprehensive AJAX handlers with security nonces
* Responsive CSS design for all new pages
* JavaScript form validation and dynamic behavior
* Proper WordPress and TEC API integration
All new features follow hierarchical URL structure and include breadcrumb navigation.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Scoped all CSS rules to .hvac-event-manage-wrapper to prevent theme conflicts
- Moved navigation header directly into page template to avoid duplication
- Disabled duplicate header hook in HVAC_Event_Manage_Header class
- Added theme override styles to enforce 1200px max-width and 20px padding
- Updated CSS methodology to use consistent spacing and remove CSS variables
- Added HVAC_Page_Content_Fixer class to clean escaped HTML comments
- Updated documentation with CSS architecture details
- Enhanced theme compatibility with higher specificity selectors
The event manage page now displays correctly with:
- Single navigation header (no duplicates)
- Proper white background and shadows
- Consistent button styling matching other pages
- Clean 1200px max-width layout with 20px padding
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed registration form redirect to use hierarchical URL (/trainer/registration/)
- Removed inline styles from event manage page that were breaking theme layout
- Added proper CSS styles for event manage header navigation
- Created header component to properly display navigation on event manage page
- Fixed manage event page detection to be more specific
The event manage page now uses external CSS instead of inline styles that conflict with the theme.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>