Skip to content

Commit 83bfc81

Browse files
committed
format
1 parent 8ba4854 commit 83bfc81

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.apikeys

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

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -719,16 +719,16 @@ function NewApiKeyDialog({
719719
{presets ? (
720720
<RadioGroup value={presetId} onValueChange={setPresetId} className="space-y-4">
721721
<PresetOptions presets={presets} ids={["FULL_ACCESS"]} className="grid" />
722-
<PresetGroup
723-
title="Trigger and operate tasks"
724-
presets={presets}
725-
ids={["TRIGGER_ONLY", "TASK_OPERATOR"]}
726-
/>
727-
<PresetGroup
728-
title="Environment capabilities"
729-
presets={presets}
730-
ids={["ENVIRONMENT_OBSERVER", "ENVIRONMENT_OPERATOR"]}
731-
/>
722+
<PresetGroup
723+
title="Trigger and operate tasks"
724+
presets={presets}
725+
ids={["TRIGGER_ONLY", "TASK_OPERATOR"]}
726+
/>
727+
<PresetGroup
728+
title="Environment capabilities"
729+
presets={presets}
730+
ids={["ENVIRONMENT_OBSERVER", "ENVIRONMENT_OPERATOR"]}
731+
/>
732732
<PresetGroup
733733
title="Deployment and configuration"
734734
presets={presets}
@@ -763,7 +763,12 @@ function NewApiKeyDialog({
763763
? "Pick at least one task, or switch to all tasks."
764764
: "";
765765
return (
766-
<span className={cn("min-w-0 truncate text-xs", error ? "text-error" : "text-text-dimmed")}>
766+
<span
767+
className={cn(
768+
"min-w-0 truncate text-xs",
769+
error ? "text-error" : "text-text-dimmed"
770+
)}
771+
>
767772
{error ?? hint}
768773
</span>
769774
);
@@ -1025,9 +1030,7 @@ function ApiKeyScopePanel({
10251030
const level = detail.admin ? 4 : cap ? cap[0] : 0;
10261031
const rawScopes = cap?.[1];
10271032
const tone: ScopeTone = SCOPE_LEVEL_TONES[level] ?? "none";
1028-
const rows = rawScopes?.flatMap((raw) =>
1029-
expandScopeString(raw, scoped, selectedTasks)
1030-
);
1033+
const rows = rawScopes?.flatMap((raw) => expandScopeString(raw, scoped, selectedTasks));
10311034

10321035
return (
10331036
<li key={key} className="border-t border-grid-dimmed py-2.5 first:border-t-0">
@@ -1038,8 +1041,8 @@ function ApiKeyScopePanel({
10381041
tone === "read"
10391042
? "bg-blue-500"
10401043
: tone === "write"
1041-
? "bg-amber-500"
1042-
: "bg-charcoal-600"
1044+
? "bg-amber-500"
1045+
: "bg-charcoal-600"
10431046
)}
10441047
/>
10451048
<span
@@ -1064,8 +1067,8 @@ function ApiKeyScopePanel({
10641067
row.startsWith("…")
10651068
? "text-text-dimmed"
10661069
: tone === "read"
1067-
? "text-blue-400/80"
1068-
: "text-amber-400/80"
1070+
? "text-blue-400/80"
1071+
: "text-amber-400/80"
10691072
)}
10701073
>
10711074
{row}

0 commit comments

Comments
 (0)