Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: badge radius style (#21612)

ecmadaoe5d649c00853
diff --git a/docs/agents/frontend-ux.md b/docs/agents/frontend-ux.md
index 7977e392c7..0916a3490e 100644
--- a/docs/agents/frontend-ux.md
+++ b/docs/agents/frontend-ux.md
@@ -140,7 +140,8 @@ Use semantic utilities backed by CSS custom properties:
- Use `rounded-xs` for compact controls and textual labels, including status
badges, tags, and selected tokens. Use `rounded-sm` for ordinary framed
- surfaces, and `rounded-full` only for circular controls and avatars.
+ surfaces, and `rounded-full` only for circular controls, avatars, and
+ lifecycle status stamps that must remain distinct from adjacent actions.
- Use `border-control-border` for controls and `border-block-border` for region
boundaries.
- Interactive elements MUST have a visible keyboard focus state. Prefer the
diff --git a/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.test.tsx b/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.test.tsx
new file mode 100644
index 0000000000..6b757203f6
--- /dev/null
+++ b/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.test.tsx
@@ -0,0 +1,31 @@
+import { act } from "react";
+import { createRoot } from "react-dom/client";
+import { afterEach, describe, expect, test } from "vitest";
+import { LifecycleStamp } from "./LifecycleStamp";
+
+(
+ globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }
+).IS_REACT_ACT_ENVIRONMENT = true;
+
+describe("LifecycleStamp", () => {
+ let root: ReturnType<typeof createRoot> | undefined;
+
+ afterEach(() => {
+ act(() => root?.unmount());
+ root = undefined;
+ document.body.innerHTML = "";
+ });
+
+ test("uses a pill shape for non-interactive lifecycle status", () => {
+ const container = document.createElement("div");
+ document.body.appendChild(container);
+ root = createRoot(container);
+
+ act(() => {
+ root?.render(<LifecycleStamp tone="success">Deployed</LifecycleStamp>);
+ });
+
+ const stamp = container.querySelector("span");
+ expect(stamp?.className).toContain("rounded-full");
+ });
+});
diff --git a/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.tsx b/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.tsx
index 668f73c1d9..e1f27a052c 100644
--- a/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.tsx
+++ b/frontend/src/routes/project/plan-detail/components/lifecycle/LifecycleStamp.tsx
@@ -21,7 +21,7 @@ export function LifecycleStamp({
return (
<span
className={cn(
- "inline-flex shrink-0 items-center rounded-xs border text-sm",
+ "inline-flex shrink-0 items-center rounded-full border text-sm",
size === "sm" && "gap-x-1 px-2 py-0.5",
size === "md" && "h-9 gap-x-1.5 px-3",
tone === "success" && "border-success/40 text-success",