Skip to content

Commit d2114b2

Browse files
committed
Make the copy for the field descriptions more concise
1 parent 294db52 commit d2114b2

File tree

1 file changed

+23
-26
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.test.tasks.$taskParam

1 file changed

+23
-26
lines changed

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

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import { TaskRunStatusCombo } from "~/components/runs/v3/TaskRunStatus";
5959
import { ClockRotateLeftIcon } from "~/assets/icons/ClockRotateLeftIcon";
6060
import { MachinePresetName } from "@trigger.dev/core/v3";
6161
import { TaskTriggerSourceIcon } from "~/components/runs/v3/TaskTriggerSource";
62+
import { Callout } from "~/components/primitives/Callout";
6263

6364
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
6465
const userId = await requireUserId(request);
@@ -415,13 +416,13 @@ function StandardTaskForm({
415416
<div className="h-full overflow-y-scroll scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600">
416417
<Fieldset className="px-3 py-3">
417418
<Hint>
418-
<TextLink to={docsPath("triggering#options")}>Run options</TextLink> enable you to
419-
control the execution behavior of your task.
419+
Options enable you to control the execution behavior of your task.{" "}
420+
<TextLink to={docsPath("triggering#options")}>Read the docs.</TextLink>
420421
</Hint>
421422
<InputGroup>
422423
<Label variant="small">Delay</Label>
423424
<DurationPicker name={delaySeconds.name} id={delaySeconds.id} />
424-
<Hint>The run will be delayed by the specified duration.</Hint>
425+
<Hint>Delays run by a specific duration.</Hint>
425426
<FormError id={delaySeconds.errorId}>{delaySeconds.error}</FormError>
426427
</InputGroup>
427428
<InputGroup>
@@ -432,7 +433,7 @@ function StandardTaskForm({
432433
value={ttlValue}
433434
onChange={setTtlValue}
434435
/>
435-
<Hint>The run will expire if it hasn't started within the TTL (time to live).</Hint>
436+
<Hint>Expires the run if it hasn't started within the TTL.</Hint>
436437
<FormError id={ttlSeconds.errorId}>{ttlSeconds.error}</FormError>
437438
</InputGroup>
438439
<InputGroup>
@@ -486,7 +487,7 @@ function StandardTaskForm({
486487
}
487488
</Select>
488489
)}
489-
<Hint>The run will be assigned to the selected queue.</Hint>
490+
<Hint>Assign run to a specific queue.</Hint>
490491
<FormError id={queue.errorId}>{queue.error}</FormError>
491492
</InputGroup>
492493
<InputGroup>
@@ -500,7 +501,7 @@ function StandardTaskForm({
500501
tags={tagsValue}
501502
onTagsChange={setTagsValue}
502503
/>
503-
<Hint>Tags enable you to easily filter runs.</Hint>
504+
<Hint>Add tags to easily filter runs.</Hint>
504505
<FormError id={tags.errorId}>{tags.error}</FormError>
505506
</InputGroup>
506507
<InputGroup>
@@ -529,7 +530,7 @@ function StandardTaskForm({
529530
}
530531
}}
531532
/>
532-
<Hint>Failed runs will be retried up to the specified number of attempts.</Hint>
533+
<Hint>Retries failed runs up to the specified number of attempts.</Hint>
533534
<FormError id={maxAttempts.errorId}>{maxAttempts.error}</FormError>
534535
</InputGroup>
535536
<InputGroup>
@@ -540,7 +541,7 @@ function StandardTaskForm({
540541
value={maxDurationValue}
541542
onChange={setMaxDurationValue}
542543
/>
543-
<Hint>Override the maximum compute time limit for the run.</Hint>
544+
<Hint>Overrides the maximum compute time limit for the run.</Hint>
544545
<FormError id={maxDurationSeconds.errorId}>{maxDurationSeconds.error}</FormError>
545546
</InputGroup>
546547
<InputGroup>
@@ -576,8 +577,7 @@ function StandardTaskForm({
576577
onChange={(e) => setConcurrencyKeyValue(e.target.value)}
577578
/>
578579
<Hint>
579-
Concurrency keys enable you to limit concurrency by creating a separate queue for
580-
each value of the key.
580+
Limits concurrency by creating a separate queue for each value of the key.
581581
</Hint>
582582
<FormError id={concurrencyKey.errorId}>{concurrencyKey.error}</FormError>
583583
</InputGroup>
@@ -604,7 +604,7 @@ function StandardTaskForm({
604604
</SelectItem>
605605
))}
606606
</Select>
607-
<Hint>Override the machine preset specified in the task.</Hint>
607+
<Hint>Overrides the machine preset.</Hint>
608608
<FormError id={machine.errorId}>{machine.error}</FormError>
609609
</InputGroup>
610610
<InputGroup>
@@ -628,7 +628,7 @@ function StandardTaskForm({
628628
{disableVersionSelection ? (
629629
<Hint>Only the latest version is available in the development environment.</Hint>
630630
) : (
631-
<Hint>Select a specific version of the task.</Hint>
631+
<Hint>Runs task on a specific version.</Hint>
632632
)}
633633
<FormError id={version.errorId}>{version.error}</FormError>
634634
</InputGroup>
@@ -881,8 +881,8 @@ function ScheduledTaskForm({
881881
</InputGroup>
882882
<div className="w-full border-b border-grid-bright" />
883883
<Hint>
884-
<TextLink to={docsPath("triggering#options")}>Run options</TextLink> enable you to
885-
control the execution behavior of your task.
884+
Options enable you to control the execution behavior of your task.{" "}
885+
<TextLink to={docsPath("triggering#options")}>Read the docs.</TextLink>
886886
</Hint>
887887
<InputGroup>
888888
<Label htmlFor={ttlSeconds.id} variant="small">
@@ -894,7 +894,7 @@ function ScheduledTaskForm({
894894
value={ttlValue}
895895
onChange={setTtlValue}
896896
/>
897-
<Hint>The run will expire if it hasn't started within the TTL (time to live).</Hint>
897+
<Hint>Expires the run if it hasn't started within the TTL.</Hint>
898898
<FormError id={ttlSeconds.errorId}>{ttlSeconds.error}</FormError>
899899
</InputGroup>
900900
<InputGroup>
@@ -948,7 +948,7 @@ function ScheduledTaskForm({
948948
}
949949
</Select>
950950
)}
951-
<Hint>The run will be assigned to the selected queue.</Hint>
951+
<Hint>Assign run to a specific queue.</Hint>
952952
<FormError id={queue.errorId}>{queue.error}</FormError>
953953
</InputGroup>
954954
<InputGroup>
@@ -962,7 +962,7 @@ function ScheduledTaskForm({
962962
tags={tagsValue}
963963
onTagsChange={setTagsValue}
964964
/>
965-
<Hint>Tags enable you to easily filter runs.</Hint>
965+
<Hint>Add tags to easily filter runs.</Hint>
966966
<FormError id={tags.errorId}>{tags.error}</FormError>
967967
</InputGroup>
968968
<InputGroup>
@@ -991,7 +991,7 @@ function ScheduledTaskForm({
991991
}
992992
}}
993993
/>
994-
<Hint>Failed runs will be retried up to the specified number of attempts.</Hint>
994+
<Hint>Retries failed runs up to the specified number of attempts.</Hint>
995995
<FormError id={maxAttempts.errorId}>{maxAttempts.error}</FormError>
996996
</InputGroup>
997997
<InputGroup>
@@ -1004,7 +1004,7 @@ function ScheduledTaskForm({
10041004
value={maxDurationValue}
10051005
onChange={setMaxDurationValue}
10061006
/>
1007-
<Hint>Override the maximum compute time limit for the run.</Hint>
1007+
<Hint>Overrides the maximum compute time limit for the run.</Hint>
10081008
<FormError id={maxDurationSeconds.errorId}>{maxDurationSeconds.error}</FormError>
10091009
</InputGroup>
10101010
<InputGroup>
@@ -1038,10 +1038,7 @@ function ScheduledTaskForm({
10381038
value={concurrencyKeyValue ?? ""}
10391039
onChange={(e) => setConcurrencyKeyValue(e.target.value)}
10401040
/>
1041-
<Hint>
1042-
Concurrency keys enable you to limit concurrency by creating a separate queue for each
1043-
value of the key.
1044-
</Hint>
1041+
<Hint>Limits concurrency by creating a separate queue for each value of the key.</Hint>
10451042
<FormError id={concurrencyKey.errorId}>{concurrencyKey.error}</FormError>
10461043
</InputGroup>
10471044
<InputGroup>
@@ -1067,7 +1064,7 @@ function ScheduledTaskForm({
10671064
</SelectItem>
10681065
))}
10691066
</Select>
1070-
<Hint>Override the machine preset specified in the task.</Hint>
1067+
<Hint>Overrides the machine preset.</Hint>
10711068
<FormError id={machine.errorId}>{machine.error}</FormError>
10721069
</InputGroup>
10731070
<InputGroup>
@@ -1091,7 +1088,7 @@ function ScheduledTaskForm({
10911088
{disableVersionSelection ? (
10921089
<Hint>Only the latest version is available in the development environment.</Hint>
10931090
) : (
1094-
<Hint>Select a specific version of the task.</Hint>
1091+
<Hint>Runs task on a specific version.</Hint>
10951092
)}
10961093
<FormError id={version.errorId}>{version.error}</FormError>
10971094
</InputGroup>
@@ -1154,7 +1151,7 @@ function RecentRunsPopover<T extends StandardRun | ScheduledRun>({
11541151
className="flex w-full items-center gap-2 rounded-sm px-2 py-2 outline-none transition-colors focus-custom hover:bg-charcoal-900 "
11551152
>
11561153
<div className="flex flex-col items-start">
1157-
<Paragraph variant="small">
1154+
<Paragraph variant="small/bright">
11581155
<DateTime date={run.createdAt} showTooltip={false} />
11591156
</Paragraph>
11601157
<div className="flex items-center gap-2 text-xs text-text-dimmed">

0 commit comments

Comments
 (0)