Redesign Squarelet billing pages - #716
Conversation
mitchelljkotler
left a comment
There was a problem hiding this comment.
This looks like it is still under development, let me know if you have any questions
| form_class = UpdateSubscriptionFrequencyForm | ||
| template_name = "subscriptions/update_subscription_frequency.html" | ||
|
|
||
| def get_queryset(self): |
There was a problem hiding this comment.
You shouldn't need to override get_queryset or get_object here - it should do the right thing if you pass in a slug as a kwarg from the URL
There was a problem hiding this comment.
The route 404s when I remove these overrides. The URL also contains the subscription pk, could that be the issue?
| form_class = CancelSubscriptionForm | ||
| template_name = "subscriptions/cancel_subscription.html" | ||
|
|
||
| def get_queryset(self): |
|
@mitchelljkotler Thanks for reviewing. The only piece of this I haven't tackled yet is switching from a monthly plan to annual or vice versa. I'm happy to take a crack at it if you can lay out the general approach for me. |
452a3ad to
2b41be1
Compare
|
I made a few fixes and one change so far:
Flagging that this should be rebased against |
b57613c to
8d673c3
Compare
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
allanlasser
left a comment
There was a problem hiding this comment.
We already have a squarelet/payments/forms.py and squarelet/payments/views.py—let's update those files intead of adding the subscriptions module.
8d673c3 to
bca21fb
Compare
There was a problem hiding this comment.
- Need a consolidated view of all payments in addition to a payment history for a specific org. Let's use the templates/subscriptions/payments.html as a base for two layouts:
- A template "organization_payments.html" that lists just payments for a single org.
- A template "payments_hub.html" that list all payments a user can see, across all orgs they belong to. Just show the 5 most recent payments, with a link to view all payments for the org—this leads to the organziation_payments template.
- Support removing cards
- Activity stream logging when staff take actions for accountability
- Update "Upgrade" button link (currently points to old payment page)
-
Modify current subscription in-place (upgrade/downgrade) for pro-ration benefits. No support for adding second subscription yet—will come in follow-up change.Moving this handling to a new branch and PR -
Changing plan frequency is unimplementedMove change frequency feature to a new branch and PR #755 - #753
Belonging to an organization with multiple subscriptions creates some unintentional chaos on user profile pages. This worked well when there was just 1 subscription. Perhaps we can consolidate this into a single card—the most important information is the benefits a user inherits, and making that clear to them. Update: I'm thinking about tying the benefits list data to entitlements; this way, benefits are an "plain language" description of the entitlement and they can be composed on plans. Update 2: We can handle this separately without blocking this branch. I opened #753 to address. |
1. Use username for user payment routes, not individual_org slug. 2. Protect individual payment routes to just object owners or staff.
The ability to change a subscription's billing frequency is not ready to ship with the billing redesign. Extract this work-in-progress to the 677-billing-frequency branch and remove it here: the org and user UpdateSubscriptionFrequency views, BaseUpdateSubscriptionFrequency, UpdateSubscriptionFrequencyForm, both update-frequency URLs, the update_subscription_frequency template, and the "Change to monthly/annual" link on the manage subscriptions page. The informational Annual/Monthly badge is kept. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8d07584 to
ed59dad
Compare
|
This code is in great shape. I've moved any further changes onto dedicated branches for smaller, interative PRs upon this foundation. I'm merging this into a release-ready branch so we can mark it done, but hold off on merging until all the follow-on work is complete. |

No description provided.