Files
workout_watcher/frontend/src/features/workout/EmptyWorkoutState.tsx
T
Artem Kashaev 7b34ce1a98 feat: Implement active workout flow with status management
- Added `status`, `total_sets`, and `total_volume` fields to the Workout model.
- Introduced `source_kind`, `title_snapshot`, and `image_s3_url_snapshot` fields to the WorkoutItem model.
- Created endpoints for managing active workouts, including finishing and discarding workouts.
- Updated workout creation to ensure only one active workout exists per user.
- Implemented batch addition of workout sets and updates to workout set details.
- Enhanced database schema with Alembic migrations to support new fields and constraints.
- Added validation to ensure at least one field is provided for workout set updates.
- Updated calorie estimation logic to reflect new workout set structure.
2026-05-29 10:09:56 +05:00

11 lines
588 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export function EmptyWorkoutState({ onOpenDrawer }: { onOpenDrawer: () => void }) {
return (
<section className="empty-workout card">
<p className="eyebrow">Журнал пуст</p>
<h3>Добавь первое упражнение</h3>
<p>Каталог теперь открывается отдельным drawer, поэтому основной экран остается чистым журналом выполнения.</p>
<button className="primary" onClick={onOpenDrawer}>+ Добавить упражнение</button>
</section>
);
}