Skip to content

Commit 681993b

Browse files
committed
refactor: enhance CreateEnvironmentDialog with input requirements and description for environment name
1 parent 10e9b74 commit 681993b

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

frontend/components/environments/CreateEnvironmentDialog.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,19 @@ export const CreateEnvironmentDialog = (props: { appId: string }) => {
135135
All Organisation Admins will have accesss to this Environment.
136136
</Alert>
137137

138-
<Input
139-
value={sanitizeInput(name)}
140-
setValue={setName}
141-
label="Environment name"
142-
required
143-
maxLength={32}
144-
data-autofocus
145-
/>
138+
<div className="space-y-2">
139+
<Input
140+
value={sanitizeInput(name)}
141+
setValue={setName}
142+
label="Environment name"
143+
required
144+
maxLength={32}
145+
data-autofocus
146+
/>
147+
<p className="text-xs text-neutral-500">
148+
Use up to 32 characters. Only letters, numbers, hyphens and underscores allowed.
149+
</p>
150+
</div>
146151

147152
<div className="flex justify-end">
148153
<Button type="submit" variant="primary" isLoading={loading}>

0 commit comments

Comments
 (0)