Skip to content

Commit fbc5a63

Browse files
author
web3blind
committed
Bump i18n cache for home labels
1 parent 45a70af commit fbc5a63

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
<script src="js/config.js?v=20260712a"></script>
125125

126126
<!-- I18n -->
127-
<script src="js/i18n/ru.js?v=20260713h"></script>
128-
<script src="js/i18n/en.js?v=20260713h"></script>
127+
<script src="js/i18n/ru.js?v=20260713i"></script>
128+
<script src="js/i18n/en.js?v=20260713i"></script>
129129

130130
<!-- Utilities -->
131131
<script src="js/utils/helpers.js?v=20260621l"></script>

app/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"short_name": "VizMagic",
44
"description": "Viz Magic — accessible browser RPG on the VIZ blockchain",
55
"id": "https://vizmagic.web3blind.xyz/",
6-
"start_url": "/?pwa=viz-magic-v56",
6+
"start_url": "/?pwa=viz-magic-v57",
77
"scope": "/",
88
"display": "standalone",
99
"display_override": ["standalone", "minimal-ui"],

app/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Viz Magic — Service Worker
2-
var CACHE_NAME = 'viz-magic-v56';
2+
var CACHE_NAME = 'viz-magic-v57';
33
var ASSETS = [
44
'/',
55
'/index.html',

tests/player-bug-regressions.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
348348

349349
test('service worker updates quickly and keeps navigations network-first', function () {
350350
const swJs = read('app/sw.js');
351-
assert.ok(/viz-magic-v56/.test(swJs), 'service worker cache version should be bumped');
351+
assert.ok(/viz-magic-v57/.test(swJs), 'service worker cache version should be bumped');
352352
assert.ok(/self\.skipWaiting\(\)/.test(swJs), 'service worker should activate new cache without waiting for all tabs to close');
353353
assert.ok(/self\.clients\.claim\(\)/.test(swJs), 'service worker should claim clients after activation');
354354
assert.ok(/event\.request\.mode === 'navigate'[\s\S]*fetch\(event\.request\)/.test(swJs), 'navigation requests should prefer network to avoid stale cached index');
@@ -397,7 +397,7 @@ test('mobile entry helpers cover keyboard paste, home-screen shortcut, nav parit
397397
assert.ok(/SoundManager\.setVolume\(sfxVolume \/ 100\)/.test(read('app/js/ui/screens/settings.js')), 'settings should apply stored SFX volume on render');
398398
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX \+ 'sfx_volume'/.test(read('app/js/ui/sound.js')), 'sound manager should persist SFX volume');
399399
assert.ok(/var volume = _getStoredNumber\('sfx_volume', 0\.5\)/.test(read('app/js/ui/sound.js')), 'sound manager should restore persisted SFX volume');
400-
assert.ok(/viz-magic-v56/.test(read('app/sw.js')), 'service worker cache should be bumped for UI changes');
400+
assert.ok(/viz-magic-v57/.test(read('app/sw.js')), 'service worker cache should be bumped for UI changes');
401401
});
402402

403403

@@ -459,8 +459,8 @@ test('magical weather is labelled and affects hunts', function () {
459459
assert.ok(/forecast-card-effect/.test(homeJs + mainCss), 'forecast effect column needs its own thematic icon/card');
460460
assert.ok(/function getCurrentFestival/.test(worldEventsJs), 'magical holidays should sometimes appear in the forecast');
461461
assert.ok(/festival_today_prefix/.test(homeJs + ruJs + enJs), 'forecast holidays should have localized copy');
462-
assert.ok(/i18n\/ru.js\?v=20260713h/.test(indexHtml), 'Russian weather copy must be cache-busted');
463-
assert.ok(/i18n\/en.js\?v=20260713h/.test(indexHtml), 'English weather copy must be cache-busted');
462+
assert.ok(/i18n\/ru.js\?v=20260713i/.test(indexHtml), 'Russian weather copy must be cache-busted');
463+
assert.ok(/i18n\/en.js\?v=20260713i/.test(indexHtml), 'English weather copy must be cache-busted');
464464
assert.ok(/home.js\?v=20260713f/.test(indexHtml), 'home forecast layout must be cache-busted');
465465
assert.ok(/quests.js\?v=20260712a/.test(indexHtml), 'quest-limit UX must be cache-busted');
466466
assert.ok(/nav.js\?v=20260713a/.test(indexHtml), 'bottom tray nav must be cache-busted');
@@ -527,7 +527,7 @@ test('reported mobile UX issues have explicit fixes', function () {
527527

528528
test('PWA icon and HP heart use expressive color accents', function () {
529529
assert.ok(/viz-magic-192\.png\?v=20260713a/.test(indexHtml), 'PWA icon link should be cache-busted after plus placement/color update');
530-
assert.ok(/viz-magic-v56/.test(read('app/manifest.json')), 'manifest start URL should change so launchers can refresh icons');
530+
assert.ok(/viz-magic-v57/.test(read('app/manifest.json')), 'manifest start URL should change so launchers can refresh icons');
531531
assert.ok(/label:' HP'/.test(homeJs), 'HP label should use a red heart emoji variant');
532532
});
533533

0 commit comments

Comments
 (0)