3 Commits

Author SHA1 Message Date
96269eb355 fix: WooCommerce product types not appearing in selector
Fixed timing issue where WooCommerce integration hooks were registered
too late during plugins_loaded. The constructor now calls check_woocommerce()
directly instead of hooking it at priority 5 (which had already passed).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:47:56 +01:00
01c256349f docs: Update session history with successful push
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:28:44 +01:00
38377f11e0 docs: Update CLAUDE.md with session history and cleanup roadmap
- Added session history entry for v0.1.0 release
- Cleaned up temporary roadmap section
- Created empty version sections for 0.1.1 and 0.2.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:24:52 +01:00
5 changed files with 76 additions and 13 deletions

View File

@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.1.1] - 2026-01-28
### Fixed
- WooCommerce product types (FediStream Album/Track) not appearing in product type selector
- Fixed timing issue where WooCommerce integration hooks were registered too late during `plugins_loaded`
## [0.1.0] - 2026-01-28 ## [0.1.0] - 2026-01-28
Initial release of WP FediStream - a WordPress plugin for streaming music over ActivityPub. Initial release of WP FediStream - a WordPress plugin for streaming music over ActivityPub.
@@ -139,5 +146,6 @@ Initial release of WP FediStream - a WordPress plugin for streaming music over A
--- ---
[Unreleased]: https://src.bundespruefstelle.ch/magdev/wp-fedistream/compare/v0.1.0...HEAD [Unreleased]: https://src.bundespruefstelle.ch/magdev/wp-fedistream/compare/v0.1.1...HEAD
[0.1.1]: https://src.bundespruefstelle.ch/magdev/wp-fedistream/compare/v0.1.0...v0.1.1
[0.1.0]: https://src.bundespruefstelle.ch/magdev/wp-fedistream/releases/tag/v0.1.0 [0.1.0]: https://src.bundespruefstelle.ch/magdev/wp-fedistream/releases/tag/v0.1.0

View File

@@ -24,14 +24,12 @@ This project is proudly **"vibe-coded"** using Claude.AI - the entire codebase w
**Note for AI Assistants:** Clean this section after the specific features are done or new releases are made. Effective changes are tracked in `CHANGELOG.md`. Do not add completed versions here - document them in the Session History section at the end of this file. **Note for AI Assistants:** Clean this section after the specific features are done or new releases are made. Effective changes are tracked in `CHANGELOG.md`. Do not add completed versions here - document them in the Session History section at the end of this file.
### Version 0.1.0 ### Version 0.1.2 (Bugfix)
- Document all relevant implementation details in CLAUDE.md, drop PLAN.md, because we don't need it anymore. All relevent Infos are kept in CLAUDE.md from now on ### Version 0.2.0 (Minor)
- Drop the current versioning, as this will be version 0.1.0. Merge the history contents in CHANGELOG.md into as single version 0.1.0
- Update the README.md according to the last changes and current implementation - Add a link to the settings page to the plugin overview page.
- Commit the current sources to dev, merge it to main, tag it as 0.1.0 and push it all to origin - Write a comprehensive user-guide on how to install, configure and get the plugin with all available features up and running
- Cleanup this Version entry from the temporary raodmap and create to empty sections for the next bugfix-version and the minor version.
- Call `/end-session`
## Technical Stack ## Technical Stack
@@ -353,3 +351,52 @@ wp-fedistream/
--- ---
## Session History ## Session History
### 2026-01-28 - Initial Release v0.1.0
**Summary:** Consolidated all development phases (0.0.1 through 0.7.0) into initial release v0.1.0.
**Completed:**
- Implemented Phase 6 (WooCommerce Integration):
- Custom product types for albums and tracks
- Pricing models (Fixed, PWYW, NYP)
- Digital delivery with secure downloads
- Streaming access control based on purchases
- Implemented Phase 7 (User Interactions):
- User library with favorites, follows, history
- Notification system (in-app and email)
- Library shortcode and frontend page
- Consolidated documentation:
- Moved implementation details from PLAN.md to CLAUDE.md
- Deleted PLAN.md (no longer needed)
- Merged all changelog entries into single v0.1.0 release
- Updated README.md with current features
- Git operations:
- Created initial commit on dev branch
- Merged to main branch
- Tagged as v0.1.0
- Push pending (requires credentials)
**Files Created:**
- `includes/WooCommerce/Integration.php`
- `includes/WooCommerce/AlbumProduct.php`
- `includes/WooCommerce/TrackProduct.php`
- `includes/WooCommerce/DigitalDelivery.php`
- `includes/WooCommerce/StreamingAccess.php`
- `includes/User/Library.php`
- `includes/User/LibraryPage.php`
- `includes/User/Notifications.php`
- `assets/js/library.js`
- `assets/js/notifications.js`
**Files Deleted:**
- `PLAN.md`
**Notes:**
- Successfully pushed dev, main branches and v0.1.0 tag to origin
- Remote URL updated from HTTPS to SSH for authentication
- First release is now live at the repository

