feat: enhance import handling with detailed conflict resolution and UI updates

This commit is contained in:
Wikid82
2025-11-24 23:48:25 +00:00
parent e4b737710c
commit 897959a621
8 changed files with 327 additions and 42 deletions
+6 -1
View File
@@ -43,7 +43,7 @@ export default function Certificates() {
<div>
<h1 className="text-2xl font-bold text-white mb-2">Certificates</h1>
<p className="text-gray-400">
View and manage SSL certificates.
View and manage SSL certificates. Production Let's Encrypt certificates are auto-managed by Caddy.
</p>
</div>
<Button onClick={() => setIsModalOpen(true)}>
@@ -52,6 +52,11 @@ export default function Certificates() {
</Button>
</div>
<div className="mb-4 bg-blue-900/20 border border-blue-500/30 text-blue-300 px-4 py-3 rounded-lg text-sm">
<strong>Note:</strong> You can delete custom certificates and staging certificates.
Production Let's Encrypt certificates are automatically renewed and should not be deleted unless switching environments.
</div>
<CertificateList />
{isModalOpen && (
+1
View File
@@ -146,6 +146,7 @@ api.example.com {
<ImportReviewTable
hosts={preview.preview.hosts}
conflicts={preview.preview.conflicts}
conflictDetails={preview.conflict_details}
errors={preview.preview.errors}
caddyfileContent={preview.caddyfile_content}
onCommit={handleCommit}