diff --git a/frontend/src/pages/ActivityPage.jsx b/frontend/src/pages/ActivityPage.jsx index f68b757..05730cc 100644 --- a/frontend/src/pages/ActivityPage.jsx +++ b/frontend/src/pages/ActivityPage.jsx @@ -5,7 +5,6 @@ import { api } from '../utils/api' import UsageBadge from '../components/UsageBadge' import TrainingTypeSelect from '../components/TrainingTypeSelect' import BulkCategorize from '../components/BulkCategorize' -import TrainingTypeDistribution from '../components/TrainingTypeDistribution' import dayjs from 'dayjs' import 'dayjs/locale/de' dayjs.locale('de') @@ -303,11 +302,6 @@ export default function ActivityPage() { {tab==='stats' && stats && (
-
-
🏋️ Trainingstyp-Verteilung (30 Tage)
- -
- {chartData.length>=2 && (
Aktive Kalorien pro Tag
diff --git a/frontend/src/pages/AdminTrainingTypesPage.jsx b/frontend/src/pages/AdminTrainingTypesPage.jsx index 442a1c4..f693b37 100644 --- a/frontend/src/pages/AdminTrainingTypesPage.jsx +++ b/frontend/src/pages/AdminTrainingTypesPage.jsx @@ -169,13 +169,14 @@ export default function AdminTrainingTypesPage() { {editingId === 'new' ? '➕ Neuer Trainingstyp' : '✏️ Trainingstyp bearbeiten'}
-
+
- +
Kategorie *
setFormData({ ...formData, subcategory: e.target.value })} placeholder="z.B. running, hypertrophy, meditation" + style={{ width: '100%' }} />
Kleingeschrieben, ohne Leerzeichen, eindeutig
-
-
- - setFormData({ ...formData, name_de: e.target.value })} - placeholder="z.B. Laufen" - /> -
- -
- - setFormData({ ...formData, name_en: e.target.value })} - placeholder="e.g. Running" - /> -
+
+
Name (Deutsch) *
+ setFormData({ ...formData, name_de: e.target.value })} + placeholder="z.B. Laufen" + style={{ width: '100%' }} + />
- +
Name (English) *
+ setFormData({ ...formData, name_en: e.target.value })} + placeholder="e.g. Running" + style={{ width: '100%' }} + /> +
+ +
+
Icon (Emoji)
setFormData({ ...formData, icon: e.target.value })} placeholder="🏃" maxLength={10} + style={{ width: '100%' }} />
- +
Sortierung
setFormData({ ...formData, sort_order: parseInt(e.target.value) })} + style={{ width: '100%' }} />
Niedrigere Zahlen werden zuerst angezeigt @@ -245,24 +249,26 @@ export default function AdminTrainingTypesPage() {
- +
Beschreibung (Deutsch)