Feat/sprw 3087/simplifying plan changes#954
Merged
LordNayan merged 7 commits intosparrowapp-dev:developmentfrom Mar 16, 2026
Merged
Conversation
LordNayan
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Implemented Admin-controlled Hub subscription management APIs to allow administrators to extend trials, add plans, and change hub plans directly from the backend. These APIs simplify subscription management without requiring manual database updates or complex UI workflows.
What was implemented
1. Trial Extension API
2. Backend Plan Addition API
3. Plan Change API
Additional Improvements
APIs Added
POST /api/admin/hubs/{hubId}/trial/extendPOST /api/admin/hubs/{hubId}/plans/addPUT /api/admin/hubs/{hubId}/plan/changeResult
Admins can now manage hub subscriptions (trial extensions, plan additions, and plan changes) through dedicated APIs with proper validation, auditing, and notifications.
Add Issue Number
SPRW-3087
Add Screenshots/GIFs
Controlled.Hub.APIs.for.simplifying.Plan.Changes.mp4
Add Known Issue
If applicable, add any known issues.
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.