- Add interactive modal popup for announcement 'Read More' functionality - Fix nonce conflict by creating separate hvac_announcements_ajax object - Implement secure AJAX handler with rate limiting and permission checks - Add comprehensive modal CSS with smooth animations and responsive design - Include accessibility features (ARIA, keyboard navigation, screen reader support) - Create detailed documentation in docs/ANNOUNCEMENT-MODAL-SYSTEM.md - Update API-REFERENCE.md with new modal endpoints and security details - Add automated Playwright E2E testing for modal functionality - All modal interactions working: click to open, X to close, ESC to close, outside click - Production-ready with full error handling and content sanitization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			918 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			No EOL
		
	
	
		
			918 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # Create test announcement for modal functionality
 | |
| echo "Creating test announcement on staging..."
 | |
| 
 | |
| sshpass -p 'Cj4$5jdG*9nK' ssh root@upskill-staging.measurequick.com "cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && wp post create \
 | |
|   --post_type=hvac_announcement \
 | |
|   --post_title='Modal Test Announcement' \
 | |
|   --post_content='<p>This is a test announcement to verify that the modal popup functionality works correctly when clicking Read More buttons.</p><p>The modal should display this full content along with the announcement title, date, and author information in a properly styled overlay.</p><p>Testing features:</p><ul><li>Modal opens on button click</li><li>Content loads via AJAX</li><li>Modal closes with X button</li><li>Modal closes when clicking outside</li><li>Escape key closes modal</li></ul>' \
 | |
|   --post_status=publish \
 | |
|   --post_author=1"
 | |
| 
 | |
| echo "Test announcement created!" |