Skip to content

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

security(annotation): Add `ph-no-capture` directly to the comment PopoverContent (#19200)

marliessophie0e01e9292980
diff --git a/web/src/features/scores/components/AnnotationScoreRow.tsx b/web/src/features/scores/components/AnnotationScoreRow.tsx
index 8377cdda26..91ae2c3e7d 100644
--- a/web/src/features/scores/components/AnnotationScoreRow.tsx
+++ b/web/src/features/scores/components/AnnotationScoreRow.tsx
@@ -280,6 +280,7 @@ export function AnnotationScoreRow({
</Button>
</PopoverTrigger>
<PopoverContent
+ className="ph-no-capture"
onCloseAutoFocus={(event) => {
if (!isActive) event.preventDefault();
}}
diff --git a/web/src/features/scores/components/DualAnnotationContent.clienttest.tsx b/web/src/features/scores/components/DualAnnotationContent.clienttest.tsx
index a3cf4a0cd5..b34b919b53 100644
--- a/web/src/features/scores/components/DualAnnotationContent.clienttest.tsx
+++ b/web/src/features/scores/components/DualAnnotationContent.clienttest.tsx
@@ -634,6 +634,7 @@ describe("unified annotation targets", () => {
).toHaveTextContent("Saved"),
);
fireEvent.click(screen.getByTitle("Add or view score comment"));
+ expect(screen.getByRole("dialog")).toHaveClass("ph-no-capture");
fireEvent.change(screen.getByRole("textbox"), {
target: { value: "Unsent score comment" },
});