🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(ui): improve button labels for playground and experiments on prompt view (#4984)
Marc Klingencfa2ac6da981
diff --git a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsxindex bfb417c786..499f758317 100644--- a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx+++ b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx@@ -62,16 +62,15 @@ export const JumpToPlaygroundButton: React.FC<JumpToPlaygroundButtonProps> = (return (<Buttonvariant={props.variant ?? "secondary"}- size={props.source === "prompt" ? "icon" : "default"}title="Test in LLM playground"onClick={handleClick}asChild><Link href={`/project/${projectId}/playground`}><Terminal className="h-4 w-4" />- {props.source === "generation" && (- <span className="ml-2">Test in playground</span>- )}+ <span className="ml-2">+ {props.source === "generation" ? "Test in playground" : "Playground"}+ </span></Link></Button>);diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsxindex f399c59fc2..7729d40ead 100644--- a/web/src/features/prompts/components/prompt-detail.tsx+++ b/web/src/features/prompts/components/prompt-detail.tsx@@ -159,6 +159,12 @@ export const PromptDetail = () => {]}actionButtons={<>+ <JumpToPlaygroundButton+ source="prompt"+ prompt={prompt}+ analyticsEventName="prompt_detail:test_in_playground_button_click"+ variant="outline"+ />{hasAccess ? (<>{hasEntitlement && (@@ -168,11 +174,11 @@ export const PromptDetail = () => {><DialogTrigger asChild disabled={!hasExperimentWriteAccess}><Button- variant="secondary"+ variant="outline"disabled={!hasExperimentWriteAccess}><FlaskConical className="h-4 w-4" />- <span className="ml-2">New experiment</span>+ <span className="ml-2">Experiment</span></Button></DialogTrigger><DialogContent className="max-h-[90vh] overflow-y-auto">@@ -194,7 +200,7 @@ export const PromptDetail = () => {)}<Button- variant="secondary"+ variant="default"onClick={() => {capture("prompts:update_form_open");}}@@ -217,12 +223,6 @@ export const PromptDetail = () => {</div></Button>)}- <JumpToPlaygroundButton- source="prompt"- prompt={prompt}- analyticsEventName="prompt_detail:test_in_playground_button_click"- variant="outline"- /><DetailPageNavkey="nav"currentId={promptName}