From d265087661cf825549383bccd219dac9c930a345 Mon Sep 17 00:00:00 2001 From: Shankar Date: Mon, 30 Mar 2026 07:53:14 -0400 Subject: [PATCH] fix(gui): add missing Name field to certificate creation form The New Certificate modal was missing the required "name" field, causing all certificate creation attempts to fail with "name is required". Added Name text input above ID field with client-side validation matching the backend requirement. Fixes #GH-issue (name is required on certificate creation) Co-Authored-By: Claude Opus 4.6 --- web/src/pages/CertificatesPage.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/pages/CertificatesPage.tsx b/web/src/pages/CertificatesPage.tsx index 6106faf..7a19f21 100644 --- a/web/src/pages/CertificatesPage.tsx +++ b/web/src/pages/CertificatesPage.tsx @@ -13,6 +13,7 @@ import type { Certificate } from '../api/types'; function CreateCertificateModal({ onClose, onSuccess }: { onClose: () => void; onSuccess: () => void }) { const [form, setForm] = useState({ + name: '', id: '', common_name: '', environment: 'production', @@ -35,6 +36,12 @@ function CreateCertificateModal({ onClose, onSuccess }: { onClose: () => void; o

New Certificate

{error &&
{error}
}
+
+ + setForm(f => ({ ...f, name: e.target.value }))} + className="w-full bg-white border border-surface-border rounded px-3 py-2 text-sm text-ink focus:outline-none focus:border-brand-400 focus:ring-1 focus:ring-brand-400/20" + placeholder="API Production Cert" /> +
setForm(f => ({ ...f, id: e.target.value }))} @@ -89,7 +96,7 @@ function CreateCertificateModal({ onClose, onSuccess }: { onClose: () => void; o