You've already forked wc-tier-and-package-prices
Document v1.3.0 session learnings in CLAUDE.md
- Updated PHP requirement from 7.4 to 8.3 in compatibility notes - Added Session History section documenting v1.3.0 release session - Documented key learnings about license client integration Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
44
CLAUDE.md
44
CLAUDE.md
@@ -1101,8 +1101,8 @@ if (!empty($tiers)) {
|
|||||||
|
|
||||||
### PHP
|
### PHP
|
||||||
|
|
||||||
- Minimum: 7.4
|
- Minimum: 8.3 (breaking change in v1.3.0)
|
||||||
- Uses modern PHP features (type hints acceptable in new code)
|
- Uses modern PHP features (type hints, named arguments, etc.)
|
||||||
- Composer autoloader handles namespacing
|
- Composer autoloader handles namespacing
|
||||||
|
|
||||||
### Browsers
|
### Browsers
|
||||||
@@ -1138,4 +1138,44 @@ The plugin architecture is solid and well-tested. Most bugs arise from:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Session History
|
||||||
|
|
||||||
|
### v1.3.0 Release Session (2026-01-25)
|
||||||
|
|
||||||
|
**Accomplished:**
|
||||||
|
|
||||||
|
1. Fixed known bugs from CLAUDE.md:
|
||||||
|
- Removed all releases from git tracking (`git rm --cached -r releases/`)
|
||||||
|
- Deleted all MD5 checksum files, keeping only SHA256
|
||||||
|
- Updated `.gitignore` to exclude `/releases/`
|
||||||
|
|
||||||
|
2. Implemented v1.3.0 features:
|
||||||
|
- Bumped PHP requirement from 7.4 to 8.3 (breaking change)
|
||||||
|
- Added PHP version check with admin notice for incompatible servers
|
||||||
|
- Added `magdev/wc-licensed-product-client` library integration
|
||||||
|
- Refactored settings page to use WooCommerce modern sub-tabs pattern (`get_own_sections()`)
|
||||||
|
- Created "General" and "License" sub-tabs
|
||||||
|
- Implemented license management with AJAX validation/activation
|
||||||
|
- Added license status caching via WordPress transients
|
||||||
|
- Added CSS styling for license status display
|
||||||
|
|
||||||
|
3. Updated all translation files:
|
||||||
|
- Added 28 new translation strings for license management
|
||||||
|
- Updated .pot template and all 7 .po files
|
||||||
|
- Compiled all .mo files
|
||||||
|
|
||||||
|
4. Created release package:
|
||||||
|
- Package size: 737KB (increased due to new dependencies)
|
||||||
|
- 642 files included (more due to license client library)
|
||||||
|
- SHA256 checksum generated
|
||||||
|
|
||||||
|
**Key Learnings:**
|
||||||
|
|
||||||
|
- WooCommerce settings sub-tabs use `get_own_sections()` and `get_settings_for_{section}_section()` pattern
|
||||||
|
- License client library `magdev/wc-licensed-product-client` is from private Gitea repo - requires `repositories` config in composer.json
|
||||||
|
- Package version was `^0.1` not `^1.0` - always check available versions before setting constraint
|
||||||
|
- Release package size increased from ~430KB to ~737KB due to new Composer dependencies
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
Always refer to this document when starting work on this project. Good luck!
|
Always refer to this document when starting work on this project. Good luck!
|
||||||
|
|||||||
Reference in New Issue
Block a user