=== DripSync - AI Image Sync ===
Contributors: elytronlabs
Tags: product images, image sync, ai, media library, product photos
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 1.2.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI matches your Google Drive images to the right WooCommerce products and syncs them. Optional native-upload companion with one-click connect.

== Description ==

DripSync uses AI to automatically match product images stored in Google Drive
with the right WooCommerce products and sync them to your store.

This plugin is **optional**. You can connect any WooCommerce store to DripSync
in one click with no plugin at all, using WooCommerce's built-in app
authorization. Installing this plugin adds two things on top: a faster
**native image-upload path** (images are written directly into your media
library) and a **DripSync menu inside your WordPress admin** for one-click
connect and status.

**How it works:**

1. Connect your WooCommerce store to DripSync, one click from this plugin.
2. Link a Google Drive folder containing your product images.
3. DripSync's AI analyzes your images and matches them to the correct products.
4. Review the suggestions and push approved images to your store.

**Key features:**

* **AI-powered image matching**: automatically pairs Drive images with the
  right products using visual and text analysis.
* **Google Drive sync**: connect any folder and keep images in sync as you add
  new files.
* **One-click push**: upload matched images directly to your WooCommerce
  products.
* **Hero image selection**: AI picks the best product image for the primary
  position.
* **Variant support**: match images to specific product variations (color,
  size, and other options).
* **Bulk operations**: process hundreds of products at once.

Using DripSync requires a free account at https://dripsync.elytron.in. Every
store gets a free image audit and 25 free product credits, no card required.

== External Services ==

This plugin connects to DripSync (https://dripsync.elytron.in), a service
operated by Elytron Labs. It is required for the plugin's core purpose:
matching and syncing your product images. It is used in these ways:

1. **Store connection (write)**: when you click "Connect Now", the plugin
   generates WooCommerce REST API credentials and sends them, together with
   your site URL, plugin version, and an admin return URL, to DripSync over
   HTTPS (POST to https://dripsync.elytron.in/wc/connect/plugin-handoff).
   DripSync uses these credentials to read your product catalog and upload
   matched images to your store. No data is sent until you explicitly click
   "Connect Now".
2. **Image sync (inbound)**: once connected, DripSync reads your products and
   pushes approved images back to your store, either through WooCommerce's
   REST API or through this plugin's authenticated upload endpoint. Only
   product and media data is accessed; orders, customers, and payment data are
   never touched.

Data is sent only while the plugin is active and only after you initiate a
connection. The API credentials are revoked automatically if you disconnect or
deactivate the plugin.

* Terms of Service: https://dripsync.elytron.in/terms
* Privacy Policy: https://dripsync.elytron.in/privacy

== Installation ==

1. Upload the `dripsync` folder to the `/wp-content/plugins/` directory, or
   install directly through the WordPress plugin screen.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Navigate to **WooCommerce > DripSync** in your WordPress admin.
4. Click **Connect Now** to generate API keys and link your store to DripSync.
5. Complete the setup on the DripSync web app.

== Frequently Asked Questions ==

= Do I need a DripSync account? =

Yes. This plugin connects your WooCommerce store to the DripSync web app at
https://dripsync.elytron.in, where the AI image matching and sync happen.
Every store gets a free image audit and 25 free product credits, no card
required.

= Do I even need this plugin? =

No. DripSync connects to any WooCommerce store in one click without a plugin,
using WooCommerce's built-in authorization. Install this plugin only if you
want the faster native image-upload path or a DripSync menu inside your
WordPress admin. Both routes give the same AI matching and sync.

= What permissions does DripSync need? =

The plugin creates WooCommerce REST API keys with Read/Write access. DripSync
uses these to read your product catalog and upload matched images. The keys are
automatically revoked if you disconnect or deactivate the plugin.

= Is my data secure? =

Your API credentials are transmitted over HTTPS and stored securely. DripSync
only accesses your product data and media, it does not touch orders, customers,
or payment information.

= Can I disconnect at any time? =

Yes. Go to **WooCommerce > DripSync** and click **Disconnect**. This revokes the
API keys immediately. You can reconnect whenever you like.

= Does it work with product variations? =

Yes. DripSync can match images to specific product variations based on
attributes like color, size, and other options.

== Screenshots ==

1. DripSync settings page: connected state with dashboard link.
2. Connect screen: one-click setup.
3. DripSync dashboard: AI image matching in action.

== Changelog ==

= 1.2.2 =
* WooCommerce is now guided, not required: the plugin activates on any WordPress site and shows an install/activate WooCommerce step (notice + settings screen) instead of blocking activation.
* The upload endpoint returns a clear 503 when WooCommerce is not active.

= 1.2.1 =
* Security: the media upload endpoint now also requires the WooCommerce API
  key's owner to have the upload_files capability (write-scoped keys minted
  for users without media rights are refused).
* Packaging: removed WordPress.org directory assets from the plugin zip.

= 1.2.0 =
* Security: connecting no longer passes API credentials through the browser.
  The plugin now hands them to DripSync directly server-to-server; only a
  short-lived one-time token travels via your browser.
* Fixed: the plugin's "Connected" status now confirms correctly after
  connecting.
* On a failed connection attempt, the generated API key is cleaned up
  automatically.

= 1.1.0 =
* Fixed: connect now points to the production DripSync app.
* Native image upload works alongside DripSync's no-plugin one-click connect.
* Added a "Settings" link on the Plugins screen and translation loading.
* Clarified that the plugin is optional (connect works without it).

= 1.0.0 =
* Initial release.
* One-click WooCommerce store connection.
* Automatic REST API key generation.
* Connection status management.
* WooCommerce dependency check.

== Upgrade Notice ==

= 1.2.0 =
Security hardening: API credentials are no longer passed through the browser
during connect. Recommended for all users.
</content>
