*** SIRAPIX POS For WooCommerce Changelog ***
 
2026-01-17 - version 1.0.0
* Changed - Release version bump to 1.0.0 (first stable public release on WordPress.org).

2026-01-16 - version 0.3.0
* Added - Main plugin file renamed to follow WordPress convention (`sirapix-pos-for-woocommerce.php`) while keeping existing bootstrap logic intact.
* Fixed - Output escaping per reviewer guidance (escape late) including replacing `esc_url_raw()` with `esc_url()` where values are output.
* Fixed - Onboarding and standalone POS rendering regressions caused by `wp_kses_post()` stripping `<script>` tags.
* Improved - Sanitization of printed assets: allowlisted `<link>`/`<style>` tags via `wp_kses()`, and sanitized only `<script>` tag attributes while preserving inline JS bodies to prevent syntax errors.
* Fixed - WooCommerce HPOS compatibility warning by declaring compatibility against the main plugin file reference.

2025-12-09 - version 0.1.3
* Added - Refunds / Orders view in the POS header, accessible via a refund icon, allowing cashiers to:
    * See the latest orders (30 per page with pagination) by default.
    * Search orders by order ID or customer phone/email from a single field.
    * Filter orders by origin (In-store, Phone, Online).
* Added - Order details + refunds REST API endpoints under `sirapix-pos/v1`:
    * `GET /orders` for listing orders with search/origin filters.
    * `GET /orders/{id}` for viewing order items, refundable quantities, and customer summary before refund.
    * `POST /orders/{id}/refund` for creating full or partial refunds with optional reason and restock flag; refunds are tagged with POS cashier metadata and order status is moved to Refunded when fully refunded.
* Added - Front-end refund drawer UI in `pos.js` wired to the new endpoints so refunds can be initiated directly from the POS without visiting WooCommerce admin.

2025-11-18 - version 0.1.2
* Added - New onboarding flow for store owners, with a two-step wizard that:
    * Generates the offline products snapshot from a single "Continue" action.
    * Shows progress and a completion animation before sending you to the POS.
* Added - Improved offline-first POS shell:
    * Service Worker also pre-caches a compact settings JSON snapshot.
    * Safer cache headers to avoid stale HTML while still allowing offline POS via the Service Worker.
* Added - UI/UX polish:
    * Refined POS layout, typography, and spacing.
    * Added branded SIRAPIX credits in POS and onboarding.
* Fixed - Occasional double-submits on Complete Order.
* Fixed - Edge cases where static products JSON could become out of sync after settings changes.

2025-10-10 - version 0.1.1
* Added - Offline order queue:
    * Orders created while offline are stored locally and synced automatically when the connection returns.
    * Queued orders counter and a guarded "Sync now" button in the POS header.
* Added - Online / Offline status indicator in the POS header so cashiers always know connection state.
* Added - Static products snapshot + nightly auto-refresh:
    * Manual "Generate products.json" action in settings with last generated time and product count.
    * Daily WP-Cron job to keep the snapshot up-to-date.
* Added - Customer & account hardening:
    * Secure customer lookup and auto-fill by phone via REST.
    * Enforced real email for POS-created accounts via a dedicated My Account "Update email" endpoint.
* Fixed - Variation price and image handling for variable products.
* Fixed - Receipt branding and QR link generation for order URLs.

2025-09-03 - version 0.1.0
* Added - Initial public beta of SIRAPIX WooCommerce POS:
    * 3-column POS UI (Customer | Categories | Products/Cart).
    * Auth gate with allowed roles (administrator, shop_manager by default).
    * In-store order creation with stock reduction and standard WooCommerce emails.
    * Offline Payment + Offline Store shipping method.
    * Basic offline support using a generated products.json snapshot.
* Added - Core REST API endpoints for categories, products, customers, and orders.
* Added - First version of the POS layout, autocomplete search, and receipt view with site branding.

