Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): stop claiming the schema is auto-synchronized
Yudhi Armyndharise9fe42b2818c
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.tsindex ef6319a55..43cf47d7c 100644--- a/dashboard/src/i18n/locales.test.ts+++ b/dashboard/src/i18n/locales.test.ts@@ -416,3 +416,11 @@ test('the Templates nav item reads the same as the page it opens in every localeassert.equal(i18n.t('nav.templates', { lng }), i18n.t('templates.title', { lng }), `${lng} nav.templates`);}});++// Both databases apply their pending migrations at startup unless *_SYNCHRONIZE=true opts into+// TypeORM synchronize, so the Infrastructure card must not name synchronize as the default.+test('English migrations status describes migrations, not schema synchronize', () => {+ const status = i18n.t('infrastructure.database.migrationsStatus', { lng: 'en' });+ assert.doesNotMatch(status, /synchroni[sz]/i, `status names synchronize: "${status}"`);+ assert.match(status, /migrations/i, `status lost the migrations wording: "${status}"`);+});diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.jsonindex dc6b043a7..76faddf67 100644--- a/dashboard/src/i18n/locales/en.json+++ b/dashboard/src/i18n/locales/en.json@@ -882,7 +882,7 @@"sslRejectUnauthorized": "Verify SSL Certificate","sslRejectUnauthorizedDesc": "Reject self-signed or invalid certificates. Turn off for managed Postgres with self-signed certs (Supabase, Heroku, Render, Railway).","migrationsTitle": "Database Migrations",- "migrationsStatus": "Schema is auto-synchronized with TypeORM",+ "migrationsStatus": "Pending migrations are applied automatically at startup","migrationsHint": "Migrations are managed automatically. Use CLI for manual migrations."},"engine": {