From fc3b9df8f035b012ac24c387a175b6b41353797d Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Sat, 2 Aug 2025 15:10:42 +0100 Subject: [PATCH 1/3] Show text wrapping on deployment code blocks --- apps/webapp/app/components/runs/v3/DeploymentError.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/webapp/app/components/runs/v3/DeploymentError.tsx b/apps/webapp/app/components/runs/v3/DeploymentError.tsx index 517f91789b..da686c6a31 100644 --- a/apps/webapp/app/components/runs/v3/DeploymentError.tsx +++ b/apps/webapp/app/components/runs/v3/DeploymentError.tsx @@ -18,6 +18,7 @@ export function DeploymentError({ errorData }: DeploymentErrorProps) { showLineNumbers={false} code={errorData.stack} maxLines={20} + showTextWrapping /> )} {errorData.stderr && ( @@ -28,6 +29,7 @@ export function DeploymentError({ errorData }: DeploymentErrorProps) { showLineNumbers={false} code={errorData.stderr} maxLines={20} + showTextWrapping /> )} From 9285f100f50c3b9673f062d257622503654bfba0 Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Sat, 2 Aug 2025 15:17:28 +0100 Subject: [PATCH 2/3] Show textWrapping on some more CodeBlocks --- apps/webapp/app/components/runs/v3/PacketDisplay.tsx | 1 + .../route.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/webapp/app/components/runs/v3/PacketDisplay.tsx b/apps/webapp/app/components/runs/v3/PacketDisplay.tsx index 5d5878a93d..ee1d98b18d 100644 --- a/apps/webapp/app/components/runs/v3/PacketDisplay.tsx +++ b/apps/webapp/app/components/runs/v3/PacketDisplay.tsx @@ -33,6 +33,7 @@ export function PacketDisplay({ code={data} maxLines={20} showLineNumbers={false} + showTextWrapping /> ); } diff --git a/apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsx b/apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsx index 7158c57b01..d0be26a4b3 100644 --- a/apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsx +++ b/apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsx @@ -753,12 +753,12 @@ function RunBody({ ) : tab === "context" ? (
- +
) : tab === "metadata" ? (
{run.metadata ? ( - + ) : ( No metadata set for this run. View our metadata documentation to learn more. From b339c84b8119febeed023de584fda23f3a5afe00 Mon Sep 17 00:00:00 2001 From: James Ritchie Date: Sat, 2 Aug 2025 15:39:16 +0100 Subject: [PATCH 3/3] Adds missing margins to the error block --- apps/webapp/app/components/runs/v3/DeploymentError.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/webapp/app/components/runs/v3/DeploymentError.tsx b/apps/webapp/app/components/runs/v3/DeploymentError.tsx index da686c6a31..11ee62dfa3 100644 --- a/apps/webapp/app/components/runs/v3/DeploymentError.tsx +++ b/apps/webapp/app/components/runs/v3/DeploymentError.tsx @@ -9,7 +9,7 @@ type DeploymentErrorProps = { export function DeploymentError({ errorData }: DeploymentErrorProps) { return ( -
+
{errorData.message && {errorData.message}} {errorData.stack && (