@@ -24,6 +24,7 @@ import { ReactComponent as UsageIcon } from "../images/usage-default.svg";
24
24
import { BillingMode } from "@gitpod/gitpod-protocol/lib/billing-mode" ;
25
25
import { toRemoteURL } from "../projects/render-utils" ;
26
26
import { WorkspaceType } from "@gitpod/gitpod-protocol" ;
27
+ import PillLabel from "./PillLabel" ;
27
28
28
29
interface UsageViewProps {
29
30
attributionId : AttributionId ;
@@ -169,11 +170,38 @@ function UsageView({ attributionId, billingMode }: UsageViewProps) {
169
170
{ getBillingHistory ( ) }
170
171
</ div >
171
172
{ ! isLoading && (
172
- < div className = "flex flex-col truncate" >
173
- < div className = "text-base text-gray-500" > Total usage</ div >
174
- < div className = "flex text-lg text-gray-600 font-semibold" >
175
- < CreditsSvg className = "my-auto mr-1" />
176
- < span > { Intl . NumberFormat ( ) . format ( totalCreditsUsed ) } Credits</ span >
173
+ < div >
174
+ < div className = "flex flex-col truncate" >
175
+ < div className = "text-base text-gray-500" > Total usage</ div >
176
+ < div className = "flex text-lg text-gray-600 font-semibold" >
177
+ < CreditsSvg className = "my-auto mr-1" />
178
+ < span > { totalCreditsUsed } Credits</ span >
179
+ </ div >
180
+ </ div >
181
+ < div className = "flex flex-col truncate mt-8 text-sm" >
182
+ < div className = "text-gray-400 dark:text-gray-500" >
183
+ This feature is in{ " " }
184
+ < PillLabel
185
+ type = "warn"
186
+ className = "font-semibold mt-2 ml-0 py-0.5 px-1 self-center"
187
+ >
188
+ < span className = "text-xs" > Beta</ span >
189
+ </ PillLabel >
190
+ < br />
191
+ < a
192
+ href = "https://www.gitpod.io/docs/references/gitpod-releases"
193
+ className = "gp-link"
194
+ >
195
+ Learn more
196
+ </ a >
197
+ ·
198
+ < a
199
+ href = "https://github.com/gitpod-io/gitpod/issues/12636"
200
+ className = "gp-link"
201
+ >
202
+ Send feedback
203
+ </ a >
204
+ </ div >
177
205
</ div >
178
206
</ div >
179
207
) }
0 commit comments