Email for professionals and teams
Add migration check
Hieu Nguyen (Jack)b8e2fbe3ccda
diff --git a/src/components/admin-update-card.tsx b/src/components/admin-update-card.tsxindex a74bdd0..2145b50 100644--- a/src/components/admin-update-card.tsx+++ b/src/components/admin-update-card.tsx@@ -148,7 +148,11 @@ export function AdminUpdateCard() {</button>)}</div>+ </div>+ )}+ {(isCheckingMigrations || migrationStatus) && (+ <div className="divide-y divide-neutral-100 overflow-hidden rounded-2xl border border-neutral-100">{isCheckingMigrations && (<div className="flex items-center gap-3 px-4 py-4"><Skeleton className="h-4 w-4 rounded-full" />@@ -179,6 +183,13 @@ export function AdminUpdateCard() {{t("update.deployMatching")}</div>)}++ {!isCheckingMigrations && migrationStatus?.ready && (+ <div className="flex items-center gap-3 px-4 py-4">+ <CheckCircle2 className="h-4 w-4 shrink-0 text-green-600" />+ <p className="text-sm text-neutral-700">{t("update.databaseUpToDate")}</p>+ </div>+ )}</div>)}diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.jsonindex 6c7f3b9..e08faa2 100644--- a/src/lib/i18n/en.json+++ b/src/lib/i18n/en.json@@ -947,6 +947,7 @@"update.pendingMigrations.other": "{count} database migrations are pending.","update.updatingDatabase": "Updating database...","update.updateDatabase": "Update database",+ "update.databaseUpToDate": "Database schema is up to date.","update.deployMatching": "Deploy the matching Mailflare release before changing this database.","update.started": "Update started for {repo}@{ref}. Refresh this page after Cloudflare deploys it.","update.viewWorkflow": "View workflow",