Skip to content

Improve spending limit reached modal #11927

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

Closed
gtsiolis opened this issue Aug 5, 2022 · 2 comments · Fixed by #12096
Closed

Improve spending limit reached modal #11927

gtsiolis opened this issue Aug 5, 2022 · 2 comments · Fixed by #12096
Assignees
Labels
component: dashboard feature: billing team: webapp Issue belongs to the WebApp team type: improvement Improves an existing feature or existing code

Comments

@gtsiolis
Copy link
Contributor

gtsiolis commented Aug 5, 2022

Problem to solve

Following up from #11576, the spending limit reached modal as it comes with some usability issues like multiple primary buttons with the same weight side by side, etc. Cc @AlexTugarev @geropl

Other things to consider include allowing team owners to ad-hoc increase the spending limit, etc.

Re-posting from a relevant discussion in #11404 (comment):

  1. Surface a modal blocking workspace start when spending limit is reached
  2. Possibly allow switching back usage attribution to user's personal account credits.
  3. Link to billing when usage credits have been used.
  4. Potentially, show a non-dismissible alert component in the dashboard for team owners when visiting pages in a team that spending limits have been reached and team members are blocked from using the product.

See also relevant docs[1][2] (internal).

Later on, we could ad-hoc allow resolving the issue for individuals users by allowing them to add a credit card on the fly to enable billing and continue with the workspace start. 💡

Designs

Modal for team members Modal for team owners
Links-1 Links

In parallel with the updates in #11498 (see #11498 (comment)) we could reuse the same elements to provide ad-hoc resolution by changing the billing account within this blocking modal.

Modal with ad-hoc resolution
Disabled

See design specs.

@gtsiolis gtsiolis added component: dashboard needs visual design type: improvement Improves an existing feature or existing code team: webapp Issue belongs to the WebApp team feature: billing labels Aug 5, 2022
@jldec
Copy link
Contributor

jldec commented Aug 10, 2022

Some thoughts about this:

Changing the billing account is probably not the most helpful suggestion in this scenario since users are unlikely to be members of multiple billing accounts.

In the case when the spending limit was hit for a team billing account, offer a link to the team (which works even if they are not the owner)

In general this error should also point users to their own billing settings (at /billing) where they can configure their own billing or select a different billing account if that actually exists,

Usage Limit Reached

! You have reached the spending limit of your billing account.

Contact a team owner of name-of-team to increase the spending limit, or configure your billing settings.

[ Go to Dashboard ]

@jldec jldec moved this to Next Milestone in 🍎 WebApp Team Aug 10, 2022
@gtsiolis
Copy link
Contributor Author

gtsiolis commented Aug 11, 2022

Posting below the designs following the specs described above. Cc @jldec

Usage Limit Reached
UsageLimitReached

See design specs.

@gtsiolis gtsiolis self-assigned this Aug 12, 2022
Repository owner moved this from Next Milestone to Done in 🍎 WebApp Team Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard feature: billing team: webapp Issue belongs to the WebApp team type: improvement Improves an existing feature or existing code
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants