Version 2.1.0 - Update UI

This commit is contained in:
raphix committed 2026-10-08 10:06:46 +02:00
1 parent 6017e03eac
commit dcc350241e
18 files changed
+3508 -330

No files matched your search

+2 -1
View File
@@ -175,7 +175,7 @@ const playlistEvents = [];
process.on('PLAYLISTS_UPDATE', (userId) => playlistEvents.push(userId));
(async () => {
const expected = ['/ADMIN/CONFIG/GET', '/ADMIN/CONFIG/SET', '/ADMIN/CONFIG/SPOTIFY/TEST', '/ADMIN/WARP/CONFIG', '/ADMIN/PLAYLISTS/LIST', '/ADMIN/PLAYLISTS/DELETE'];
const expected = ['/ADMIN/CONFIG/GET', '/ADMIN/CONFIG/SET', '/ADMIN/CONFIG/SPOTIFY/TEST', '/ADMIN/WARP/CONFIG', '/ADMIN/PLAYLISTS/LIST', '/ADMIN/PLAYLISTS/DELETE', '/ADMIN/PLAYLISTS/GUILDS', '/ADMIN/GUILDS/SET_SHARED_PLAYLISTS'];
check('routes enregistrées', expected.every(r => handlers.has(r)), expected.filter(r => !handlers.has(r)));
console.log('# Configuration : validateur pur');
@@ -316,6 +316,7 @@ process.on('PLAYLISTS_UPDATE', (userId) => playlistEvents.push(userId));
check('compte des titres', lists[0].songCount === 2 && lists[1].songCount === 1 && lists[2].songCount === 0);
check('synchro Google repérée', lists[1].source === 'google' && lists[1].syncedAt === '2026-10-01T10:00:00.000Z');
check('aucune liste de titres renvoyée', lists.every(p => !('songs' in p)));
check('dates de création / modification exposées', lists.every(p => 'createdAt' in p && 'updatedAt' in p));
r = await call('/ADMIN/PLAYLISTS/LIST', { userId: '444444' });
check('filtre par utilisateur (même vide)', r.ok && r.data.length === 1 && r.data[0].playlists.length === 0);
r = await call('/ADMIN/PLAYLISTS/LIST', { userId: 'abc' });