From c4b1df8a229f4d612914e1342706e74921fef159 Mon Sep 17 00:00:00 2001 From: magdev Date: Wed, 21 Jan 2026 22:08:20 +0100 Subject: [PATCH] Update CLAUDE.md: clear known bugs, document version upload fix - Set known bugs to "None currently known" - Added documentation for version upload fix (attachment_id handling) - Session history updated with all bug fixes from pre-v0.0.10 Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a9926f2..75e55f9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -34,13 +34,12 @@ This project is proudly **"vibe-coded"** using Claude.AI - the entire codebase w ### Known Bugs -- Version uploads not appearing in list (under investigation - may require plugin reactivation to ensure database tables exist) +None currently known. ### Version 0.0.10 - Add a license related form section to the orders form in the admin area - Make license domains editable in the backend -- Investigate checkout block integration improvements if issues persist ## Technical Stack @@ -513,3 +512,18 @@ Full API documentation available in `openapi.json` (OpenAPI 3.1 specification). - License generation now triggers on `completed`, `processing`, and `payment_complete` hooks - Fixed `LicenseManager::generateLicense()` to properly check product type with `is_type()` - Classic checkout (`woocommerce_after_order_notes`) still works for stores using classic checkout + +**Additional bug fix:** + +- Fixed: Version uploads not appearing in list after creation + +**Modified files:** + +- `src/Product/VersionManager.php` - Fixed null `attachment_id` handling in `createVersion()` +- `src/Admin/VersionAdminController.php` - Added product validation and error logging + +**Technical notes:** + +- `$wpdb->insert()` now only includes `attachment_id` field when it has a valid value +- Added error logging for version creation failures to aid debugging +- Improved meta box visibility logic for new products