# Changelog

## 1.7.0
- Rebuilt Quick Product Manager as a lazy AJAX editor.
- Removed per-row variation price scans and repeated category/brand dropdown rendering from initial page load.
- Fetch edit options once on demand and cache them in the browser for the current page.
- Fetch detailed product/variation pricing only for the product being edited.
- Save quick edits over AJAX without full-page reload.
- Default pagination reduced to 10 with 10/20/50 choices.
- Multiple open edits save sequentially to reduce server load spikes.


## 1.6.2
- Bulk CSV categories now match existing WooCommerce categories by exact name/path; no automatic category creation.
- Re-importing an existing parent code corrects its category assignment.
- Quick Product Manager uses resilient raw data rendering and safer variable-price reads.
- Added full-screen and per-row runtime containment for the quick manager.

## 1.6.1
- Hotfix: isolate Quick Product Manager rows so one malformed/corrupt product cannot crash the whole admin table.
- Added safe price fallback for variable products and WooCommerce logging per failed product row.
- Use the loaded product object type instead of an extra product-type lookup while rendering the quick manager.

## 1.6.0
- Added Quick Product Manager with inline final-category, brand, regular-price, and sale-price editing.
- Added search by product name/SKU and category/brand filters.
- Added individual-row save and bulk save for changed rows.
- Variable product price changes update every child variation and synchronize the parent price range.
- Added responsive UI and pagination options for 20, 50, or 100 products.
## 1.5.3
- Fixed color swatch compatibility with plugins that store HEX values in `product_attribute_color` and other detected color term-meta keys.
- Preserves third-party attribute types such as `color`; only upgrades the default `select` type to WooCommerce `wc-visual`.
- Re-runs the color metadata migration for existing `pa_color` terms.
- Reworked CSV decoding to normalize the entire uploaded file to UTF-8 before parsing.
- Added UTF-8 BOM, UTF-16LE/BE, Windows/CP1256, ISO-8859-6 and Western legacy fallbacks with Arabic-aware scoring.
- Prevents import when text already contains obvious question-mark corruption instead of creating damaged product descriptions.
- Re-importing an existing parent code can repair a previously corrupted product title/description from a clean CSV while keeping the existing product and variations.
## 1.5.2
- Fixed CSV import fatal error when a PHP/mbstring build rejects Windows-1256 in `mb_detect_encoding()`.
- Replaced hard-coded mbstring detection with safe UTF-8 validation and iconv/CP1256 conversion fallbacks.
- Improved Arabic CSV compatibility on servers with different PHP encoding support.

## 1.5.1
- Hotfix: bulk-import admin screen now catches runtime PHP Errors instead of showing WordPress's fatal-error screen.
- Removed dependency on WooCommerce Internal VisualAttributeTermMeta; swatches now use the public `color` term meta directly.
- Added WooCommerce log output for contained runtime errors with source `gaty-add-product-brands`.
- Hardened upload-size display and importer session TTL against environment/load-order differences.

## 1.5.0
- Added bulk color creation from multiple name + HEX rows.
- Added fast paste input using `Color | #HEX` format.
- Added live swatch preview and client/server validation.
- Existing colors with the same HEX are skipped; conflicting existing colors are preserved and reported.
- New bulk colors are synchronized with WooCommerce visual swatch metadata.

## 1.4.0
- Added CSV bulk product import grouped by parent code.
- Added preview and batched AJAX processing.
- Added automatic category, brand, color, swatch, and size creation during import.
- Added per-color image URL, SKU, pricing, and stock support.
- Added duplicate parent-code protection and a CSV template.

## 1.3.1
- Fixed empty frontend color swatches for Gaty-created colors.
- Synced HEX values to WooCommerce native visual color term meta.
- Added automatic migration for existing colors.
- Upgrades the color attribute to `wc-visual` when supported.

## 1.3.0
- Prepared metadata and documentation for WordPress.org submission.
- Added GPL license metadata and removed the placeholder Plugin URI.
- Added WordPress and WooCommerce compatibility metadata.
- Improved output escaping in admin screens.
- Added complete WordPress.org readme documentation and data-retention notes.

## 1.2.0
- Added cascading root/child category creation.
- Added brand taxonomy synchronization.
- Added category hierarchy preview.

## 1.1.0
- Redesigned product creation screen with per-color product data.
- Added cascading product category selection.
- Added color and size variation generation.
