=== Uplift AI Integration ===
Contributors: uplifai
Tags: seo, publishing, automation, blog, ai
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 1.0.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WordPress site to Uplift AI for automated blog publishing.

== Description ==

Uplift AI Integration allows you to automatically publish blog posts from your Uplift AI account directly to your WordPress site.

**Features:**
* Integration key-based secure authentication
* View and manage blog posts from Uplift AI dashboard
* Preview blog content before publishing
* Manual publish button for individual posts
* Automatic blog post publishing
* Featured image upload support
* Category and tag management
* Real-time webhook notifications
* Connection status monitoring
* SEO score display for each blog post

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/uplift-ai-integration`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Uplift AI in the WordPress admin menu
4. Configure your backend API URL (for local testing: http://localhost:3000/api/v1)
5. Click "Connect to Uplift AI" and enter your integration key

== Frequently Asked Questions ==

= How do I connect my Uplift AI account? =

Go to Uplift AI in your WordPress admin menu, configure your backend API URL, and enter your integration key. The plugin will validate and connect automatically.

= Can I disconnect my account? =

Yes, you can disconnect at any time from the Uplift AI settings page.

= How does publishing work? =

Once connected, blog posts created in your Uplift AI account will automatically be published to your WordPress site when you enable auto-publish.

= Can I change the backend URL? =

Yes, you can configure the backend API URL in the Settings section. This is useful for testing with localhost or switching between staging and production environments.

= What happens if the connection fails? =

If the connection fails, check your integration key and backend API URL. You may need to regenerate your integration key in the Uplift AI dashboard.

== Changelog ==

= 1.0.8 =
* Removed Backend API URL configuration (now uses production URL)
* Simplified plugin setup

= 1.0.7 =
* Removed Scheduled status filter option

= 1.0.6 =
* CSS improvements and fixes

= 1.0.5 =
* Full-width layout for Blog Posts page
* Improved table display and responsiveness

= 1.0.4 =
* Added Blog Posts page to view all blogs from Uplift AI
* Preview blog content in a modal before publishing
* Manual publish button to push individual blogs to WordPress
* Status filter to view Published, Draft, or Scheduled posts
* SEO score display with visual progress bar
* Pagination support for large blog lists
* AJAX-based loading for better performance

= 1.0.3 =
* Removed OAuth authentication method - now uses integration key only
* Improved integration key validation and error handling
* Enhanced logging for debugging connection issues
* Better error messages for invalid integration keys
* Fixed connection status display in admin UI

= 1.0.2 =
* Renamed to Uplift AI Integration
* Added backend API URL configuration in settings
* Improved 401 error handling with clear messages for invalid integration keys
* Enhanced category and tag support for blog publishing
* Better error messages for connection issues

= 1.0.1 =
* Fixed duplicate post detection to prevent false matches
* Improved meta field validation for existing posts
* Removed unreliable REST API duplicate check from backend
* Enhanced logging for better debugging

= 1.0.0 =
* Initial release
* Integration key authentication
* Blog post publishing
* Featured image support
* Webhook notifications

== Upgrade Notice ==

= 1.0.5 =
Full-width Blog Posts page for better readability.

= 1.0.4 =
New Blog Posts page added! View all your Uplift AI blogs directly in WordPress admin. Preview content and manually publish individual posts. Update recommended.

= 1.0.3 =
Removed OAuth authentication - now uses integration key only. After updating, re-enter your integration key in the plugin settings. Update recommended.

= 1.0.2 =
Added backend URL configuration and improved error handling. Update recommended for better testing capabilities.

= 1.0.1 =
Fixed issue where new blog posts were incorrectly detected as duplicates. Update recommended.

= 1.0.0 =
Initial release of Uplift AI Integration plugin.

