-
Notifications
You must be signed in to change notification settings - Fork 357
Subscription client changes #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jahooma
wants to merge
58
commits into
main
Choose a base branch
from
subscription-client
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 28 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
75a228f
Initial backend impl
jahooma 00af124
Review fixes
jahooma 8e31469
Plans to tiered subscription. Don't store plan name/tier in db
jahooma 66463e9
Extract getUserByStripeCustomerId helper
jahooma b807cfa
migrateUnusedCredits: remove filter on free/referral
jahooma 8976298
Add .env.example for stripe price id
jahooma ed2a1d9
Remove subscription_count. Add more stripe status enums
jahooma 31db66e
cleanup
jahooma 458616a
Generate migration
jahooma c39155b
More reviewer improvments
jahooma cba210d
Update migrateUnusedCredits query
jahooma 40a0b2e
Rename Flex to Strong
jahooma 76f71c4
Add subscription tiers. Extract util getStripeId
jahooma 9184aa2
Web routes to cancel, change tier, create subscription, or get subscr…
jahooma 3f81504
Web subscription UI
jahooma 5e9b314
Fix billing test to mock subscription endpoint
jahooma a7c6823
cli subscription changes
jahooma 71c4d1d
Merge branch 'main' into subscription-client
jahooma 9d79443
Fix type error
jahooma 77c296c
Update usage multiplier
jahooma 6770873
Merge branch 'main' into subscription-client
jahooma a5589d8
Handle subscription scheduled webhook events
jahooma e29b8cd
Simplify subscription plan to use on manage subscription button
jahooma 3d5b4d1
Makeover for subscription panel
jahooma 20f680c
Tweak subscription section design
jahooma 66edcaa
Merge branch 'main' into subscription-client
jahooma 13e8fc0
Create a credit block when you send a message
jahooma b9c5a92
fix 401 getting subscription
jahooma 2a0015b
Set auth token at app startup
jahooma 05b0321
Improve 5 hour limit banner
jahooma 6e58594
Don't create a new block if the previous one's 5 hours is not up
jahooma f23f122
Show the scheduled tier in subscription panel
jahooma 919a856
Fix: when cancelling a downgrade, scheduled_tier was not being cleared
jahooma 07ba6f5
fix test
jahooma 12794da
Remove bottom status bar for Strong subscription. Include subscriptio…
jahooma a124b3e
Improve usage banner a lot
jahooma 12e7c01
Update /usage and subscription banner labels/ui
jahooma 7120b0e
Revert thinking code changes
jahooma 0a72e18
Refactor to pull out Subscription types
jahooma c9b56fc
Use generated updated_at for subscription table
jahooma a52d403
Improve stripe "phases" docs
jahooma fba5e79
Let you change setting for pause/spend credits for when subscription …
jahooma 2d9cbea
Refactor so only one ensureSubscriberBlockGrant function is injected
jahooma 631838c
Tweaks for usage banner
jahooma fadcc88
Clean up time formatting utils
jahooma f68ac73
Fetch authenticated billing portal link!
jahooma aedb14c
Update the pricing to advertize codebuff strong
jahooma e67902b
Update Codebuff strong screen
jahooma 6f75461
Remove /strong page. Merge it into /pricing for simplicity
jahooma a6def1f
Tweak usage base pricing copy
jahooma e090f02
Tweak block limits
jahooma 0c34f9b
Subscription success toast
jahooma afa0869
cli: Include link to upgrade plan when you hit limit
jahooma 22551e6
Merge branch 'main' into subscription-client
jahooma 38f349f
Clean up subscription limit banner
jahooma 16bf768
align usage progress bars
jahooma 94ec423
tweak copy in pricing page
jahooma 2053bb5
Update pricing page styles again
jahooma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.