From 250cab55376d48fe2b9482244bf6b704287c0609 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Thu, 5 Nov 2026 10:22:18 -0500 Subject: [PATCH] feat(ui): calmer Domains, Cron and SSL empty states Short one-line descriptions with the longer explanation behind an InfoTip, matching the Databases pattern. SSL now uses the same empty-state size as the other pages (new optional emptySize prop on ResourceListPage, default lg). --- .../src/components/layouts/ResourceListPage.jsx | 3 ++- frontend/src/i18n/locales/ar.json | 1 - frontend/src/i18n/locales/bn.json | 1 - frontend/src/i18n/locales/de.json | 1 - frontend/src/i18n/locales/en.json | 8 +++++++- frontend/src/i18n/locales/es.json | 1 - frontend/src/i18n/locales/fr.json | 1 - frontend/src/i18n/locales/id.json | 1 - frontend/src/i18n/locales/it.json | 1 - frontend/src/i18n/locales/ko.json | 1 - frontend/src/i18n/locales/pl.json | 1 - frontend/src/i18n/locales/pt.json | 1 - frontend/src/i18n/locales/ru.json | 1 - frontend/src/i18n/locales/th.json | 1 - frontend/src/i18n/locales/tr.json | 1 - frontend/src/i18n/locales/vi.json | 1 - frontend/src/i18n/locales/zh-Hans.json | 1 - frontend/src/i18n/locales/zh-Hant.json | 1 - frontend/src/pages/CronJobs.jsx | 8 +++++++- frontend/src/pages/Domains.jsx | 8 +++++++- frontend/src/pages/SSLCertificates.jsx | 14 ++++++++++++-- 21 files changed, 35 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/layouts/ResourceListPage.jsx b/frontend/src/components/layouts/ResourceListPage.jsx index 0460b0de..11cc05cc 100644 --- a/frontend/src/components/layouts/ResourceListPage.jsx +++ b/frontend/src/components/layouts/ResourceListPage.jsx @@ -100,6 +100,7 @@ export default function ResourceListPage({ emptyTitle = 'No results', emptyDescription = '', emptyAction = null, + emptySize = 'lg', // filtered empty (items exist but none match the filter/search) filteredEmptyIcon, filteredEmptyTitle = 'No results found', @@ -352,7 +353,7 @@ export default function ResourceListPage({ /> ) : resolvedTotal === 0 ? ( { + {t('app.cronJobs.scheduleARecurringTask', 'Schedule a recurring task.')} + {t('app.cronJobs.cronJobsRunCommandsOnA', 'Cron jobs run commands on a schedule, such as backups, cleanups or reports. Create the first one with New cron job.')} + + )} action={} /> ) : ( diff --git a/frontend/src/pages/Domains.jsx b/frontend/src/pages/Domains.jsx index 52d53989..b57aeed4 100644 --- a/frontend/src/pages/Domains.jsx +++ b/frontend/src/pages/Domains.jsx @@ -8,6 +8,7 @@ import api from '../services/api'; import { useToast } from '../contexts/useToast.js'; import { useAuth } from '../contexts/useAuth.js'; import EmptyState from '../components/EmptyState'; +import InfoTip from '@/components/InfoTip'; import ErrorState from '../components/ErrorState'; import Modal from '@/components/Modal'; import DomainField from '@/components/DomainField'; @@ -665,7 +666,12 @@ const Domains = () => { + {t('app.domains.attachADomainOrConnectDns', 'Attach a domain or connect DNS.')} + {t('app.domains.attachADomainToAnApplication', 'Attach a domain to a service, or connect a DNS provider to see its zones here.')} + + )} action={} /> ) : ( diff --git a/frontend/src/pages/SSLCertificates.jsx b/frontend/src/pages/SSLCertificates.jsx index 3c8fe874..54094190 100644 --- a/frontend/src/pages/SSLCertificates.jsx +++ b/frontend/src/pages/SSLCertificates.jsx @@ -5,6 +5,7 @@ import { } from 'lucide-react'; import api from '../services/api'; import Modal from '@/components/Modal'; +import InfoTip from '@/components/InfoTip'; import { Pill, SearchField } from '@/components/ds'; import ResourceListPage from '../components/layouts/ResourceListPage'; import { useTopbarActions } from '@/hooks/useTopbarActions'; @@ -523,8 +524,17 @@ const SSLCertificates = () => { onSearchChange={setSearch} searchInTopbar emptyIcon={Lock} - emptyTitle="No SSL certificates" - emptyDescription="Obtain your first Let's Encrypt certificate to secure your domains." + emptySize="default" + emptyTitle={t('app.sSLCertificates.noSslCertificates', 'No SSL certificates')} + emptyDescription={( + <> + {t('app.sSLCertificates.secureYourDomainsWithLetS', "Secure your domains with Let's Encrypt.")} + + {t('app.sSLCertificates.freeAutoRenewingCertificates', 'Get free, auto-renewing certificates for your domains.')} + {!certbotInstalled && ` ${t('app.sSLCertificates.certbotMustBeInstalledFirst', 'Certbot must be installed first.')}`} + + + )} emptyAction={certbotInstalled ? (