فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(settings): display package version in About card
Factor EasyPro QA committed
Nov 1, 2026 at 21:20 UTC
c3f89eb9f5dd6194e6913009a4662f622dacbd1b
2 files changed
+8
-1
src/views/SettingsView.js
+2
-1
@@ -2,6 +2,7 @@
2
// SettingsView — صفحهی تنظیمات، بکاپ، شرکت و Excel
3
// ============================================================
4
5
+import appPackage from '../../package.json' with { type: 'json' };
6
import { SettingsController } from '../controllers/SettingsController.js';
7
import { StorageService } from '../core/StorageService.js';
8
import { Theme } from '../core/Theme.js';
@@ -817,7 +818,7 @@ class SettingsViewImpl {
818
<div class="settings-card-icon">ℹ️</div>
819
<div>
820
<h3 class="settings-card-title">درباره فینورا پرو</h3>
820
- <p class="settings-card-desc">نسخه ۲.۰.۳</p>
821
+ <p class="settings-card-desc">نسخه ${appPackage.version}</p>
822
</div>
823
</div>
824
<div style="font-size:13px;line-height:1.9;color:var(--text-muted)">
tests/app-version-consistency.test.mjs
+6
@@ -15,3 +15,9 @@ test('A07: desktop and application version use a single package manifest', () =>
15
assert.match(html, /id="appVersionLabel"/);
16
assert.match(entry, /visibleVersion\.textContent\s*=\s*'نسخه '\s*\+\s*FINORA\.version/);
17
});
18
+
19
+test('A07: settings About card uses manifest version', () => {
20
+ const settings = read('src/views/SettingsView.js');
21
+ assert.match(settings, /import appPackage from/);
22
+ assert.ok(settings.includes('نسخه '+ '$' + '{appPackage.version}'));
23
+});