Add Offerings domain and studio-admin capabilities #10
Reference in New Issue
Block a user
Delete Branch "feature/offerings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #1 (Offerings) plus the capability slice of #9 (Studio Admin role).
What's included
src/Offering/domain —Offeringvalue object,OfferingRepository(CRUD + filters),OfferingEndpoint(REST),OfferingController+templates/admin/offerings.phpus_offeringstable inSchema.php(kind, title, duration, price/currency, billing_modeone_time/full_term, allow_weekly, capacity, term dates, schedule_note, is_active)Auth/RoleManager— newus_studio_adminrole and capability strings (manage_instructors,manage_offerings,manage_questions,manage_policies,manage_billing,view_all_payments,view_own_payments,export_payments); instructor grantedmanage_offeringsPlugin,RestRegistrar,AdminMenuregister the new components; Offerings admin menu pageREST API
/offerings/offeringsmanage_offerings/offerings/{id}manage_offerings+ owner/studio-admin/offerings/{id}manage_offerings+ owner/studio-adminTests
tests/Unit/Offering/— value object + repository (14 tests)RoleManagerTestcomposer test(44 tests),composer cs, and PHPStan level 6 all passRefs #1 #9
🤖 Generated with Claude Code