<?php
// includes/version.php
define('APP_VERSION', 'v2.0');

$changelog = [
    'v2.0' => [
        'Worship Reports Overhaul (V2) with 6 comprehensive data sections.',
        'New Worship Review Summary report with period filtering and automatic totals.',
        'Enhanced Member Management: Added Intern and Visitor roles/units.',
        'Intelligent Status Logic: "Travelled", "Gospel Errand", and "Not Available" now record as attendance.',
        'Improved Filtering: Visitors and non-available members excluded from rosters and summary reports.',
        'Issue Tracking Enhancements: Added Description Summaries and accurate Aging based on incident date.',
        'Unified spelling of status "Travelled" across the system.',
        'Consolidated database installation and clean workspace deployment.'
    ],
    'v1.2g' => [
        'Added Checked-in Time to Personal Attendance History.',
        'Made Consistent Absenteeism relative to the past 4 months.',
        'Fixed Quarterly Punctual Champion logic to include open services.',
        'Separated Sunday Services and Other Services in Monthly Attendance stats.'
    ],
    'v1.2f' => [
        'Added Quarterly Punctual Champion report tab.',
        'Refined Monthly Attendance with Serial Numbers and distinctive gridlines.',
        'Fixed dark background in Attendance Highlights PDF exports.',
        'Improved print styles for better PDF reports.'
    ],
    'v1.2e' => [
        'Fixed SQL error Unknown column arrival_time in reports.',
        'Fixed blank page in service details by joining with attendance table directly.',
        'Updated Reports logic for more robust data fetching.'
    ],
    'v1.2d' => [
        'Fixed blank page on Service Attendance Details.',
        'Ranked Attendance Highlights by average arrival time.',
        'Added PDF print support to Attendance Highlights.',
        'Improved global naming functions.'
    ],
    'v1.2c' => [
        'Removed Auto-Schedule feature from Services page.',
        'Added Attendance Highlights report (Top/Bottom 10 members).',
        'Enhanced Service Attendance Spool with clickable detailed entries.',
        'Fixed Roster Autocomplete (3-char threshold, auto-comma).',
        'Added versioning system and footer display.'
    ],
    'v1.2b' => [
        'Improved Monthly Attendance PDF (White backgrounds, status definitions).',
        'Restored member deletion for Admin role.'
    ],
    'v1.2a' => [
        'Added High-Density Monthly Attendance Report.',
        'Fixed black background in Roster JPEG exports.'
    ]
];
