bouton mini test enlevé
This commit is contained in:
@@ -105,6 +105,13 @@ function getSupportedRecordingMimeType() {
|
||||
return candidates.find((type) => MediaRecorder.isTypeSupported(type)) || ''
|
||||
}
|
||||
|
||||
function formatVoiceLabel(profile) {
|
||||
if (!profile?.label) return ''
|
||||
return profile.label.toLowerCase().startsWith('voix ')
|
||||
? profile.label
|
||||
: `Voix ${profile.label}`
|
||||
}
|
||||
|
||||
function LoginPage({ onLogin }) {
|
||||
const [credentials, setCredentials] = useState({ username: '', password: '' })
|
||||
const [status, setStatus] = useState('')
|
||||
@@ -935,9 +942,6 @@ function TutorApp({ currentUser, onLogout }) {
|
||||
<span>{exerciseLabel}</span>
|
||||
</div>
|
||||
<p>{assessment?.skill_label || lessonFocus?.label || 'Aucun exercice lance.'}</p>
|
||||
<button type="button" onClick={fetchAssessment} disabled={!selectedStudentId || !sessionActive}>
|
||||
{exerciseStatus === 'not-started' ? 'Lancer exercice' : 'Nouvel exercice'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
@@ -1020,10 +1024,19 @@ function TutorApp({ currentUser, onLogout }) {
|
||||
<option value="">Voix de Professeur TOP</option>
|
||||
{voiceProfiles.map((profile) => (
|
||||
<option key={profile.id} value={profile.id}>
|
||||
{profile.label}
|
||||
{formatVoiceLabel(profile)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
{selectedVoiceProfile && (
|
||||
<span
|
||||
className="voice-tooltip"
|
||||
title={`Voix IA non humaine: ${formatVoiceLabel(selectedVoiceProfile)} - ${selectedVoiceProfile.description}`}
|
||||
aria-label={`Voix IA non humaine: ${formatVoiceLabel(selectedVoiceProfile)} - ${selectedVoiceProfile.description}`}
|
||||
>
|
||||
i
|
||||
</span>
|
||||
)}
|
||||
<button type="button" onClick={startVoiceInput} disabled={isTranscribing}>
|
||||
{isAutoListening ? 'Couper le micro' : isTranscribing ? 'Transcription...' : 'Micro auto'}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user