fix: use real settings data boundaries

This commit is contained in:
2026-07-02 19:53:41 -07:00
parent 1cdf89c608
commit 5412bbb143
14 changed files with 414 additions and 170 deletions

View File

@@ -73,7 +73,13 @@ export function OrganizationManagementClient(): React.ReactElement {
>
<form className="grid gap-4" onSubmit={handleSubmit}>
<Input label="机构名称" name="name" placeholder="机构名称" required />
<Input label="机构标识" name="slug" placeholder="可留空" />
<Input
label="机构标识"
name="slug"
pattern="[a-z0-9][a-z0-9-]{1,47}"
placeholder="sunrise-care"
required
/>
{message ? (
<p className="rounded-md bg-secondary px-3 py-2 text-sm text-secondary-foreground" role="status">
{message}
@@ -196,7 +202,13 @@ export function OrganizationRowActions({
>
<form className="grid gap-4" onSubmit={handleSubmit}>
<Input defaultValue={organization.name} label="机构名称" name="name" required />
<Input defaultValue={organization.slug} label="机构标识" name="slug" required />
<Input
defaultValue={organization.slug}
label="机构标识"
name="slug"
pattern="[a-z0-9][a-z0-9-]{1,47}"
required
/>
<Select
defaultValue={organization.status}
label="状态"