=== Process & Queue Manager ===
Contributors: marqs, akkmarketingservices
Tags: workflow, task-management, production, gantt, woocommerce
Requires at least: 6.9
Tested up to: 6.9
Stable tag: 1.1.7
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A task queue and production workflow manager with departments, reports, calendar planning, and customer communication.

== Description ==

Process & Queue Manager (PQM) is a workflow and task queue plugin for WordPress.

It is built for teams that need more structure than a simple task list. PQM helps organize work items, move them through defined workflow stages, assign departments, track notes and status history, and keep day-to-day operations visible in one place.

PQM can be used for production, internal operations, service workflows, order-based processes, and other multi-step tasks that require coordination.

Key features include:

* Task queue and workflow management
* Department-based workflow planning
* Status tracking and task history
* Internal notes and customer communication
* Labor time, cost, profit, and margin visibility
* Calendar and Gantt-style planning views
* Client panel access for status visibility and communication
* Reporting for daily operational control
* Optional WooCommerce integration for order-based workflows

PQM works without WooCommerce. When WooCommerce is available, the plugin can use order data to support task creation and workflow handling.

All plugin data remains on the site owner’s server.

Documentation: https://rewolucjaai.pl/?page_id=1006

Separate commercial add-ons and services may be available from the product website. This plugin remains fully usable on its own.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/pqm-production-queue/` directory, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Open the **Production** menu in the WordPress admin area.
4. Configure departments, workflows, statuses, and user access for your process.
5. Optionally connect WooCommerce if you want to use order-based workflows.

== Frequently Asked Questions ==

= Does PQM require WooCommerce? =

No. PQM can be used without WooCommerce.

WooCommerce is optional and can be helpful when your workflow is tied to customer orders.

= Can clients view task progress? =

Yes. PQM includes a client-facing panel for status visibility, notes, and communication related to assigned work.

= What kind of teams is PQM for? =

PQM is designed for teams that manage structured work across multiple stages, departments, or responsible users.

= Does the free version work on its own? =

Yes. The free version is intended to be usable on its own for everyday operational workflows.

== Screenshots ==

1. Task list and workflow overview
2. Calendar and planning view
3. Task details with notes, departments, and cost visibility
4. Client panel for status and communication
5. Compare Free and Pro overview

== Upgrade Notice ==

= 1.1.7 =
Final review-stage package for WordPress.org Review 4. Confirms SQL hardening, keeps the tested Command Center/Help UI refinements, and documents the final review-ready maintenance state.

= 1.1.4 =
Command Center data fix. Improves custom table detection for production statistics, renames the latest signal tile to Newest Production Task, and adds extra Help page title/card spacing.

= 1.1.3 =
UI maintenance update. Improves the PQM Command Center statistics fallback, removes the Free/Pro comparison button from the small dashboard, and refines Help page title/card spacing.

= 1.1.2 =
UI refinement release. Adds a Help & Documentation entry, a lightweight PQM Command Center snapshot on admin pages, and expands the Free vs Pro comparison with planned Optional Pro Modules and companion apps.

= 1.1.1 =
Review-stage SQL hardening update. Reworks task list counts, export queries, selected report queries, and several custom-table reads to use inline prepared queries and safer identifier handling.

= 1.1.0 =
WordPress.org review compliance and stability update. Removes unused code paths, tightens REST permissions, improves SQL safety, and keeps the free package fully functional on its own.

= 1.0.9.0 =
Final WordPress.org review compatibility update with current local libraries, aligned public prefixes, improved sanitization, and packaging cleanup.

== Changelog ==

= 1.1.7 =
* Finalized the review-stage package after testing the Free plugin workflow.
* Confirmed the reported unsafe SQL patterns from Review 3 remain addressed, including task list counts and selected report queries.
* Kept the Command Center focused on local production summary data and Help access only.
* Kept the Free/Pro comparison informational, with Optional Pro Modules described as separate from the Free package.
* Updated package version metadata and readme for the final Review 4 upload.

= 1.1.4 =
* Fixed PQM Command Center table detection so the dashboard can read existing production tasks correctly on more hosting/database configurations.
* Changed the small dashboard signal tile label to Newest Production Task for clearer meaning.
* Changed Command Center cache keys to avoid stale zero-value snapshots during testing and after updates.
* Improved Help page admin card heading spacing and alignment so titles have more breathing room.
* Kept the small Command Center focused on operational data and Help access only.

= 1.1.3 =
* Improved PQM Command Center statistics so it shows robust task data using total tasks, open production, recent completions, and latest task signal.
* Removed the Compare Free / Pro action from the small Command Center dashboard and kept only Help & Documentation access.
* Refined Help page admin card spacing and title alignment so headings do not visually stick to the frame.
* Kept Free/Pro and Optional Pro Modules information on the dedicated comparison page only.

= 1.1.2 =
* Added Help & Documentation access linked to the public PQM Free Help Center.
* Added a lightweight PQM Command Center snapshot to admin screens with production summary information.
* Expanded the Free vs Pro comparison page with Optional Pro Modules information, including Warehouse, CRM, Standalone Orders, Shipping & Fulfillment API, API Integrations, NASA+ Analytics, Machine Scheduling, Advanced Permissions, and Mobile/Desktop Companion App.
* Refined admin UI copy and review-safe product information for the separate PQM Pro ecosystem.
* Kept Pro modules and companion apps out of the Free package; the comparison is informational only.

= 1.1.1 =
* Hardened task list count queries to avoid executing pre-built SQL strings and keep all dynamic values inside `$wpdb->prepare()`.
* Updated CSV/PDF export queries to execute inline prepared SQL instead of passing prepared SQL variables to `$wpdb` methods.
* Improved report SQL preparation patterns, including latest tasks, KPI/time reports, and aging champions.
* Replaced several remaining interpolated custom-table reads with `%i` identifier placeholders where appropriate.
* Improved table-existence checks by using `$wpdb->esc_like()` with `SHOW TABLES LIKE`.
* Aligned task list per-page options with the accepted whitelist.

= 1.1.0 =
* Removed unused placeholder admin views and unused code paths that were not part of the active free plugin workflow.
* Removed legacy client shortcode aliases and kept only procquma-prefixed public shortcodes.
* Removed unused client note attachment JavaScript/CSS paths while preserving visible task file handling.
* Tightened REST API permissions for calendar and Gantt-related endpoints.
* Improved SQL preparation patterns for review compliance, especially reports and task lists.
* Fixed KPI dashboard filtering, chart data switching, and loss task reporting regressions.
* Preserved bundled email notifications for task creation, task completion, and client communication.

= 1.0.9.10 =
* Reduced Plugin Check SQL false positives by inlining simple prepared queries and documenting dynamic placeholder queries.
* Improved readme short description compliance.
* Preserved working bundled email notifications and client panel shortcodes.


= 1.0.9.0 =
* Updated the bundled FullCalendar library to the current local stable package used by the plugin.
* Aligned plugin version constants, readme metadata, and review package version.
* Migrated public plugin prefixes to procquma / PROCQUMA while preserving existing production database tables.
* Improved nonce handling, sanitization, local asset loading, and PDF dependency packaging.
* Removed development logging from production PDF loading code.

= 1.0.8.6 =
* Public prefix migration for WordPress.org compatibility: plugin classes, hooks, AJAX actions, shortcodes, capabilities, options, script handles, and admin page slugs now use the procquma prefix.
* Existing database tables remain unchanged to preserve production data and support a safer Free to Pro migration path.
* Added compatibility migration for legacy options and capabilities from earlier builds.
* Migrated public shortcodes to procquma-prefixed names for WordPress.org compatibility.

= 1.0.8.5 =
* Stability release before the public prefix migration.
* Updated the bundled FullCalendar library to a newer stable version and adjusted the production calendar integration.
* Improved Free version email behavior: bundled notifications are limited to task created and task completed events.
* Improved company profile logo handling in the administration panel.
* Verified PDF generation with the bundled Dompdf library.
* Minor wording improvements in the Free vs Pro comparison screen.
* Small admin UI and review-readiness improvements.

= 1.0.8.4 =
* Additional WordPress.org review hardening.
* Cleaned review-related packaging and kept bundled functionality fully available within the free plugin.
* Cleaned PDF helper libraries and generated-print HTML handling.
* Improved upload filename/type sanitization and request handling.

= 1.0.8.3 =
* Fixed FullCalendar v6 task loading after the local calendar library update.
* Calendar events now use the visible date range requested by FullCalendar.
* Active tasks no longer disappear when planned date is empty; the calendar falls back to real date or creation date.
* Restored status-colored task bars in the production calendar.

= 1.0.8.2 =
* Updated FullCalendar to 6.1.20 for the Free package.
* Added security and request-handling hardening across admin/AJAX flows.
* Moved task view inline JS into enqueued assets for better WordPress.org compliance.

= 1.0.8.1 =
* Improved Compare Free / Pro page spacing and visual polish.
* Added clearer Free and Pro labels in the comparison view.
* Refined readme content for plugin directory compliance.

= 1.0.8 =
* Final review cleanup batch for the free edition.
* Cleaned review-related compatibility and compliance details.
* Additional inline admin styles and scripts moved to enqueued assets.
* Communication flows and workflow drag-and-drop compatibility stabilized.

= 1.0.7.4 =
* Final review batch updates for admin assets and compare page layout.
* Refined Free and Pro comparison content.

= 1.0.7.3 =
* Added a more moderate Compare Free / Pro page for the free edition.

= 1.0.7.2 =
* Review cleanup: admin promo simplification, inline asset cleanup, and readme polish.

= 1.0.7.1 =
* Review cleanup for text domain, local assets, and language files.

= 1.0.6 =
* Stabilized the free version.
* Fixed duplicate email sending during task creation.
* Restored task-view and client-panel communication flows.
* General maintenance and known bug fixes.

