refactor: Update health check service to use undici's fetch for improved HTTP probing and enhance FormFieldSimple component with optional hint prop
Build, Test, and Push CFDM Docker Image / test (push) Successful in 4m4s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 2m25s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 7s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped

This commit is contained in:
Denozordec
2026-06-26 00:30:51 +07:00
parent a0380b3f66
commit 6038feda66
3 changed files with 16 additions and 12 deletions
+5
View File
@@ -63,6 +63,7 @@ interface FormFieldSimpleProps {
label: string
htmlFor: string
error?: { message?: string }
hint?: string
className?: string
children: ReactNode
}
@@ -71,6 +72,7 @@ export function FormFieldSimple({
label,
htmlFor,
error,
hint,
className,
children,
}: FormFieldSimpleProps) {
@@ -78,6 +80,9 @@ export function FormFieldSimple({
<Field data-invalid={!!error} className={cn(className)}>
<FieldLabel htmlFor={htmlFor}>{label}</FieldLabel>
{children}
{hint && !error && (
<p className="text-xs text-muted-foreground">{hint}</p>
)}
<FieldError errors={[error]} />
</Field>
)
@@ -141,10 +141,11 @@ export function HealthCheckConfigFields({
<FormFieldSimple
label="HTTP path"
htmlFor={`${idPrefix}-path`}
hint="Опционально. По умолчанию проверяется /"
>
<AppInput
id={`${idPrefix}-path`}
placeholder="/health"
placeholder="/"
value={value.path ?? ''}
onChange={(e) =>
patch({ path: e.target.value === '' ? null : e.target.value })