feat: improve ProfileBuilder mobile UX and clarity
Changes: - Responsive layout: fields stack vertically, no more cramped grid - Clear labels: 'WAS?', 'BEDINGUNG', 'WICHTIGKEIT' - Weight field only shown when using 'weighted_score' strategy - Weight explanation: '1 = unwichtig, 10 = sehr wichtig' - Success message replaces alert() dialog (auto-dismiss after 2s) - Delete button moved to rule header - Better visual hierarchy with sections User feedback: - Felder lassen sich auf Handy nicht gut bearbeiten - Überschriften nicht eindeutig - Gewicht-Feld Verwirrung - Keine OK-Dialoge Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
65846042e2
commit
b73c77d811
2 files changed
+124
-84
No files matched your search
@@ -128,10 +128,13 @@ export default function AdminTrainingTypesPage() {
|
||||
try {
|
||||
await api.adminUpdateTrainingType(editingProfileId, { profile })
|
||||
await load()
|
||||
setEditingProfileId(null)
|
||||
alert('✓ Profil gespeichert!')
|
||||
// Success message is shown by ProfileBuilder component
|
||||
// Don't close editor immediately - let user see success message
|
||||
setTimeout(() => {
|
||||
setEditingProfileId(null)
|
||||
}, 2000)
|
||||
} catch (err) {
|
||||
alert('Speichern fehlgeschlagen: ' + err.message)
|
||||
// Error will be thrown to ProfileBuilder
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user