diff --git a/docs/changelog.md b/docs/changelog.md index 6e0580e..3b8f3bd 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,28 @@ # Changelog - SimpleConnect Electron +## [1.3.1] - 2025-10-17 + +### Ajouté +- **Saisie manuelle de postes téléphoniques personnalisés** : L'utilisateur peut désormais taper un numéro de poste qui n'est pas dans la liste officielle + - Activation de `addItems` et `addChoices` dans Choices.js pour les éléments `, permet d'ajouter des choices personnalisés + searchPlaceholderValue: 'Rechercher ou saisir un poste...', + itemSelectText: 'Appuyez sur Entrée pour sélectionner', + noResultsText: 'Aucun poste trouvé. Appuyez sur Entrée pour utiliser ce numéro.', noChoicesText: 'Aucun poste disponible', + addItemText: (value) => { + return `Utiliser le poste personnalisé : ${value}`; + }, shouldSort: false, searchResultLimit: 20, renderChoiceLimit: -1, placeholder: true, - placeholderValue: 'Sélectionner un poste téléphonique', + placeholderValue: 'Sélectionner ou saisir un poste téléphonique', choices: choicesData.length > 0 ? choicesData : [{value: '', label: 'Aucun poste disponible', disabled: true}], searchFields: ['label', 'value'], fuseOptions: { @@ -903,7 +929,7 @@ async function loadTerminals() { terminals.forEach(terminal => { const option = document.createElement('option'); option.value = terminal; - option.textContent = `Poste ${terminal}`; + option.textContent = terminal.toString(); // Affichage simple du numéro sans préfixe terminalSelect.appendChild(option); }); } diff --git a/styles-modern.css b/styles-modern.css index ad1c564..c358587 100644 --- a/styles-modern.css +++ b/styles-modern.css @@ -1192,6 +1192,7 @@ body { } .choices__item--choice.is-highlighted { - background: #667eea; - color: white; + background: #e8f0fe !important; /* Bleu très clair pour meilleur contraste */ + color: #1a1a1a !important; /* Texte noir foncé */ + font-weight: 500; /* Légèrement en gras pour lisibilité */ } \ No newline at end of file