=== All DashAI ===
Contributors: glaucodeveloper
Tags: dashboard, ai, maintenance, logs, system-health
Requires at least: 6.2
Tested up to: 7.0
Stable tag: 2.2.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The AI-powered operations dashboard for WordPress agencies. Monitor health, analyze technical debt, and automate weekly operational audits.

== Description ==
get instant diagnostics. All DashAI helps your team spot risks, identify fatal errors, and prioritize maintenance before they turn into emergency support tickets.

= Features =

* **System Health** — Audit WordPress core, PHP, database, and security signals in one view.
* **Logs Viewer** — Browse, filter, and search logs for faster incident response.
* **Knowledge Center** (optional) — Centralize project assets, environments, and documentation links (admin-enabled).
* **AI Insights** (optional, BYOK) — Plain-language explanations using your own OpenAI API key.
* **Monitoring Reports** — Weekly operational audit emails from System Health and Logs (last 7 days).
* **AI-enhanced reports** — When AI is enabled with a valid API key, reports include an executive summary and prioritized maintenance plan.
* **AI Response Language** — Choose among 10 languages for AI output across System, Logs, and reports.
* **PDF exports** — Technical snapshots from System and Logs where available in the UI.

Support and documentation: https://alldashai.com

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/alldash-ai-dashboard/` (or install via the WordPress Plugins screen).
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Open **All DashAI → Settings** to configure the dashboard.
4. (Optional) Add your OpenAI API key under the **AI** tab to enable AI features.
5. Under **Monitoring Reports**, enable weekly delivery and set a recipient email to receive audits every Monday.

== Frequently Asked Questions ==

= Do I need an OpenAI API key? =

Only if you want AI features. All DashAI works as a health monitor and log viewer without it. To enable AI diagnostics and AI-enhanced weekly reports, add your own OpenAI API key in Settings.

= Is my data private? =

All DashAI uses a BYOK (Bring Your Own Key) model. AI requests use your API key and are sent only when an administrator triggers an AI action or when AI-enhanced summaries are generated. Plugin settings are stored locally in WordPress.

= Can I automate reports? =

Yes. Go to **All DashAI → Settings → Monitoring Reports**, enable weekly delivery (Monday morning, site timezone), and set one recipient email.

= Who can access the plugin data? =

By default, All DashAI pages and settings are available to WordPress administrators.

== External Services ==

This plugin uses the following external service:

**OpenAI API**
* Purpose: Generate AI insights for logs, system diagnostics, and AI-enhanced operational reports when AI is enabled.
* Data sent: Prompt content assembled from site diagnostics or log context requested by an administrator, plus the API key in the Authorization header.
* When sent: Only when an administrator triggers AI actions or when AI-enhanced summaries are generated.
* Privacy Policy: https://openai.com/policies/privacy-policy

== Changelog ==

= 2.2.0 =
* Change: Single fully functional plugin for WordPress.org (no tiered or locked built-in features).
* Change: Removed licensing SDK and usage quotas on AI insights.
* Change: Updated readme and contributor list for directory compliance.
* Internal: Simplified bootstrap, centralized admin assets, and extracted data-privacy settings UI.

= 2.1.3 =
* Fix: Reworked admin JS/CSS loading to use WordPress enqueue APIs only.
* Fix: Improved nonce/capability validation in admin and AJAX handlers.
* Fix: Hardened input sanitization and output escaping across settings and SVG rendering.
* Fix: Updated text domain usage to match the plugin slug for translation compatibility.
* Fix: Replaced fragile path handling and removed flagged constant fallbacks.
* Fix: Improved AI prompt-data parsing to handle invalid/control characters safely.
* Fix: Small UX improvements in Settings layout, field spacing, and action button behavior.

= 2.1 =
* New: Expanded AI language support (PT-BR, ES, and 10+ others).
* Improvement: Refactored reporting timeframe to 'Last 7 days' for better operational clarity.
* Fix: Minor improvements and general bug fixes.

= 2.0 =
* Major architectural improvements and performance enhancements.
* Enhanced log filtering and system health monitoring modules.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 2.2.0 =
Unified free plugin release for WordPress.org: all features enabled locally, no license gate in plugin code.

= 2.1.3 =
Security and compliance patch release for WP.org review fixes, plus stability improvements in AI analysis and admin settings UX.
