feat: improve ProfileBuilder mobile UX and clarity
Deploy Development / deploy (push) Successful in 42s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

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:
LarsandClaude Opus 4.6 committed 2026-03-23 14:18:58 +01:00
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
}
}