Safe Mass Operations, Visual Diff Staging & Rollback π‘οΈ
Performing bulk edits directly in the WordPress admin panel or running raw SQL updates is notoriously dangerous: one wrong filter can corrupt thousands of product prices, erase customer metadata, or trigger unintended email notifications. WooPilot AI introduces Universal Visual Diff Staging β an enterprise safety gateway ensuring that 100% of store mutations are visually verified before touching your live database, with instant 1-click rollback.π§ How Visual Diff Staging & Rollback Works
π Key Safety Guarantees
- High-Contrast Visual Diff (
~~Old~~ β New):- Unaltered metadata (ID, SKU, Title) is locked to the left.
- Modified fields are highlighted on the right with clear strikethrough comparison badges:
~~$120.00~~ β $102.00.
- Optimistic Concurrency Control & Conflict Detection:
- Before applying any mutation, WooPilot AI runs a pre-flight verification against your live store database.
- If a productβs price, stock, or status changed in WooCommerce while the staging card was awaiting approval (e.g. by another store manager or sales sync), an interactive Conflict Warning appears.
- You can choose to Refresh Table (re-calculating values on live data with zero AI token cost) or Overwrite Anyway.
- 1-Click Rollback & Untrash Recovery:
- Every executed mutation artifact stores an exact deterministic inverse patch in PostgreSQL.
- If you want to revert a promotional repricing or undo an accidental bulk edit, tap Rollback in the Mini App (0ms AI generation delay, 0 token spend).
- Deleted products, variations, or orders moved to the WordPress trash are cleanly restored via the dedicated
untrashgateway (WooPilot_REST_Untrash), recovering true original statuses (publish,draft) and purging temporary trash meta.
- Chunked Execution (50 items / 100ms):
- Large operations (e.g. 500+ items) are executed in non-blocking batches of 50 items with 100ms pauses to prevent PHP script timeouts or server CPU spikes.
- Official WooCommerce API Execution (
rest_do_request):- Mutations are never executed via raw SQL. They pass through official WooCommerce REST controllers in memory, guaranteeing that stock status changes, HPOS synchronizations, cache invalidations, and native hooks fire cleanly.
- Stepper Multi-Step Sequences:
- Complex workflows (Step 1: Set discount Step 2: Move items to Sale category) are organized into structured Stepper sequences, guiding you step-by-step with live checklist updates in Telegram (
πββ).
- Complex workflows (Step 1: Set discount Step 2: Move items to Sale category) are organized into structured Stepper sequences, guiding you step-by-step with live checklist updates in Telegram (