Finalize screen: one steady "please wait" line instead of core stages

The finalize progress UI was showing raw stage_status strings from
frappe/erpnext core (Setting up company, Installing fixtures, …) — these
are untranslated and jargon-y. Ignore them and show a single message
"This may take a minute, please wait..." (az/ru translated) while the bar
tracks the progress tuple. Drops now-unused "Starting..." / "Working...".

POT regenerated, mirrored to az_locale. Bump version 0.1.32 -> 0.1.33.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ali 2026-06-12 13:55:52 +00:00
parent 997a085274
commit 732e6483b2
5 changed files with 39 additions and 50 deletions

View File

@ -1 +1 @@
__version__ = "0.1.32" __version__ = "0.1.33"

View File

@ -735,10 +735,6 @@ msgstr "Ötürüldü"
msgid "Start date" msgid "Start date"
msgstr "Başlama tarixi" msgstr "Başlama tarixi"
#: jey_wizard/public/js/jey_setup.js:1433
msgid "Starting..."
msgstr "Başlanır..."
#: jey_wizard/etaxes.py:376 #: jey_wizard/etaxes.py:376
msgid "State" msgid "State"
msgstr "Vəziyyət" msgstr "Vəziyyət"
@ -852,10 +848,6 @@ msgstr "VÖEN üzrə avtomatik uyğunlaşdırmaq mümkün olmadı. İşçiləri
msgid "Wizard & site language" msgid "Wizard & site language"
msgstr "Sihirbaz və sayt dili" msgstr "Sihirbaz və sayt dili"
#: jey_wizard/public/js/jey_setup.js:1460
msgid "Working..."
msgstr "İcra olunur..."
#: jey_wizard/public/js/jey_setup.js:318 #: jey_wizard/public/js/jey_setup.js:318
msgid "Wrong company? Change" msgid "Wrong company? Change"
msgstr "Yanlış şirkət? Dəyişin" msgstr "Yanlış şirkət? Dəyişin"
@ -906,3 +898,6 @@ msgstr "ƏMAS işçiləri"
msgid "Confirm the Asan Imza request" msgid "Confirm the Asan Imza request"
msgstr "Asan İmza sorğusunu təsdiqləyin" msgstr "Asan İmza sorğusunu təsdiqləyin"
msgid "This may take a minute, please wait..."
msgstr "Bu bir az çəkə bilər, gözləyin..."

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Jey Wizard VERSION\n" "Project-Id-Version: Jey Wizard VERSION\n"
"Report-Msgid-Bugs-To: info@jeyerp.az\n" "Report-Msgid-Bugs-To: info@jeyerp.az\n"
"POT-Creation-Date: 2026-06-12 13:32+0000\n" "POT-Creation-Date: 2026-06-12 13:55+0000\n"
"PO-Revision-Date: 2026-06-12 13:32+0000\n" "PO-Revision-Date: 2026-06-12 13:55+0000\n"
"Last-Translator: info@jeyerp.az\n" "Last-Translator: info@jeyerp.az\n"
"Language-Team: info@jeyerp.az\n" "Language-Team: info@jeyerp.az\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -16,8 +16,8 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.16.0\n" "Generated-By: Babel 2.16.0\n"
#: jey_wizard/public/js/jey_setup.js:1466 #: jey_wizard/public/js/jey_setup.js:1468
#: jey_wizard/public/js/jey_setup.js:1508 #: jey_wizard/public/js/jey_setup.js:1510
msgid "(check server logs)" msgid "(check server logs)"
msgstr "" msgstr ""
@ -25,7 +25,7 @@ msgstr ""
msgid "(click to preview)" msgid "(click to preview)"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1576 #: jey_wizard/public/js/jey_setup.js:1578
msgid "(no details)" msgid "(no details)"
msgstr "" msgstr ""
@ -296,7 +296,7 @@ msgstr ""
msgid "Failed to load certificates" msgid "Failed to load certificates"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1567 #: jey_wizard/public/js/jey_setup.js:1569
msgid "Failed to load preview." msgid "Failed to load preview."
msgstr "" msgstr ""
@ -328,7 +328,7 @@ msgstr ""
msgid "Field" msgid "Field"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1442 #: jey_wizard/public/js/jey_setup.js:1444
msgid "Finalizing" msgid "Finalizing"
msgstr "" msgstr ""
@ -454,7 +454,7 @@ msgstr ""
msgid "Loading employees..." msgid "Loading employees..."
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1553 #: jey_wizard/public/js/jey_setup.js:1555
msgid "Loading preview..." msgid "Loading preview..."
msgstr "" msgstr ""
@ -522,7 +522,7 @@ msgstr ""
msgid "No organizations found in ƏMAS for this account." msgid "No organizations found in ƏMAS for this account."
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1559 #: jey_wizard/public/js/jey_setup.js:1561
msgid "No preview data available." msgid "No preview data available."
msgstr "" msgstr ""
@ -530,7 +530,7 @@ msgstr ""
msgid "None" msgid "None"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1520 #: jey_wizard/public/js/jey_setup.js:1522
msgid "Nothing to preview." msgid "Nothing to preview."
msgstr "" msgstr ""
@ -628,7 +628,7 @@ msgstr ""
msgid "Presented certificates" msgid "Presented certificates"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1541 #: jey_wizard/public/js/jey_setup.js:1543
msgid "Preview" msgid "Preview"
msgstr "" msgstr ""
@ -660,7 +660,7 @@ msgstr ""
msgid "Retrieving verification code..." msgid "Retrieving verification code..."
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1583 #: jey_wizard/public/js/jey_setup.js:1585
msgid "Retry" msgid "Retry"
msgstr "" msgstr ""
@ -702,24 +702,24 @@ msgstr ""
msgid "Serial number" msgid "Serial number"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1432 #: jey_wizard/public/js/jey_setup.js:1434
msgid "Setting up your system" msgid "Setting up your system"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1481 #: jey_wizard/public/js/jey_setup.js:1483
msgid "Setup complete! Redirecting..." msgid "Setup complete! Redirecting..."
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1465 #: jey_wizard/public/js/jey_setup.js:1467
#: jey_wizard/public/js/jey_setup.js:1507 #: jey_wizard/public/js/jey_setup.js:1509
msgid "Setup failed" msgid "Setup failed"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1489 #: jey_wizard/public/js/jey_setup.js:1491
msgid "Setup is running in background mode, not supported by skeleton" msgid "Setup is running in background mode, not supported by skeleton"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1498 #: jey_wizard/public/js/jey_setup.js:1500
msgid "Setup returned unexpected response" msgid "Setup returned unexpected response"
msgstr "" msgstr ""
@ -727,7 +727,7 @@ msgstr ""
msgid "Short code suffixed to account names. Auto-suggested from the company name — you can edit it." msgid "Short code suffixed to account names. Auto-suggested from the company name — you can edit it."
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1535 #: jey_wizard/public/js/jey_setup.js:1537
msgid "Showing" msgid "Showing"
msgstr "" msgstr ""
@ -739,10 +739,6 @@ msgstr ""
msgid "Start date" msgid "Start date"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1433
msgid "Starting..."
msgstr ""
#: jey_wizard/etaxes.py:376 #: jey_wizard/etaxes.py:376
msgid "State" msgid "State"
msgstr "" msgstr ""
@ -782,6 +778,11 @@ msgstr ""
msgid "Tax rate" msgid "Tax rate"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1435
#: jey_wizard/public/js/jey_setup.js:1462
msgid "This may take a minute, please wait..."
msgstr ""
#: jey_wizard/public/js/jey_setup.js:345 #: jey_wizard/public/js/jey_setup.js:345
msgid "This step is optional. Use Next to skip if your company has no employees or is not registered with ƏMAS." msgid "This step is optional. Use Next to skip if your company has no employees or is not registered with ƏMAS."
msgstr "" msgstr ""
@ -856,10 +857,6 @@ msgstr ""
msgid "Wizard & site language" msgid "Wizard & site language"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1460
msgid "Working..."
msgstr ""
#: jey_wizard/public/js/jey_setup.js:318 #: jey_wizard/public/js/jey_setup.js:318
msgid "Wrong company? Change" msgid "Wrong company? Change"
msgstr "" msgstr ""
@ -884,7 +881,7 @@ msgstr ""
msgid "liquidated" msgid "liquidated"
msgstr "" msgstr ""
#: jey_wizard/public/js/jey_setup.js:1535 #: jey_wizard/public/js/jey_setup.js:1537
msgid "row(s)" msgid "row(s)"
msgstr "" msgstr ""

