feat: add relaxed arm circumference measurement and update related features
- Introduced `c_arm_relaxed` to the CircumferenceEntry model for tracking relaxed arm measurements. - Updated database schema to include `c_arm_relaxed` in the circumference_log table. - Implemented calculation for 28-day relaxed arm circumference change with `calculate_arm_relaxed_28d_delta`. - Enhanced placeholder resolver and registration to support new relaxed arm measurement. - Updated frontend components to accommodate the new measurement, including forms and CSV exports. - Improved documentation and guide data to reflect the addition of relaxed arm measurements.
This commit is contained in:
1 parent
0035d08149
commit
df0165bee3
16 files changed
+122
-33
No files matched your search
@@ -6,10 +6,10 @@ import { CIRCUMFERENCE_POINTS } from '../utils/guideData'
|
||||
import UsageBadge from '../components/UsageBadge'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const FIELDS = ['c_neck','c_chest','c_waist','c_belly','c_hip','c_thigh','c_calf','c_arm']
|
||||
const LABELS = {c_neck:'Hals',c_chest:'Brust',c_waist:'Taille',c_belly:'Bauch',c_hip:'Hüfte',c_thigh:'Oberschenkel',c_calf:'Wade',c_arm:'Oberarm'}
|
||||
const FIELDS = ['c_neck','c_chest','c_waist','c_belly','c_hip','c_thigh','c_calf','c_arm','c_arm_relaxed']
|
||||
const LABELS = {c_neck:'Hals',c_chest:'Brust',c_waist:'Taille',c_belly:'Bauch',c_hip:'Hüfte',c_thigh:'Oberschenkel',c_calf:'Wade',c_arm:'Oberarm kontrahiert',c_arm_relaxed:'Oberarm'}
|
||||
|
||||
function empty() { return {date:dayjs().format('YYYY-MM-DD'), c_neck:'',c_chest:'',c_waist:'',c_belly:'',c_hip:'',c_thigh:'',c_calf:'',c_arm:'',notes:'',photo_id:''} }
|
||||
function empty() { return {date:dayjs().format('YYYY-MM-DD'), c_neck:'',c_chest:'',c_waist:'',c_belly:'',c_hip:'',c_thigh:'',c_calf:'',c_arm:'',c_arm_relaxed:'',notes:'',photo_id:''} }
|
||||
|
||||
export default function CircumScreen() {
|
||||
const [entries, setEntries] = useState([])
|
||||
|
||||
@@ -387,7 +387,7 @@ export default function MeasureWizard() {
|
||||
<div>
|
||||
<div style={{fontSize:16,fontWeight:600}}>Umfänge messen</div>
|
||||
<div style={{fontSize:12,color:'var(--text3)',marginTop:2}}>
|
||||
8 Messpunkte · Hals, Brust, Taille, Bauch, Hüfte, Oberschenkel, Wade, Oberarm
|
||||
9 Messpunkte · inkl. Oberarm kontrahiert + Oberarm entspannt
|
||||
</div>
|
||||
</div>
|
||||
<ChevronRight size={20} style={{marginLeft:'auto',color:'var(--text3)'}}/>
|
||||
|
||||
@@ -53,7 +53,7 @@ export default function NewMeasurement() {
|
||||
date: dayjs().format('YYYY-MM-DD'),
|
||||
weight: null,
|
||||
c_neck:null, c_chest:null, c_waist:null, c_belly:null,
|
||||
c_hip:null, c_thigh:null, c_calf:null, c_arm:null,
|
||||
c_hip:null, c_thigh:null, c_calf:null, c_arm:null, c_arm_relaxed:null,
|
||||
sf_method:'jackson3',
|
||||
sf_chest:null, sf_axilla:null, sf_triceps:null, sf_subscap:null,
|
||||
sf_suprailiac:null, sf_abdomen:null, sf_thigh:null,
|
||||
@@ -132,7 +132,7 @@ export default function NewMeasurement() {
|
||||
|
||||
{/* Umfänge */}
|
||||
<Section title="Umfänge" open={openSections.circum} onToggle={()=>toggle('circum')}
|
||||
hint="Hals, Brust, Taille, Bauch, Hüfte, Oberschenkel, Wade, Oberarm">
|
||||
hint="Hals, Brust, Taille, Bauch, Hüfte, Oberschenkel, Wade, Oberarm (kontrahiert + entspannt)">
|
||||
{CIRCUMFERENCE_POINTS.map(p => (
|
||||
<NumInput key={p.id} label={p.label}
|
||||
guideText={p.where.length > 50 ? p.where.substring(0,48)+'…' : p.where}
|
||||
|
||||
Reference in new issue
Block a user