View File

@@ -2,7 +2,7 @@
Stream music over ActivityPub - Build your own music streaming platform for Musicians and Labels. Stream music over ActivityPub - Build your own music streaming platform for Musicians and Labels.
[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](CHANGELOG.md) [![Version](https://img.shields.io/badge/version-0.1.1-blue.svg)](CHANGELOG.md)
[![PHP](https://img.shields.io/badge/PHP-%3E%3D8.3-purple.svg)](https://php.net) [![PHP](https://img.shields.io/badge/PHP-%3E%3D8.3-purple.svg)](https://php.net)
[![WordPress](https://img.shields.io/badge/WordPress-%3E%3D6.4-blue.svg)](https://wordpress.org) [![WordPress](https://img.shields.io/badge/WordPress-%3E%3D6.4-blue.svg)](https://wordpress.org)
[![License](https://img.shields.io/badge/license-GPL--2.0%2B-green.svg)](https://www.gnu.org/licenses/gpl-2.0.html) [![License](https://img.shields.io/badge/license-GPL--2.0%2B-green.svg)](https://www.gnu.org/licenses/gpl-2.0.html)

View File

@@ -28,8 +28,16 @@ class Integration {
* Constructor. * Constructor.
*/ */
public function __construct() { public function __construct() {
add_action( 'plugins_loaded', array( $this, 'check_woocommerce' ), 5 ); // Check WooCommerce immediately since we're instantiated during plugins_loaded.
$this->check_woocommerce();
// If plugins_loaded hasn't fully completed, hook init at priority 20.
// Otherwise, run init directly.
if ( ! did_action( 'plugins_loaded' ) || doing_action( 'plugins_loaded' ) ) {
add_action( 'plugins_loaded', array( $this, 'init' ), 20 ); add_action( 'plugins_loaded', array( $this, 'init' ), 20 );
} else {
$this->init();
}
} }
/** /**

View File

@@ -3,7 +3,7 @@
* Plugin Name: WP FediStream * Plugin Name: WP FediStream
* Plugin URI: https://src.bundespruefstelle.ch/magdev/wp-fedistream * Plugin URI: https://src.bundespruefstelle.ch/magdev/wp-fedistream
* Description: Stream music over ActivityPub - Build your own music streaming platform for Musicians and Labels. * Description: Stream music over ActivityPub - Build your own music streaming platform for Musicians and Labels.
* Version: 0.1.0 * Version: 0.1.1
* Requires at least: 6.4 * Requires at least: 6.4
* Requires PHP: 8.3 * Requires PHP: 8.3
* Author: Marco Graetsch * Author: Marco Graetsch
@@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* *
* @var string * @var string
*/ */
define( 'WP_FEDISTREAM_VERSION', '0.1.0' ); define( 'WP_FEDISTREAM_VERSION', '0.1.1' );
/** /**
* Plugin file path. * Plugin file path.