mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-12 23:02:41 +00:00
fix(web): remove slug field from automation edit page
The slug cannot be changed after creation, so showing it as a read-only row on the edit page added noise without value. Keep the editable slug input on the create page. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d3ed50f736
commit
0e224aa705
1 changed files with 8 additions and 14 deletions
|
|
@ -153,22 +153,16 @@ export function AutomationFormFields({
|
|||
className={INPUT_CLASS}
|
||||
/>
|
||||
</Row>
|
||||
<Row
|
||||
title={<Label required>Slug</Label>}
|
||||
help={
|
||||
lockIdAndTarget ? (
|
||||
"The slug cannot be changed after creation."
|
||||
) : (
|
||||
{lockIdAndTarget ? null : (
|
||||
<Row
|
||||
title={<Label required>Slug</Label>}
|
||||
help={
|
||||
<>
|
||||
Identifier used in the URL:{" "}
|
||||
<span className="font-mono text-fg-2">/automations/{values.id || "<slug>"}</span>
|
||||
</>
|
||||
)
|
||||
}
|
||||
>
|
||||
{lockIdAndTarget ? (
|
||||
<div className="font-mono text-sm text-fg">{values.id}</div>
|
||||
) : (
|
||||
}
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
name="slug"
|
||||
|
|
@ -180,8 +174,8 @@ export function AutomationFormFields({
|
|||
spellCheck={false}
|
||||
className={`${INPUT_CLASS} font-mono`}
|
||||
/>
|
||||
)}
|
||||
</Row>
|
||||
</Row>
|
||||
)}
|
||||
<Row title={<Label optional>Description</Label>} help="A short summary teammates will see when browsing automations.">
|
||||
<textarea
|
||||
name="description"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue