Account page improvements #506
Open
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.
Always display both subscription plan and credits information.
Currently, when subscriptions ends we don't display credits even though users use them.
This is because we rely on
subscriptionStatus && subscriptionPlan && datePaid
being null/undefined to show credits.This fixes #503
Always display customer portal link button ("manage payment details") if possible. User's may use it to view past invoices, so it is important even when we don't have a subscription. Previously we only displayed it when we had subscription data.
Rename the "buy more/upgrade" button to "buy more credits" and move it to credits row.
Display it only if no active subscription.
If we want to manage/upgrade subscription we can always use the "manage payment details" button.
Only thing we need to navigate to pricing page for is to buy more credits.