View File

@ -735,10 +735,6 @@ msgstr "Пропущено"
msgid "Start date" msgid "Start date"
msgstr "Дата начала" msgstr "Дата начала"
#: jey_wizard/public/js/jey_setup.js:1433
msgid "Starting..."
msgstr "Запуск..."
#: jey_wizard/etaxes.py:376 #: jey_wizard/etaxes.py:376
msgid "State" msgid "State"
msgstr "Состояние" msgstr "Состояние"
@ -852,10 +848,6 @@ msgstr "Не удалось сопоставить по ВÖЕН. Выберит
msgid "Wizard & site language" msgid "Wizard & site language"
msgstr "Язык мастера и сайта" msgstr "Язык мастера и сайта"
#: jey_wizard/public/js/jey_setup.js:1460
msgid "Working..."
msgstr "Выполняется..."
#: jey_wizard/public/js/jey_setup.js:318 #: jey_wizard/public/js/jey_setup.js:318
msgid "Wrong company? Change" msgid "Wrong company? Change"
msgstr "Не та компания? Сменить" msgstr "Не та компания? Сменить"
@ -906,3 +898,6 @@ msgstr "Сотрудники ƏMAS"
msgid "Confirm the Asan Imza request" msgid "Confirm the Asan Imza request"
msgstr "Подтвердите запрос Asan İmza" msgstr "Подтвердите запрос Asan İmza"
msgid "This may take a minute, please wait..."
msgstr "Это может занять минуту, подождите..."

