# Changelog

All notable changes to AdFuz will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.1.0] - 2026-10-05

### Added
- **⚡ Quick Ad Studio**: A full-width interactive creator modal enabling publishers to build ads, auto-link campaigns and ad spaces, and optionally assign site-wide global ads in under 30 seconds.
- **Live Reactive Preview**: Real-time canvas simulation with Desktop, Tablet, and Mobile device preview toggles.
- **Modular 3-Tab Architecture**: Dedicated tabs for **1. Ad Creative**, **2. Campaign & Ad Space** (with auto-dimension detection), and **3. Global Ads** (supporting single-space formats and multi-spot selectors for Corner Peel and Edge Bar).
- Atomic backend endpoint `adfuz_quick_create_ad` guaranteeing database consistency and immediate shortcode generation (`[ad-fuz ad_space_id="XX"]`) with 1-click clipboard copy.

## [2.0.0] - 2026-10-05

### Added
- Official support and seamless integration for **AdFuz Pro**.
- Interactive Pro Showcase banner on Dashboard highlighting advanced monetization features (Geo/Device targeting, A/B testing, conversions, automated reporting).
- "Upgrade to Pro ⭐" admin submenu item and quick-access floating sidebar button.
- Helper utility `Common::isProActive()` and centralized `Url::proUrl()` generator with UTM parameter tracking.

### Improved
- Transitioned plugin codebase to 2.x generation, consolidating all 1.3.x fixes, security standards, and autoloader optimizations.

## [1.3.16] - 2026-10-05

### Fixed
- Replaced relative file paths with absolute `__DIR__` references in `ad-fuz.php` to prevent activation failures during WordPress admin plugin sandbox scrape.
- Made autoloader case-resilient across Linux environments and registered it prior to validation hooks.

### Added & Improved
- Bundled pure PHP `MaxMind\Db` binary reader in `includes/vendor/MaxMind` with built-in PSR-4 autoloader for zero-configuration, standalone deployment.
- Enhanced ad space shortcodes with `slug` support and auto-healing fallback for seeded sample spaces.
- Added standardized cross-platform POSIX production packaging script (`build-zip.php`) using PHP ZipArchive.

## [1.3.15] - 2026-10-03

### Security
- Hardened output escaping in upgrade checkout templates using `wp_kses_post()`.
- Added missing translator comments above localized strings with placeholders.

### Fixed & Improved
- Enforced WordPress Coding Standards (WPCS 3.4.1) across the codebase, resolving over 1,000 formatting, spacing, and indentation issues.

### Added
- Automated Playwright Zero-Blindspot Testing Sentinel (`wp-sentinel.ts`) monitoring browser console errors, failed AJAX/REST requests, and `wp-content/debug.log`.
- Centralized `.gitattributes` to safely version development tools and build scripts in Git while excluding them from production release ZIPs.
- Autonomous AI quality protocol (`AGENTS.md`) and quality checker script (`check-quality.bat`).

## [1.3.14] - 2026-10-02

### Added
- Dedicated **Add-Ons** section and admin submenu (`Ad Fuz > Add-Ons`).
- Dynamic remote catalog cache refresh and 1-click extension management.
