Skip to content

Commit 5832de8

Browse files
committed
A couple of minor fixes
1 parent 4465c0b commit 5832de8

File tree

2 files changed

+3
-3
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam
  • docs/runs

2 files changed

+3
-3
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.test.tasks.$taskParam/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
243243
height="100%"
244244
min-height="100%"
245245
max-height="100%"
246-
autoFocus
246+
autoFocus={!tab || tab === "payload"}
247247
placeholder="{ }"
248248
className={cn("h-full", tab === "metadata" && "hidden")}
249249
/>
@@ -265,7 +265,7 @@ function StandardTaskForm({ task, runs }: { task: TestTask["task"]; runs: Standa
265265
height="100%"
266266
min-height="100%"
267267
max-height="100%"
268-
autoFocus
268+
autoFocus={tab === "metadata"}
269269
placeholder=""
270270
className={cn("h-full", tab !== "metadata" && "hidden")}
271271
/>

docs/runs/metadata.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebarTitle: "Metadata"
44
description: "Attach a small amount of data to a run and update it as the run progresses."
55
---
66

7-
You can attach up to 4KB (4,096 bytes) of metadata to a run, which you can then access from inside the run function, via the API, and in the dashboard. You can use metadata to store additional, structured information on an run. For example, you could store your user’s full name and corresponding unique identifier from your system on every task that is associated with that user.
7+
You can attach up to 4KB (4,096 bytes) of metadata to a run, which you can then access from inside the run function, via the API, and in the dashboard. You can use metadata to store additional, structured information on a run. For example, you could store your user’s full name and corresponding unique identifier from your system on every task that is associated with that user.
88

99
## Usage
1010

0 commit comments

Comments
 (0)