feat(combo-planning): enhance combination profile handling and UI improvements
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / playwright-tests (push) Successful in 59s
Deploy Development / deploy (push) Successful in 36s
Test Suite / pytest-backend (push) Successful in 35s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / playwright-tests (push) Successful in 59s
- Updated CombinationCoachSlots to integrate a new function for formatting inline profile values, improving data display consistency. - Refactored CombinationMethodProfileEditor to streamline slot index handling and enhance title clarity. - Improved CombinationPlanBracket by removing unnecessary elements for a cleaner UI. - Enhanced ExerciseFullContent to support additional catalog method profile snapshots, improving exercise detail accuracy. - Updated CSS for combo plan brackets to enhance visual presentation and alignment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
79dabbca5a
commit
d3ddc52118
8 files changed
+142
-95
No files matched your search
@@ -4,6 +4,7 @@ import api from '../utils/api'
|
||||
import ExerciseRichTextBlock from '../components/ExerciseRichTextBlock'
|
||||
import ExerciseAttachmentMediaStrip from '../components/ExerciseAttachmentMediaStrip'
|
||||
import { formatSkillLevelSlug } from '../constants/skillLevels'
|
||||
import { sortCombinationSlotsForDisplay } from '../constants/combinationArchetypes'
|
||||
|
||||
function TagRow({ exercise }) {
|
||||
const tags = []
|
||||
@@ -147,11 +148,9 @@ function ExerciseDetailPage() {
|
||||
</p>
|
||||
) : null}
|
||||
<ol style={{ paddingLeft: '1.25rem', marginBottom: 0 }}>
|
||||
{exercise.combination_slots.map((s) => (
|
||||
<li key={`${s.slot_index}-${(s.title || '').slice(0, 8)}`} style={{ marginBottom: '10px' }}>
|
||||
<strong>
|
||||
Station {s.slot_index != null ? s.slot_index : '?'}{s.title ? ` — ${s.title}` : ''}
|
||||
</strong>
|
||||
{sortCombinationSlotsForDisplay(exercise.combination_slots).map((s, idx) => (
|
||||
<li key={`${s.slot_index}-${idx}-${(s.title || '').slice(0, 8)}`} style={{ marginBottom: '10px' }}>
|
||||
<strong>{(s.title || '').trim() || `Station ${idx + 1}`}</strong>
|
||||
<ul style={{ margin: '4px 0 0', paddingLeft: '1.2rem' }}>
|
||||
{(s.candidates && s.candidates.length
|
||||
? s.candidates
|
||||
|
||||
@@ -740,6 +740,11 @@ export default function TrainingCoachPage() {
|
||||
exercise={catalogExercise}
|
||||
exerciseId={currentEntry?.item?.exercise_id ?? null}
|
||||
variantId={currentEntry?.item?.exercise_variant_id ?? null}
|
||||
catalogMethodProfileSnapshot={
|
||||
String(currentEntry?.item?.exercise_kind || 'simple').toLowerCase().trim() === 'combination'
|
||||
? currentEntry?.item?.catalog_method_profile ?? null
|
||||
: null
|
||||
}
|
||||
planningComboMethodProfile={
|
||||
String(currentEntry?.item?.exercise_kind || 'simple').toLowerCase().trim() === 'combination'
|
||||
? currentEntry?.item?.planning_method_profile ?? null
|
||||
|
||||
Reference in new issue
Block a user