Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): label publishing a trace or session Make Public (#18251)

Nimar064cf41e0ed6
diff --git a/web/src/components/publish-object-switch.tsx b/web/src/components/publish-object-switch.tsx
index f07f4813eb..9b3c4dfb49 100644
--- a/web/src/components/publish-object-switch.tsx
+++ b/web/src/components/publish-object-switch.tsx
@@ -345,7 +345,7 @@ const Base = (props: {
loading={props.isLoading}
onClick={handleOnClick}
>
- Share
+ Make Public
</Button>
</div>
</>
diff --git a/web/src/components/useShareMenuItems.ts b/web/src/components/useShareMenuItems.ts
index 29a1777762..6375a7faa5 100644
--- a/web/src/components/useShareMenuItems.ts
+++ b/web/src/components/useShareMenuItems.ts
@@ -9,8 +9,9 @@ import { showSuccessToast } from "@/src/features/notifications";
import { copyTextToClipboard } from "@/src/utils/clipboard";
/**
- * Share menu items for a trace or session detail header: Share while private,
- * Copy share link + Unshare while public. Sharing copies the link and toasts.
+ * Publish menu items for a trace or session detail header: Make Public while
+ * private, Copy share link + Unshare while public. Publishing copies the link
+ * and toasts.
*/
export function useShareMenuItems({
kind,
@@ -80,7 +81,7 @@ export function useShareMenuItems({
{
type: "item",
id: "share",
- title: "Share",
+ title: "Make Public",
icon: Share2,
disabled,
onClick: () => toggle(true),
diff --git a/web/src/features/sessions/SessionPages.tsx b/web/src/features/sessions/SessionPages.tsx
index 0eba79020b..3c03d40ece 100644
--- a/web/src/features/sessions/SessionPages.tsx
+++ b/web/src/features/sessions/SessionPages.tsx
@@ -783,7 +783,9 @@ export const SessionPage: React.FC<{
projectId={projectId}
sessionId={sessionId}
isPublic={session.data?.public ?? false}
- label="Share"
+ label={
+ (session.data?.public ?? false) ? "Unshare" : "Make Public"
+ }
/>
<CopySessionIdButton sessionId={sessionId} layout="menu" />
<CommentDrawerController
diff --git a/web/src/features/traces/TracePage.tsx b/web/src/features/traces/TracePage.tsx
index 74495e25af..fc3100c162 100644
--- a/web/src/features/traces/TracePage.tsx
+++ b/web/src/features/traces/TracePage.tsx
@@ -150,7 +150,7 @@ export function TracePage({
</>
),
// Mobile compact header: the same trace actions as full-width labeled
- // menu rows (Share / Delete) for the `⋯` overflow, instead of the
+ // menu rows (Make Public / Delete) for the `⋯` overflow, instead of the
// inline icon toolbar. Trace-to-trace nav is desktop-only.
actionButtonsMenu: (
<TraceDetailActions
diff --git a/web/src/features/traces/components/TraceDetailActions.tsx b/web/src/features/traces/components/TraceDetailActions.tsx
index b9ef040949..586d8d957e 100644
--- a/web/src/features/traces/components/TraceDetailActions.tsx
+++ b/web/src/features/traces/components/TraceDetailActions.tsx
@@ -48,7 +48,7 @@ type TraceDetailActionsProps = {
* Trace-level header actions shared by the peek and the standalone trace page.
*
* `layout="toolbar"` (default) renders the icon row: Download JSON plus a kebab
- * holding Share, Copy trace ID, Copy trace name and Delete. `layout="menu"`
+ * holding Make Public, Copy trace ID, Copy trace name and Delete. `layout="menu"`
* renders the same actions as full-width labeled rows for the mobile header
* menu.
*