Live Activity Indicators & Dashboard Cleanup
- NEW Pulsing lime green border on dashboard tiles with today's activity — orientations or visitors
- ENHANCE Green glow resets automatically at midnight — only sites with same-day submissions light up
- ENHANCE Removed "All Sites" summary tile from dashboard to free up space
- FIX Visitor count no longer double-counted from All Sites summary row
Certification Status Tracking, Visitor UI & Alert Improvements
- NEW Status column on admin dashboard — shows certification expiry status per worker
- NEW EXPIRED (red), ALERT (orange, within 30 days), VALID (green) indicators based on worst cert date
- ENHANCE Certification expiry fields now use Month/Year picker — ensures consistent date format
- ENHANCE Visitor Sign-In button moved to top of landing page with larger, more eye-catching design
- ENHANCE Visitor site picker redesigned with card-style buttons replacing dropdown
- NEW Pulsing "VISITOR PASS" badge on each site card so workers know it's not the orientation form
- NEW "This is for VISITORS only" notice banner on visitor sign-in page
- FIX Supervisor-only fields (5 Step Supervision, First Aid) no longer saved when worker selects Labourer or Operator role
- FIX Hidden role-specific fields are cleared on the form when switching roles
- FIX "Worker Rep. or JHSC for Project" No answer no longer triggers red alert on dashboard
Role-Based Fields, Selection Type & Dashboard Improvements
- NEW Role selection on orientation form — Labourer, Operator, or Supervisor
- NEW Selection field type in template editor — define custom dropdown options
- NEW Role-based field visibility — form hides questions not relevant to the selected role
- NEW "Needs" flag in template editor — marks fields required for Labourers and Operators
- NEW "Supervisor" flag in template editor — marks fields required for Supervisors
- NEW Override PIN system — per-site configurable PIN to allow submission when required fields are incomplete
- NEW Operator column on admin dashboard with checkmark indicator
- FIX "Are you an Equipment Operator?" No answer no longer triggers red alert on dashboard
- ENHANCE Red alert now only triggers for safety-related No answers
Version History Page & Admin Dashboard Enhancements
- NEW Version History page accessible from admin dashboard header
- NEW Visitors button pulses yellow when active visitors are on site with live count
- ENHANCE Active/Expired status bar on visitor badge now full-width with time-in on the right
- ENHANCE Visitor name resolution improved for custom template field IDs
- ENHANCE Admin visitor popup layout cleaned up - proper label wrapping for long question text
- NEW PDF download button on admin visitor detail popup
Visitor Sign-In System & Multi-Photo Support
- NEW Visitor Login - yellow pulsating button on landing page for visitor sign-in
- NEW Visitor form with configurable yes/no questions, selfie capture, and digital signature
- NEW Digital visitor badge pass with photo, badge number, effective date, and active status
- NEW Must answer YES to all questions to submit visitor form
- NEW Kiosk sign-out mode - visitors enter badge number to sign out
- NEW Auto-expire visitors at end of day
- NEW Admin dashboard split tiles - orientations and visitors on site per job site
- NEW Admin visitor log with search, filter, sign-out, and delete actions
- NEW Visitor form template editor in admin panel
- ENHANCE Orientation form now supports up to 3 photos per section (sticker, cert front, cert back)
- ENHANCE Photo upload allows camera or file picker (no longer forces camera open)
Write Safety & Field Name Compatibility
- ENHANCE Safe file writes - write to .tmp, backup to .bak, then atomic rename to prevent data loss
- FIX Admin dashboard supports both old and new field IDs (company/companyEmployer, etc.)
- FIX Server search filtering handles field name fallbacks
- NEW Hourly GitHub backup to private repo (every 15 min for submissions)
PDF Export & Edit Reason Tracking
- NEW Download PDF button on submission detail popup
- NEW Professional PDF generation - page 1 for data and signature, additional pages for each photo
- NEW Edit reason modal popup when saving admin edits
- NEW Full edit history stored with editor name, timestamp, and reason
- ENHANCE Edit history displayed in submission detail popup
Admin Panel & Form Template System
- NEW Admin panel with role-based access (Management and Admin roles)
- NEW Dashboard with per-site submission counts and stats tiles
- NEW Submission viewer with search, filter by site, and date range
- NEW Configurable form template editor - add/remove/reorder fields per site
- NEW Per-site form overrides with field types: text, tel, email, textarea, yes/no, note
- NEW Site manager - create, edit, delete job sites
- NEW Excel export of submissions per site
- NEW Edit submissions from admin panel
- NEW Yes/No alert system - submissions with "No" answers flagged and pulsing red
- NEW Safety contact configuration per site (name, email, phone, carrier)
Initial Release - QR Orientation System
- NEW QR code landing page with job site selection
- NEW Worker orientation sign-in form with personal info fields
- NEW Sticker photo capture for hardhat identification
- NEW Certification photo upload (front and back)
- NEW Digital signature pad with devicePixelRatio scaling
- NEW JSON file-based data storage
- NEW Express.js server with session-based authentication
- NEW Cloudflare Tunnel routing for public access