Skip to content

Commit 0e339d9

Browse files
committed
Add beta label and feedback link on the usage page
1 parent 0a43f5a commit 0e339d9

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

components/dashboard/src/components/PillLabel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
export default function PillLabel(props: { children?: React.ReactNode; type?: "info" | "warn"; className?: string }) {
1818
const infoStyle = "bg-blue-50 text-blue-500 dark:bg-blue-500 dark:text-blue-100";
1919
const warnStyle = "bg-orange-100 text-orange-700 dark:bg-orange-600 dark:text-orange-100";
20-
const style = `px-3 py-1 text-sm uppercase rounded-xl ${props.type === "warn" ? warnStyle : infoStyle} ${
20+
const style = `px-2 py-1 text-sm uppercase rounded-xl ${props.type === "warn" ? warnStyle : infoStyle} ${
2121
props.className
2222
}`;
2323
return <span className={style}>{props.children}</span>;

components/dashboard/src/components/UsageView.tsx

+13-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { ReactComponent as UsageIcon } from "../images/usage-default.svg";
2424
import { BillingMode } from "@gitpod/gitpod-protocol/lib/billing-mode";
2525
import { toRemoteURL } from "../projects/render-utils";
2626
import { WorkspaceType } from "@gitpod/gitpod-protocol";
27-
import PillLabel from "../components/PillLabel";
27+
import PillLabel from "./PillLabel";
2828

2929
interface UsageViewProps {
3030
attributionId: AttributionId;
@@ -180,15 +180,21 @@ function UsageView({ attributionId, billingMode }: UsageViewProps) {
180180
</div>
181181
<div className="flex flex-col truncate mt-8 text-sm">
182182
<div className="text-gray-400 dark:text-gray-500">
183-
Usage is currently in{" "}
183+
This feature is in{" "}
184184
<PillLabel
185185
type="warn"
186-
className="font-semibold mt-2 py-0.5 px-1 self-center"
186+
className="font-semibold mt-2 ml-0 py-0.5 px-1 self-center"
187187
>
188-
Beta
189-
</PillLabel>{" "}
190-
</div>
191-
<div>
188+
<span className="text-xs">Early Access</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+
&nbsp;·&nbsp;
192198
<a
193199
href="https://github.com/gitpod-io/gitpod/issues/12636"
194200
className="gp-link"

0 commit comments

Comments
 (0)