feat(ui): calmer Security Firewall, SSH keys and Audit empty states

Short one-line copy with details behind an (i) InfoTip, matching Domains/Cron/SSL.
This commit is contained in:
Juan Denis committed 2026-11-05 18:26:04 -05:00
1 parent b61c70a612
commit 6775c4618e
20 files changed
+30 -22

No files matched your search

@@ -4,6 +4,7 @@ import { ClipboardCheck } from 'lucide-react';
import api from '../../services/api';
import EmptyState from '@/components/EmptyState';
import ErrorState from '@/components/ErrorState';
import InfoTip from '@/components/InfoTip';
import { Button } from '@/components/ui/button';
import { ScoreGauge } from '@/components/ds';
import { useTranslation } from 'react-i18next';
@@ -59,7 +60,13 @@ const AuditTab = () => {
{!audit && !loading && !error && (
<EmptyState
icon={ClipboardCheck}
title={t('app.auditTab.runASecurityAuditToCheck', 'Run a security audit to check your server\'s configuration.')}
title={t('app.auditTab.noAuditYet', 'No audit yet')}
description={(
<>
{t('app.auditTab.checkThisServersSecurityPosture', "Check this server's security posture.")}
<InfoTip>{t('app.auditTab.runASecurityAuditToCheck', "Run a security audit to check your server's configuration and get a score with findings to fix.")}</InfoTip>
</>
)}
/>
)}
@@ -454,7 +454,12 @@ const FirewallTab = () => {
<EmptyState
icon={Shield}
title={t('app.firewallTab.noFirewallInstalled', 'No firewall installed')}
description={t('app.firewallTab.installAFirewallToProtectYour', 'Install a firewall to protect your server from unauthorized access.')}
description={(
<>
{t('app.firewallTab.blockUnwantedTrafficAtTheEdge', 'Block unwanted traffic at the edge.')}
<InfoTip>{t('app.firewallTab.installAFirewallToProtectYour', 'Install a firewall to protect your server from unauthorized access. You can do it whenever you are ready.')}</InfoTip>
</>
)}
action={(
<Button variant="default" onClick={() => setShowInstallModal(true)}>
{t('app.firewallTab.installFirewall', 'Install firewall')}
@@ -5,6 +5,7 @@ import { useToast } from '../../contexts/useToast.js';
import { useConfirm } from '@/hooks/useConfirm';
import EmptyState from '@/components/EmptyState';
import ErrorState from '@/components/ErrorState';
import InfoTip from '@/components/InfoTip';
import Modal from '../Modal';
import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
@@ -250,7 +251,13 @@ const SSHKeysTab = () => {
<SharedCard variant="legacy" className="card">
<EmptyState
icon={KeyRound}
title={t('app.sSHKeysTab.noSshKeysConfiguredForRoot', 'No SSH keys configured for root user.')}
title={t('app.sSHKeysTab.noSshKeys', 'No SSH keys')}
description={(
<>
{t('app.sSHKeysTab.addAKeyForRootLogin', 'Add a key for root login.')}
<InfoTip>{t('app.sSHKeysTab.keysApplyToTheRootUser', 'Keys are for the root user on this server. Password login stays available until you harden SSH.')}</InfoTip>
</>
)}
action={(
<Button variant="default" onClick={() => setShowAddModal(true)}>
{t('app.sSHKeysTab.addSshKey', 'Add SSH key')}
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "فشلت إضافة المفتاح: {{message}}",
"failedToRemoveKey": "فشل في إزالة المفتاح: {{message}}",
"fingerprint": "بصمة",
"noSshKeysConfiguredForRoot": "لم يتم تكوين مفاتيح SSH للمستخدم الجذر.",
"pasteYourSshPublicKeyTypically": "الصق مفتاحك العام SSH (عادةً من ~/.ssh/id_rsa.pub أو ~/.ssh/id_ed25519.pub)",
"publicKey": "المفتاح العام",
"removeSshKey": "قم بإزالة مفتاح SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "কী যোগ করতে ব্যর্থ হয়েছে: {{message}}",
"failedToRemoveKey": "কী সরাতে ব্যর্থ হয়েছে: {{message}}",
"fingerprint": "আঙুলের ছাপ",
"noSshKeysConfiguredForRoot": "রুট ব্যবহারকারীর জন্য কোন SSH কী কনফিগার করা নেই।",
"pasteYourSshPublicKeyTypically": "আপনার SSH পাবলিক কী পেস্ট করুন (সাধারণত ~/.ssh/id_rsa.pub বা ~/.ssh/id_ed25519.pub থেকে)",
"publicKey": "সর্বজনীন কী",
"removeSshKey": "SSH কী সরান",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Schlüssel konnte nicht hinzugefügt werden: {{message}}",
"failedToRemoveKey": "Schlüssel konnte nicht entfernt werden: {{message}}",
"fingerprint": "Fingerabdruck",
"noSshKeysConfiguredForRoot": "Für den Root-Benutzer sind keine SSH-Schlüssel konfiguriert.",
"pasteYourSshPublicKeyTypically": "Fügen Sie Ihren öffentlichen SSH-Schlüssel ein (normalerweise aus ~/.ssh/id_rsa.pub oder ~/.ssh/id_ed25519.pub).",
"publicKey": "Öffentlicher Schlüssel",
"removeSshKey": "SSH-Schlüssel entfernen",
+8 -3
View File
@@ -581,10 +581,12 @@
"title": "Attached services"
},
"auditTab": {
"checkThisServersSecurityPosture": "Check this server's security posture.",
"couldntRunAudit": "Couldn't run the security audit.",
"generated": "Generated",
"noAuditYet": "No audit yet",
"recommendations": "Recommendations",
"runASecurityAuditToCheck": "Run a security audit to check your server's configuration.",
"runASecurityAuditToCheck": "Run a security audit to check your server's configuration and get a score with findings to fix.",
"runAudit": "Run audit",
"runningAudit": "Running audit…",
"runningSecurityAudit": "Running security audit…",
@@ -2840,6 +2842,7 @@
"blockContainerAccessTo169254": "Block container access to 169.254.169.254",
"blockIp": "Block IP",
"blockIpAddress": "Block IP address",
"blockUnwantedTrafficAtTheEdge": "Block unwanted traffic at the edge.",
"blockedIpAddresses": "Blocked IP addresses",
"blockedIps": "Blocked IPs",
"blocking": "Blocking…",
@@ -2864,7 +2867,7 @@
"firewalldCentosRhel": "firewalld (CentOS/RHEL)",
"inactive": "Inactive",
"install": "Install",
"installAFirewallToProtectYour": "Install a firewall to protect your server from unauthorized access.",
"installAFirewallToProtectYour": "Install a firewall to protect your server from unauthorized access. You can do it whenever you are ready.",
"installFirewall": "Install firewall",
"installedSuccessfully": "{{value}} installed",
"installing": "Installing…",
@@ -5133,6 +5136,7 @@
"workspaces": "Workspaces"
},
"sSHKeysTab": {
"addAKeyForRootLogin": "Add a key for root login.",
"addKey": "Add key",
"addSshKey": "Add SSH key",
"addSshPublicKey": "Add SSH public key",
@@ -5143,7 +5147,8 @@
"failedToAddKey": "Couldn't add the key. {{message}}",
"failedToRemoveKey": "Couldn't delete the key. {{message}}",
"fingerprint": "Fingerprint",
"noSshKeysConfiguredForRoot": "No SSH keys configured for root user.",
"keysApplyToTheRootUser": "Keys are for the root user on this server. Password login stays available until you harden SSH.",
"noSshKeys": "No SSH keys",
"pasteYourSshPublicKeyTypically": "Paste your SSH public key (typically from ~/.ssh/id_rsa.pub or ~/.ssh/id_ed25519.pub)",
"publicKey": "Public key",
"removeSshKey": "Delete SSH key",
-1
View File
@@ -5002,7 +5002,6 @@
"failedToAddKey": "No se pudo añadir la clave: {{message}}",
"failedToRemoveKey": "No se pudo quitar la clave: {{message}}",
"fingerprint": "Huella digital",
"noSshKeysConfiguredForRoot": "No hay claves SSH configuradas para el usuario root.",
"pasteYourSshPublicKeyTypically": "Pega tu clave pública SSH (normalmente de ~/.ssh/id_rsa.pub o ~/.ssh/id_ed25519.pub)",
"publicKey": "Clave pública",
"removeSshKey": "Quitar clave SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Échec de l'ajout de la clé : {{message}}",
"failedToRemoveKey": "Échec de la suppression de la clé : {{message}}",
"fingerprint": "Empreinte digitale",
"noSshKeysConfiguredForRoot": "Aucune clé SSH configurée pour l'utilisateur root.",
"pasteYourSshPublicKeyTypically": "Collez votre clé publique SSH (généralement depuis ~/.ssh/id_rsa.pub ou ~/.ssh/id_ed25519.pub)",
"publicKey": "Clé publique",
"removeSshKey": "Supprimer la clé SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Gagal menambahkan kunci: {{message}}",
"failedToRemoveKey": "Gagal menghapus kunci: {{message}}",
"fingerprint": "Sidik jari",
"noSshKeysConfiguredForRoot": "Tidak ada kunci SSH yang dikonfigurasi untuk pengguna root.",
"pasteYourSshPublicKeyTypically": "Tempelkan kunci publik SSH Anda (biasanya dari ~/.ssh/id_rsa.pub atau ~/.ssh/id_ed25519.pub)",
"publicKey": "Kunci Publik",
"removeSshKey": "Hapus Kunci SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Impossibile aggiungere la chiave: {{message}}",
"failedToRemoveKey": "Impossibile rimuovere la chiave: {{message}}",
"fingerprint": "Impronta digitale",
"noSshKeysConfiguredForRoot": "Nessuna chiave SSH configurata per l'utente root.",
"pasteYourSshPublicKeyTypically": "Incolla la tua chiave pubblica SSH (in genere da ~/.ssh/id_rsa.pub o ~/.ssh/id_ed25519.pub)",
"publicKey": "Chiave pubblica",
"removeSshKey": "Rimuovere la chiave SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "키 추가 실패: {{message}}",
"failedToRemoveKey": "키 제거 실패: {{message}}",
"fingerprint": "지문",
"noSshKeysConfiguredForRoot": "루트 사용자에 대해 구성된 SSH 키가 없습니다.",
"pasteYourSshPublicKeyTypically": "SSH 공개 키를 붙여넣습니다(일반적으로 ~/.ssh/id_rsa.pub 또는 ~/.ssh/id_ed25519.pub에서).",
"publicKey": "공개 키",
"removeSshKey": "SSH 키 제거",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Nie udało się dodać klucza: {{message}}",
"failedToRemoveKey": "Nie udało się usunąć klucza: {{message}}",
"fingerprint": "Odcisk palca",
"noSshKeysConfiguredForRoot": "Nie skonfigurowano kluczy SSH dla użytkownika root.",
"pasteYourSshPublicKeyTypically": "Wklej swój klucz publiczny SSH (zwykle z ~/.ssh/id_rsa.pub lub ~/.ssh/id_ed25519.pub)",
"publicKey": "Klucz publiczny",
"removeSshKey": "Usuń klucz SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Falha ao adicionar chave: {{message}}",
"failedToRemoveKey": "Falha ao remover chave: {{message}}",
"fingerprint": "Impressão digital",
"noSshKeysConfiguredForRoot": "Nenhuma chave SSH configurada para o usuário root.",
"pasteYourSshPublicKeyTypically": "Cole sua chave pública SSH (normalmente de ~/.ssh/id_rsa.pub ou ~/.ssh/id_ed25519.pub)",
"publicKey": "Chave Pública",
"removeSshKey": "Remover chave SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Не удалось добавить ключ: {{message}}.",
"failedToRemoveKey": "Не удалось удалить ключ: {{message}}.",
"fingerprint": "Отпечаток пальца",
"noSshKeysConfiguredForRoot": "Для пользователя root не настроены ключи SSH.",
"pasteYourSshPublicKeyTypically": "Вставьте свой открытый ключ SSH (обычно из ~/.ssh/id_rsa.pub или ~/.ssh/id_ed25519.pub).",
"publicKey": "Открытый ключ",
"removeSshKey": "Удалить SSH-ключ",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "ไม่สามารถเพิ่มคีย์: {{message}}",
"failedToRemoveKey": "ไม่สามารถลบคีย์: {{message}}",
"fingerprint": "ลายนิ้วมือ",
"noSshKeysConfiguredForRoot": "ไม่มีคีย์ SSH ที่กำหนดค่าสำหรับผู้ใช้รูท",
"pasteYourSshPublicKeyTypically": "วางคีย์สาธารณะ SSH ของคุณ (โดยทั่วไปจะมาจาก ~/.ssh/id_rsa.pub หรือ ~/.ssh/id_ed25519.pub)",
"publicKey": "กุญแจสาธารณะ",
"removeSshKey": "ลบคีย์ SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Anahtar eklenemedi: {{message}}",
"failedToRemoveKey": "Anahtar kaldırılamadı: {{message}}",
"fingerprint": "Parmak izi",
"noSshKeysConfiguredForRoot": "Kök kullanıcı için yapılandırılmış SSH anahtarı yok.",
"pasteYourSshPublicKeyTypically": "SSH ortak anahtarınızı yapıştırın (genellikle ~/.ssh/id_rsa.pub veya ~/.ssh/id_ed25519.pub adresinden)",
"publicKey": "Genel Anahtar",
"removeSshKey": "SSH Anahtarını Kaldır",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "Không thêm được khóa: {{message}}",
"failedToRemoveKey": "Không xóa được khóa: {{message}}",
"fingerprint": "Dấu vân tay",
"noSshKeysConfiguredForRoot": "Không có khóa SSH nào được định cấu hình cho người dùng root.",
"pasteYourSshPublicKeyTypically": "Dán khóa công khai SSH của bạn (thường là từ ~/.ssh/id_rsa.pub hoặc ~/.ssh/id_ed25519.pub)",
"publicKey": "Khóa công khai",
"removeSshKey": "Xóa khóa SSH",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "添加密钥失败:{{message}}",
"failedToRemoveKey": "无法删除密钥:{{message}}",
"fingerprint": "指纹",
"noSshKeysConfiguredForRoot": "没有为 root 用户配置 SSH 密钥。",
"pasteYourSshPublicKeyTypically": "粘贴您的 SSH 公钥(通常来自 ~/.ssh/id_rsa.pub 或 ~/.ssh/id_ed25519.pub)",
"publicKey": "公钥",
"removeSshKey": "删除 SSH 密钥",
-1
View File
@@ -5001,7 +5001,6 @@
"failedToAddKey": "新增金鑰失敗:{{message}}",
"failedToRemoveKey": "無法刪除金鑰:{{message}}",
"fingerprint": "指紋",
"noSshKeysConfiguredForRoot": "沒有為 root 使用者設定 SSH 金鑰。",
"pasteYourSshPublicKeyTypically": "貼上您的 SSH 公鑰(通常來自 ~/.ssh/id_rsa.pub 或 ~/.ssh/id_ed25519.pub)",
"publicKey": "公鑰",
"removeSshKey": "移除 SSH 金鑰",