Skip to content

The Open Standard for Generative UI

feat(devtools): split reliability banner into Get API key and View docs CTAs (#1207)

devin-ai-integration[bot]1b1f3ba95ace
diff --git a/.changeset/devtools-banner-ctas.md b/.changeset/devtools-banner-ctas.md
new file mode 100644
index 000000000..a52bcf67b
--- /dev/null
+++ b/.changeset/devtools-banner-ctas.md
@@ -0,0 +1,5 @@
+---
+"@openuidev/devtools": patch
+---
+
+Split the reliability banner CTA into a primary "Get API key" button linking to the Thesys Console and a secondary "View docs" button.
diff --git a/packages/devtools/src/ui/DeployHint.tsx b/packages/devtools/src/ui/DeployHint.tsx
index 1a418e4c2..5a6e58619 100644
--- a/packages/devtools/src/ui/DeployHint.tsx
+++ b/packages/devtools/src/ui/DeployHint.tsx
@@ -74,20 +74,18 @@ export function DeployHint({ position, hidden }: { position: DevtoolsPosition; h
<aside aria-label="Deploy your OpenUI app" style={{ ...styles.card, ...placement }}>
<div style={styles.heading}>
<strong>Ready to share your app?</strong>
- <button
+ <IconButton
type="button"
aria-label="Dismiss deployment hint"
+ title="Dismiss deployment hint"
style={styles.dismiss}
onClick={() => setVisible(false)}
>
- ×
- </button>
+ <X size={14} aria-hidden />
+ </IconButton>
</div>
<p style={styles.description}>
- Deploy from your project folder to your Vercel account. Check access before sharing.
- </p>
- <DeployCommand />
- <div style={styles.actions}>
+ Deploy from your project folder to your Vercel account.{" "}
<a
href={withDevtoolsAttribution(DEPLOY_DOCS_URL, "local_deploy_hint")}
target="_blank"
@@ -96,7 +94,8 @@ export function DeployHint({ position, hidden }: { position: DevtoolsPosition; h
>
Deployment docs ↗
</a>
- </div>
+ </p>
+ <DeployCommand />
</aside>
);
}
@@ -119,25 +118,16 @@ function hintStyles(t: ThemeTokens) {
fontFamily: FONT,
fontSize: 13,
},
- heading: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 8 },
- dismiss: {
- border: "none",
- background: "transparent",
- color: t.fgSecondary,
- fontSize: 24,
- minWidth: 44,
- minHeight: 44,
- cursor: "pointer",
- },
- description: { margin: "0 0 12px", lineHeight: 1.5, color: t.fgSecondary },
- actions: { display: "flex", alignItems: "center", flexWrap: "wrap", gap: 12, marginTop: 12 },
- link: {
- display: "inline-flex",
+ heading: {
+ display: "flex",
alignItems: "center",
- minHeight: 44,
- color: t.fg,
- textDecoration: "underline",
+ justifyContent: "space-between",
+ gap: 8,
+ marginBottom: 4,
},
+ dismiss: { flexShrink: 0 },
+ description: { margin: "0 0 12px", lineHeight: 1.5, color: t.fgSecondary },
+ link: { color: t.fg, textDecoration: "underline" },
} satisfies Record<string, CSSProperties>;
}
diff --git a/packages/devtools/src/ui/ReliabilityBanner.tsx b/packages/devtools/src/ui/ReliabilityBanner.tsx
index 2684738eb..1c2643a9a 100644
--- a/packages/devtools/src/ui/ReliabilityBanner.tsx
+++ b/packages/devtools/src/ui/ReliabilityBanner.tsx
@@ -8,8 +8,11 @@ const FEATURES = [
"Track requests & generations for free",
] as const;
+const API_KEY_URL = "https://console.thesys.dev/keys";
+const DOCS_URL = "https://www.openui.com/docs/agent/getting-started/openui-cloud";
+
export default function ReliabilityBanner({ themeMode }: { themeMode: ColorMode }) {
- const [bannerHovered, setBannerHovered] = useState(false);
+ const [hoveredCta, setHoveredCta] = useState<string | null>(null);
const tokens = theme(themeMode);
const styles = bannerStyles(tokens);
@@ -36,22 +39,35 @@ export default function ReliabilityBanner({ themeMode }: { themeMode: ColorMode
))}
</ul>
</div>
- <a
- style={{
- ...styles.bannerAction,
- ...(bannerHovered ? styles.bannerActionHover : null),
- }}
- href={withDevtoolsAttribution(
- "https://www.openui.com/docs/agent/getting-started/openui-cloud",
- "cloud_banner_learn_more",
- )}
- target="_blank"
- rel="noreferrer"
- onMouseEnter={() => setBannerHovered(true)}
- onMouseLeave={() => setBannerHovered(false)}
- >
- Autofix errors
- </a>
+ <div style={styles.actions}>
+ <a
+ style={{
+ ...styles.bannerAction,
+ ...(hoveredCta === "api_key" ? styles.bannerActionHover : null),
+ }}
+ href={withDevtoolsAttribution(API_KEY_URL, "cloud_banner_get_api_key")}
+ target="_blank"
+ rel="noreferrer"
+ onMouseEnter={() => setHoveredCta("api_key")}
+ onMouseLeave={() => setHoveredCta(null)}
+ >
+ Get API key
+ </a>
+ <a
+ style={{
+ ...styles.bannerAction,
+ ...styles.bannerActionSecondary,
+ ...(hoveredCta === "docs" ? styles.bannerActionHover : null),
+ }}
+ href={withDevtoolsAttribution(DOCS_URL, "cloud_banner_view_docs")}
+ target="_blank"
+ rel="noreferrer"
+ onMouseEnter={() => setHoveredCta("docs")}
+ onMouseLeave={() => setHoveredCta(null)}
+ >
+ View docs
+ </a>
+ </div>
</div>
</div>
</div>
@@ -154,12 +170,16 @@ const bannerStyles = (t: ThemeTokens) =>
check: {
color: t.success,
},
+ actions: {
+ display: "flex",
+ alignItems: "center",
+ gap: 8,
+ marginTop: 8,
+ },
bannerAction: {
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
- alignSelf: "flex-start",
- marginTop: 8,
textDecoration: "none",
border: `1px solid ${t.inverted}`,
borderRadius: 8,
@@ -173,4 +193,10 @@ const bannerStyles = (t: ThemeTokens) =>
bannerActionHover: {
transform: "scale(0.96)",
},
+ bannerActionSecondary: {
+ border: `1px solid ${t.controlBorder}`,
+ background: t.controlBg,
+ color: t.fg,
+ boxShadow: t.shadowSubtle,
+ },
}) satisfies Record<string, CSSProperties>;