Add migration check

This commit is contained in:
Hieu Nguyen (Jack) committed 2026-10-11 02:55:02 +07:00
1 parent e7df653f39
commit b8e2fbe3cc
2 files changed
+12

No files matched your search

+11
View File
@@ -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>
)}
+1
View File
@@ -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",