Circulation Management Components
Overview
The Journal Events system includes two key blocks for managing event circulation:
- Admin Event Attendees Block
- Admin Overview Block
Admin Event Attendees Block
Key Components
- Event Selector
- Dynamic dropdown of available events
- Real-time attendee count updates
- Filter by event status
- DataTables Integration
- Live inline editing
- Column sorting/filtering
- Member status coloring
- Export functionality
- Member Management
- Status tracking (Premium, Standard, Customer, Account, None)
- Auto-detection of member roles
- Color-coded visualization
- Status updates on email changes
- Attendee Functions
- Add/remove attendees
- Update attendee details
- Handle stay & play info
- Track room preferences
Data Flow
Event Selection
↓
Load Attendees
↓
Display Grid
↓
Enable Actions
├→ Edit Details
├→ Add Attendees
├→ Remove Attendees
├→ Update Status
└→ Export Data
Admin Overview Block
Key Components
- Entry Management
- Registration tracking
- Lead booker management
- Partner assignments
- Guest handling
- Data Integration
- WooCommerce sync
- User role tracking
- Member status checks
- Stay & play details
- Reporting Tools
- CSV exports
- Entry summaries
- Golf/guest counts
- Status tracking
- Form Functions
- Add/edit entries
- Partner management
- Guest assignments
- Room preferences
Integration Points
WordPress Core ←→ Journal Events ←→ WooCommerce
↓ ↓ ↓
Users Attendees Customers
↓ ↓ ↓
Roles Events Orders
Shared Functionality
1. Data Management
- Member status determination
- CSV generation
- Inline grid editing
- User role tracking
2. UI Components
DataTables
├→ Inline editing cells
├→ Status coloring
├→ Action buttons
└→ Export tools
Modal Forms
├→ Add attendee/entry
├→ Edit details
└→ Partner management
3. Security Controls
- Role-based access
- Nonce verification
- Data validation
- Input sanitization
Implementation Details
CSS Structure
- Member type colors
- Status indicators
- Form styling
- Modal layouts
JavaScript Modules
admin-event-attendees.js
└→ Event attendee management
admin-overview.js
└→ Entry form management
Shared Utilities
├→ Data validation
├→ API requests
├→ Status checks
└→ Export handlers
REST API Endpoints
GET /event-attendees
POST /update-attendee
DELETE /delete-attendee
POST /add-attendee
GET /generate-csv
Configuration
- Member role mappings
- Status priorities
- Color schemes
- Export formats