=== AI Data Control Dashboard ===
Contributors: studio1live
Tags: ai archive, chat archive, conversation viewer, data privacy, presentation
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Securely import, browse, search, print, and present exported AI conversation archives inside WordPress.

== Description ==

AI Data Control Dashboard provides a private WordPress dashboard for working with exported AI conversation archives.

The plugin can:

* Import a `conversations.json` file or a ZIP containing `conversations.json`.
* Browse and search conversation titles.
* View conversation messages in a readable layout.
* Soft-delete conversations from the viewer without modifying the original imported archive.
* Paste a conversation and save it into the local archive workspace.
* Upload selected presentation assets such as images, video, audio, PDF, HTML, and text files.
* Build a presentation deck from conversations and uploaded assets.
* Export printable HTML reports and presentation-style HTML decks.
* Print conversations or use the browser print dialog to save them as PDF.

= Privacy and security =

AI Data Control Dashboard does not send imported archives to an external service. Archive operations run on the WordPress site where the plugin is installed.

The WordPress.org edition is private by default:

* Dashboard screens require an authenticated user with the `manage_options` capability.
* Data-changing requests use WordPress nonces and capability checks.
* Application PHP screens cannot be executed directly.
* Imported files are stored in a randomized runtime directory rather than inside the plugin directory.
* Best-effort Apache and IIS deny rules are written into the private runtime storage directory.
* Uploaded ZIP archives are not extracted wholesale when importing conversations; only `conversations.json` is read.
* Presentation asset ZIPs are filtered to supported non-executable file types and protected against path traversal.
* Pasted rich HTML is sanitized on the server with WordPress's allowed-post-HTML rules.

For installations that require archive storage outside the public web root, developers may use the `aidc_storage_path` filter to provide a private filesystem path writable by WordPress.

= Independent software =

This plugin is an independent archive-management tool. It is not affiliated with, endorsed by, or sponsored by OpenAI, Anthropic, xAI, DeepSeek, or any other AI platform provider.

== Installation ==

1. Upload the `ai-data-control-dashboard` folder to `/wp-content/plugins/`, or install the ZIP from Plugins > Add New > Upload Plugin.
2. Activate **AI Data Control Dashboard**.
3. Open **AI Data Control** in the WordPress admin menu.
4. Open **Upload** and import `conversations.json` or a supported ZIP export.
5. Use Dashboard, Assets, Deck, and Paste as needed.

The shortcode `[ai_data_control_dashboard]` is also available. For privacy, the embedded dashboard is shown only to authorized administrators by default.

Legacy shortcode `[chatgpt_archives_viewer]` remains available for existing installations.

== Frequently Asked Questions ==

= Does the plugin upload my archive to a third-party service? =

No. The plugin processes and stores the archive on the WordPress installation where it is installed.

= Can visitors see my archive through the shortcode? =

Not by default. The shortcode checks the same administrator capability used by the private dashboard.

= Where is archive data stored? =

Runtime data is stored outside the plugin directory in a randomized directory under the WordPress uploads base directory. Developers can relocate it with the `aidc_storage_path` filter.

= What happens when I upload a new archive? =

The current archive workspace is replaced. Back up any data you need before importing a replacement archive.

= Does the plugin export real PowerPoint files? =

Version 1.1.0 exports printable HTML reports and presentation-style HTML decks. Browsers can print these outputs to PDF. Native `.pptx` export is not part of this WordPress.org release.

== Changelog ==

= 1.1.0 =

* Security hardening release.
* Removed bundled test archives, uploaded assets, logs, backups, and generated user data.
* Removed direct public access to operational PHP endpoints.
* Added WordPress capability and nonce checks for private operations.
* Moved runtime archives out of the plugin directory into randomized protected storage.
* Reworked archive import to read only `conversations.json` from ZIP exports.
* Added server-side sanitization for pasted rich HTML.
* Added allowlisted, path-safe presentation asset uploads.
* Removed placeholder commercial links and service-worker hard-coded paths.
* Added complete WordPress.org readme and GPL licensing information.

= 1.0.0 =

* Initial release.
