Implement version 0.0.11 features

- Add Created date column to admin license overview
- Add License Statistics page under WooCommerce menu
- Add REST API endpoints for analytics data with time-series support
- WooCommerce Analytics integration via submenu page

New files:
- src/Admin/AnalyticsController.php
- templates/admin/statistics.html.twig

REST API endpoints:
- GET /wc-licensed-product/v1/analytics/stats
- GET /wc-licensed-product/v1/analytics/products

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 23:50:57 +01:00
parent ff9b27e811
commit 45531f86d6
11 changed files with 864 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
# This file is distributed under the GPL-2.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: WC Licensed Product 0.0.10\n"
"Project-Id-Version: WC Licensed Product 0.0.11\n"
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/magdev/wc-licensed-product/issues\n"
"POT-Creation-Date: 2026-01-21T00:00:00+00:00\n"
"MIME-Version: 1.0\n"
@@ -939,3 +939,34 @@ msgstr ""
msgid "Failed to update license domain."
msgstr ""
#. Admin - License Overview (Created column)
msgid "Created"
msgstr ""
#. Admin - License Statistics
msgid "License Statistics"
msgstr ""
msgid "%d license is expiring within the next 30 days."
msgid_plural "%d licenses are expiring within the next 30 days."
msgstr[0] ""
msgstr[1] ""
msgid "REST API Endpoints"
msgstr ""
msgid "The following REST API endpoints are available for retrieving license statistics:"
msgstr ""
msgid "Endpoint"
msgstr ""
msgid "Description"
msgstr ""
msgid "Get license statistics with time-series data"
msgstr ""
msgid "Get license counts by product"
msgstr ""