fix: move TrainingTypeDistribution to History + improve admin form UX
UX improvements based on user feedback: 1. Move TrainingTypeDistribution from ActivityPage to History page - ActivityPage is for data entry, not visualization - History (Verlauf) shows personal development/progress - Chart now respects period selector (7/30/90/365 days) 2. Improve AdminTrainingTypesPage form styling - All input fields now full width (100%) - Labels changed from inline to headings above fields - Textareas increased from 2 to 4 rows - Added resize: vertical for textareas - Increased gap between fields from 12px to 16px - Follows style guide conventions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
eecc00e824
commit
967d92025c
3 files changed
+40
-35
No files matched your search
@@ -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 && (
|
||||
<div>
|
||||
<div className="card section-gap">
|
||||
<div className="card-title">🏋️ Trainingstyp-Verteilung (30 Tage)</div>
|
||||
<TrainingTypeDistribution days={30} />
|
||||
</div>
|
||||
|
||||
{chartData.length>=2 && (
|
||||
<div className="card section-gap">
|
||||
<div className="card-title">Aktive Kalorien pro Tag</div>
|
||||
|
||||
Reference in new issue
Block a user