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