diff --git a/components/dashboard/src/components/UsageBasedBillingConfig.tsx b/components/dashboard/src/components/UsageBasedBillingConfig.tsx index 866bea675dfe1f..2bec4ed0cd3c69 100644 --- a/components/dashboard/src/components/UsageBasedBillingConfig.tsx +++ b/components/dashboard/src/components/UsageBasedBillingConfig.tsx @@ -232,7 +232,9 @@ export default function UsageBasedBillingConfig({ attributionId }: Props) {
Balance
- {balance} + + {balance.toLocaleString(undefined, { maximumFractionDigits: 2 })} + Credits
diff --git a/components/dashboard/src/components/WorkspaceClass.tsx b/components/dashboard/src/components/WorkspaceClass.tsx index 1d81675f041839..860c74a828c188 100644 --- a/components/dashboard/src/components/WorkspaceClass.tsx +++ b/components/dashboard/src/components/WorkspaceClass.tsx @@ -51,12 +51,23 @@ function WorkspaceClass(props: WorkspaceClassProps) { > {props.description}
-
- +
+ {Array.from(Array(props.powerUps).keys()).map((i) => { return ; })} +
+ {(props?.powerUps || 1) * 10} credits/hour +
diff --git a/components/dashboard/src/settings/selectClass.tsx b/components/dashboard/src/settings/selectClass.tsx index 43a24facdf6eeb..3ae2e55fc09f53 100644 --- a/components/dashboard/src/settings/selectClass.tsx +++ b/components/dashboard/src/settings/selectClass.tsx @@ -48,7 +48,7 @@ export default function SelectWorkspaceClass(props: SelectWorkspaceClassProps) { {supportedClasses.map((c) => { return ( actuallySetWorkspaceClass(c.id)} category={c.category} diff --git a/components/server/ee/src/workspace/gitpod-server-impl.ts b/components/server/ee/src/workspace/gitpod-server-impl.ts index db6c572af31bb1..ef2248764a4234 100644 --- a/components/server/ee/src/workspace/gitpod-server-impl.ts +++ b/components/server/ee/src/workspace/gitpod-server-impl.ts @@ -2155,7 +2155,7 @@ export class GitpodServerEEImpl extends GitpodServerImpl { try { customer = (await this.billingService.getStripeCustomer({ attributionId })).customer; } catch (e) { - console.error(e); + 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, diff --git a/components/usage/pkg/stripe/stripe.go b/components/usage/pkg/stripe/stripe.go index aa89a34782672d..a2860060f7e035 100644 --- a/components/usage/pkg/stripe/stripe.go +++ b/components/usage/pkg/stripe/stripe.go @@ -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) + 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)