Show version string in wizard footer

Bump jey_wizard version to 0.0.2 and display it at the bottom of every wizard screen.
Prevents the old-version-on-remote-machine confusion we just hit during testing.
Rule: bump both __version__ and the JEY_WIZARD_VERSION constant on every commit that
ships wizard code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ali 2026-04-22 13:19:16 +00:00
parent 7662e784b2
commit 6c687af420
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
__version__ = "0.0.1" __version__ = "0.0.2"

View File

@ -7,6 +7,11 @@
frappe.provide("jey_wizard"); frappe.provide("jey_wizard");
// Bump this string in every commit that changes wizard code. Displayed in the footer so
// 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.
const JEY_WIZARD_VERSION = "0.0.2";
// 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.
frappe.setup.slides = []; frappe.setup.slides = [];
@ -38,6 +43,7 @@ frappe.setup.SetupWizard = class JeySetupWizard {
<div class="jey-body"></div> <div class="jey-body"></div>
<div class="jey-nav" style="margin-top:24px;display:flex;gap:8px;justify-content:flex-end"></div> <div class="jey-nav" style="margin-top:24px;display:flex;gap:8px;justify-content:flex-end"></div>
<div class="jey-status" style="margin-top:16px;color:#c00"></div> <div class="jey-status" style="margin-top:16px;color:#c00"></div>
<div class="jey-version" style="margin-top:32px;color:#bbb;font-size:11px;text-align:right">jey_wizard v${JEY_WIZARD_VERSION}</div>
</div> </div>
`).appendTo($parent); `).appendTo($parent);
this.show_current_step(); this.show_current_step();