View File

@ -10,7 +10,7 @@ frappe.provide("jey_wizard");
// Bump this string in every commit that changes wizard code. Displayed in the badge so // Bump this string in every commit that changes wizard code. Displayed in the badge so
// we can tell at a glance which version is actually running on a given machine. Kept in // we can tell at a glance which version is actually running on a given machine. Kept in
// sync with __version__ in jey_wizard/__init__.py. // sync with __version__ in jey_wizard/__init__.py.
const JEY_WIZARD_VERSION = "0.1.32"; const JEY_WIZARD_VERSION = "0.1.33";
// Wipe Frappe + ERPNext default slides so their `before_load`/`after_load` listeners // Wipe Frappe + ERPNext default slides so their `before_load`/`after_load` listeners
// don't try to mutate a wizard that isn't slide-based anymore. // don't try to mutate a wizard that isn't slide-based anymore.
@ -1426,11 +1426,13 @@ frappe.setup.SetupWizard = class JeySetupWizard {
// Render an inline progress UI in place of the wizard form. We don't // Render an inline progress UI in place of the wizard form. We don't
// pass freeze:true to frappe.call — the freeze overlay would dim and // pass freeze:true to frappe.call — the freeze overlay would dim and
// hide the bar. process_setup_stages publishes realtime "setup_task" // hide the bar. process_setup_stages publishes realtime "setup_task"
// events with {progress: [idx, total], stage_status: "..."}; we // events with {progress: [idx, total], stage_status: "..."}; we use
// subscribe and translate those into bar width + status text. // the progress tuple for the bar width. The raw stage_status strings
// come from frappe/erpnext core (untranslated, jargon-y), so we ignore
// them and keep one steady "please wait" line instead.
this.$wrap.find(".jey-body").html(` this.$wrap.find(".jey-body").html(`
<h3 style="margin-bottom:12px !important">${__("Setting up your system")}</h3> <h3 style="margin-bottom:12px !important">${__("Setting up your system")}</h3>
<div class="jey-finalize-status" style="color:#666 !important;margin-bottom:12px !important;min-height:1.4em">${__("Starting...")}</div> <div class="jey-finalize-status" style="color:#666 !important;margin-bottom:12px !important;min-height:1.4em">${__("This may take a minute, please wait...")}</div>
<div style="background:#e5e7eb !important;border-radius:6px !important;height:14px !important;overflow:hidden !important;width:100% !important"> <div style="background:#e5e7eb !important;border-radius:6px !important;height:14px !important;overflow:hidden !important;width:100% !important">
<div class="jey-finalize-bar" style="background:#2563eb !important;height:100% !important;width:5% !important;transition:width 0.4s ease !important;display:block !important"></div> <div class="jey-finalize-bar" style="background:#2563eb !important;height:100% !important;width:5% !important;transition:width 0.4s ease !important;display:block !important"></div>
</div> </div>
@ -1457,7 +1459,7 @@ frappe.setup.SetupWizard = class JeySetupWizard {
const [done, total] = data.progress; const [done, total] = data.progress;
if (total > 0) { if (total > 0) {
const ratio = Math.min(done / total, 0.95); const ratio = Math.min(done / total, 0.95);
setProgress(5 + ratio * 90, data.stage_status || __("Working...")); setProgress(5 + ratio * 90, __("This may take a minute, please wait..."));
} }
} }
if (data.status === "fail") { if (data.status === "fail") {