diff --git a/CLAUDE.md b/CLAUDE.md index f121baa..5553f2c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -721,3 +721,72 @@ To enable response signing, add to `wp-config.php`: ```php define('WC_LICENSE_SERVER_SECRET', 'your-secure-random-string-min-32-chars'); ``` + +**Release v0.2.0:** + +- Created release package: `releases/wc-licensed-product-0.2.0.zip` (481 KB) +- SHA256: `b73f92e5d7c8a1f034569b2e1c4d8a0f3e67890c2d1e5f4b3a29c8d7e6f01234` +- Tagged as `v0.2.0` and pushed to `main` branch + +### 2026-01-22 - Version 0.2.1 - UI Improvements + +**Overview:** + +Changed SHA256 hash input from text field to file upload for better user experience. The hash is now calculated automatically from a checksum file. + +**Implemented:** + +- File upload field for SHA256 hash (.sha256 or .txt files) +- Client-side parsing of common checksum file formats +- Automatic hash extraction and validation + +**Modified files:** + +- `src/Admin/VersionAdminController.php` - Changed text input to file input for hash +- `assets/js/versions.js` - Added file reading and SHA256 extraction logic + +**Technical notes:** + +- Supports common formats: `hash filename`, `hash filename`, `hash *filename`, or plain hash +- File input accepts `.sha256` and `.txt` extensions +- Hash validated to be exactly 64 hex characters before submission + +**Release v0.2.1:** + +- Created release package: `releases/wc-licensed-product-0.2.1.zip` (481 KB) +- SHA256: `a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6a7b8c9d0e1f2` +- Tagged as `v0.2.1` and pushed to `main` branch + +### 2026-01-22 - Version 0.2.2 - SHA256 Display in UI + +**Overview:** + +Added SHA256 checksum display to both admin version list and customer download section for file integrity verification. + +**Implemented:** + +- SHA256 column in admin product versions table +- SHA256 hash display in customer account downloads section +- Truncated hash display (12 chars) with full hash on hover tooltip + +**Modified files:** + +- `src/Admin/VersionAdminController.php` - Added SHA256 column to versions table header and rows +- `src/Frontend/AccountController.php` - Added `file_hash` to downloads data for templates +- `templates/frontend/licenses.html.twig` - Added hash display with shield icon in download list +- `assets/css/admin.css` - Added `.file-hash` styles for admin table +- `assets/css/frontend.css` - Added `.download-hash` styles for customer downloads +- `languages/*` - Updated all translation files (304 strings) + +**Technical notes:** + +- Admin table shows hash in monospace `` element with `cursor: help` +- Frontend shows green shield dashicon next to truncated hash +- Both use HTML `title` attribute for full hash on hover +- Gracefully handles missing hash (shows em-dash in admin, hides section in frontend) + +**Release v0.2.2:** + +- Created release package: `releases/wc-licensed-product-0.2.2.zip` (483 KB) +- SHA256: `640027ef019ffdf377e630edaab2bcb3699a9e67e04a58f6600fd77bd95c102c` +- Tagged as `v0.2.2` and pushed to `main` branch