From 6ad4cb9b546b276fc8d57bdbb528239d84303d5a Mon Sep 17 00:00:00 2001 From: Pierre Marx Date: Thu, 4 Sep 2025 15:41:21 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20S=C3=A9lection=20automatique=20du=20prem?= =?UTF-8?q?ier=20onglet=20=C3=A0=20la=20connexion=20(v1.2.5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Correction de l'écran blanc après connexion - Le premier planning s'affiche automatiquement - Suppression du message "Sélectionnez un centre..." - Expérience utilisateur plus fluide avec accès direct au contenu - L'onglet du premier centre est marqué comme actif --- docs/changelog.md | 19 +++++++++++++++++++ index.html | 3 --- renderer.js | 5 +++++ 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 7d8327e..f4d626c 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,24 @@ # Changelog - SimpleConnect Electron +## [1.2.5] - 2025-09-04 + +### Corrigé +- **Écran blanc à la connexion** : Sélection automatique du premier onglet + - Plus d'écran vide après connexion + - Le premier planning s'affiche automatiquement + - L'onglet correspondant est marqué comme actif + +### Modifié +- **Expérience de connexion** : Accès direct au premier planning + - Ajout de `selectCenter(currentCentres[0].id)` dans showMainPage() + - Suppression du message "Sélectionnez un centre ou attendez un appel entrant" + - Transition immédiate vers le contenu utile + +### Technique +- Appel automatique de selectCenter() après initializeCenters() +- Suppression du div .no-center-selected du HTML +- Amélioration du flux utilisateur post-connexion + ## [1.2.4] - 2025-09-04 ### Corrigé diff --git a/index.html b/index.html index 81980cc..f1e2765 100644 --- a/index.html +++ b/index.html @@ -100,9 +100,6 @@
-
-

Sélectionnez un centre ou attendez un appel entrant

-
diff --git a/renderer.js b/renderer.js index 2d2bd41..d49cfac 100644 --- a/renderer.js +++ b/renderer.js @@ -285,6 +285,11 @@ function showMainPage() { // Initialiser l'interface initializeCenters(); updateStatus('available'); + + // Sélectionner automatiquement le premier centre/onglet + if (currentCentres.length > 0) { + selectCenter(currentCentres[0].id); + } } // === GESTION DES CENTRES ===