=== zqdev AI UX Editor ===
Contributors: zqdev
Tags: gutenberg, ai, copywriting, block editor, gemini
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI-powered copy editor for Gutenberg. Select any block and instantly rewrite, shorten, fix grammar, or change tone — powered by Google Gemini.

== Description ==

zqdev AI UX Editor brings AI-powered copywriting directly into the Gutenberg block editor. Select any paragraph, heading, or button block, choose an action, and receive three AI-generated variations in seconds — all without leaving the editor.

**How it works:**
1. Select a Paragraph, Heading, or Button block in the editor
2. Open the zqdev AI UX Editor panel (sidebar or toolbar button)
3. Choose an action: Rewrite, Shorten, Fix Grammar, or Change Tone
4. Click "Generate variations" and pick your favourite
5. Apply it to the block with one click — or undo instantly

**Actions included:**
* **Rewrite** — Makes copy clearer, more engaging, and more persuasive
* **Shorten** — Cuts copy down while keeping the core message
* **Fix Grammar** — Corrects spelling, grammar, and punctuation
* **Change Tone** — Rewrites in Professional, Casual, Friendly, Persuasive, Formal, or Enthusiastic tone

**Features:**
* Works on paragraph, heading, and button blocks
* Inline toolbar button for quick access
* One-click apply with undo support
* Clean, minimal UI that does not clutter the editor
* Your API key is stored securely in WordPress options — never exposed to the browser

**Requirements:**
* A free Google Gemini API key from [Google AI Studio](https://aistudio.google.com/app/apikey)
* WordPress 6.2 or higher
* PHP 8.0 or higher

**Privacy & External Services:**
This plugin sends the text content of selected blocks to the Google Gemini API for processing. No personal user data is transmitted — only the block content you choose to edit. By using this plugin you agree to [Google's Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms).

API endpoint used: `https://generativelanguage.googleapis.com`

**Looking for more?**
A premium version is available with additional features and advanced capabilities.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/zqdev-ai-ux-editor/`, or install via the WordPress plugin screen
2. Activate the plugin via the **Plugins** menu in WordPress
3. Go to **Settings → zqdev AI UX Editor** and enter your free Gemini API key
4. Open any page or post in the block editor, select a block, and click the AI icon in the toolbar

**Getting a free API key:**
1. Visit [Google AI Studio](https://aistudio.google.com/app/apikey)
2. Sign in with a Google account
3. Click "Create API key"
4. Copy the key and paste it into Settings → zqdev AI UX Editor

No credit card is required for the free tier.

== Frequently Asked Questions ==

= Is this plugin free? =
Yes. The plugin itself is free and open source. It uses the Google Gemini API, which has a generous free tier (approximately 1,500 requests per day).

= Do I need a Google account? =
Yes. You need a free Google account to generate an API key at Google AI Studio.

= Does this plugin send data to external servers? =
Yes. When you generate variations, the text content of the selected block is sent to Google's Gemini API. No WordPress user data, passwords, or personal information are sent. See the Privacy section above.

= What blocks does it support? =
Paragraphs, headings, and buttons (core WordPress blocks). Custom blocks are not supported in this version.

= I see "Gemini quota reached" — what does that mean? =
The free Gemini API tier allows approximately 1,500 requests per day and 15 per minute. If you hit this limit, wait a few minutes or activate billing in Google AI Studio for higher limits.

= Can I use this with the classic editor? =
No. This plugin is designed exclusively for the Gutenberg block editor.

= Where is my API key stored? =
Your API key is stored in the WordPress database using `wp_options`. It is never exposed in the browser or to other users.

== Screenshots ==

1. The zqdev AI UX Editor panel showing the four action buttons
2. Selecting a block and viewing generated variations
3. The Settings page where you enter your API key

== Changelog ==

= 1.1.0 =
* Rebranded to zqdev AI UX Editor
* Unique prefix applied across all identifiers
* WordPress.org plugin review compliance improvements

= 1.0.0 =
* Initial release
* Rewrite, Shorten, Fix Grammar, Change Tone actions
* Support for paragraph, heading, and button blocks
* One-click apply with undo
* Secure API key storage

== Upgrade Notice ==

= 1.1.0 =
Rebranded release with compliance improvements.
