-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] display credit usage #15295
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ export default function SelectWorkspaceClass(props: SelectWorkspaceClassProps) { | |
{supportedClasses.map((c) => { | ||
return ( | ||
<WorkspaceClass | ||
additionalStyles="w-80 h-32" | ||
additionalStyles="w-80" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, removing the fixed height causes the bottom padding to look enormous 😞 but I didn't have a good suggestion for how to get it right without significant changes. So, maybe let's iterate on the design of the workspace class selector in follow-ups. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. by enormous you mean more than what is shown in screenshot in the initial comment? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, ok that is intentional. cc @gtsiolis There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Padding changes look (acceptable). ✔️ I'd separate the consumption rate (10 credits/hour) from the resources (dot) indicator (● ●) information to scale better, but can be done along with more spacing improvements later when we introduce more than two workspace classes. Thanks for the ping, @svenefftinge! 🏓 |
||
selected={workspaceClass === c.id} | ||
onClick={() => actuallySetWorkspaceClass(c.id)} | ||
category={c.category} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2155,7 +2155,7 @@ export class GitpodServerEEImpl extends GitpodServerImpl { | |
try { | ||
customer = (await this.billingService.getStripeCustomer({ attributionId })).customer; | ||
} catch (e) { | ||
console.error(e); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated drive-by change |
||
log.error(e); | ||
} | ||
if (customer) { | ||
// NOTE: this is a temporary workaround, as long as we're not automatically re-create the customer | ||
|
@@ -2171,7 +2171,7 @@ export class GitpodServerEEImpl extends GitpodServerImpl { | |
return; | ||
} | ||
|
||
// otherwise we need to create a new costomer. | ||
// otherwise we need to create a new customer. | ||
try { | ||
await this.billingService.createStripeCustomer({ | ||
attributionId, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,7 +215,7 @@ func (c *Client) GetCustomerByAttributionID(ctx context.Context, attributionID s | |
} | ||
|
||
if len(customers) == 0 { | ||
return nil, status.Errorf(codes.NotFound, "no team customer found for attribution_id: %s", attributionID) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated drive-by change |
||
return nil, status.Errorf(codes.NotFound, "no customer found for attribution_id: %s", attributionID) | ||
} | ||
if len(customers) > 1 { | ||
return nil, status.Errorf(codes.FailedPrecondition, "found multiple customers for attributiuon_id: %s", attributionID) | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by, fixes #15285
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Today I learned about
Number.toLocaleString()
. 💡