Polish dashboard layout and stabilize live map refreshes
Preserve map markers, zoom and open details during polling; consolidate technical notes and align interface spacing. Fix empty English translations inserting undefined text and add regression coverage.
This commit is contained in:
1 parent
c8941dc199
commit
33f1294405
17 files changed
+277
-50
No files matched your search
@@ -36,3 +36,10 @@ test('UI translations handle counters, statuses, decorative icons and dynamic va
|
||||
test('legacy Auto preference migrates to a concrete language',()=>{const {api,storage}=client(['en-US'],'auto');assert.equal(api.preference,'en');assert.equal(storage.get('bpq-language'),'en');});
|
||||
|
||||
test('configured default language precedes browser detection, saved choice wins',()=>{assert.equal(client(['it-IT'],null,'en').api.language,'en');assert.equal(client(['en-US'],'it','en').api.language,'it');});
|
||||
|
||||
test('English preserves empty HTML text nodes and whitespace instead of inserting undefined',()=>{
|
||||
const {api}=client(['en-US']);
|
||||
for(const value of ['', ' ', '\n', '\r\n \t', ' · ', '● ', ' →'])assert.equal(api.t(value),value);
|
||||
assert.equal(api.t(null),'');assert.equal(api.t(undefined),'');
|
||||
assert.equal(api.t(' Seleziona un messaggio '),' Select a message ');
|
||||
});
|
||||
Reference in new issue
Block a user