From eb8a2ab933b2c8668d6bd49f2f7dd327e4782e12 Mon Sep 17 00:00:00 2001 From: Dominic Ferrando Date: Wed, 15 Oct 2025 18:01:53 -0400 Subject: [PATCH] new --- src/lib/components/StandardsTable.svelte | 5 ++++- src/lib/data/standards.json | 18 +++++++++--------- src/lib/services/calculator/main.ts | 2 +- src/lib/services/commerce/printful.ts | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/lib/components/StandardsTable.svelte b/src/lib/components/StandardsTable.svelte index ee00b33..03e1253 100644 --- a/src/lib/components/StandardsTable.svelte +++ b/src/lib/components/StandardsTable.svelte @@ -35,7 +35,10 @@ case "ms": return msToTime(rawValue, activity === Activity.ConeDrill); case "cm": { - return String(Math.round(cmToIn(rawValue) * 10) / 10); + const totalInches = cmToIn(rawValue); + const feet = Math.floor(totalInches / 12); + const inches = Math.round(totalInches % 12); + return `${feet}'${inches}"`; } case "kg": return String(Math.round(kgToLb(rawValue))); diff --git a/src/lib/data/standards.json b/src/lib/data/standards.json index 2784266..c01800e 100644 --- a/src/lib/data/standards.json +++ b/src/lib/data/standards.json @@ -5255,10 +5255,10 @@ }, "levels": { "1": 200, - "2": 214, - "3": 224, - "4": 234, - "5": 245 + "2": 230, + "3": 250, + "4": 270, + "5": 300 } }, { @@ -5268,11 +5268,11 @@ "gender": "Female" }, "levels": { - "1": 150, - "2": 164, - "3": 174, - "4": 184, - "5": 194 + "1": 170, + "2": 190, + "3": 220, + "4": 250, + "5": 280 } } ] diff --git a/src/lib/services/calculator/main.ts b/src/lib/services/calculator/main.ts index 29951e8..22dcfa4 100644 --- a/src/lib/services/calculator/main.ts +++ b/src/lib/services/calculator/main.ts @@ -8,7 +8,7 @@ import { Activity, Attribute, Gender, getAvgWeight, kgToLb, lbToKg, type Activit // Dash: // https://marathonhandbook.com/average-100-meter-time/ // Broad Jump: -// +// https://nrpt.co.uk/training/tests/power/broad.htm type LevelCalculatorConfig = { expandIters?: number; diff --git a/src/lib/services/commerce/printful.ts b/src/lib/services/commerce/printful.ts index a6d42cd..1865e25 100644 --- a/src/lib/services/commerce/printful.ts +++ b/src/lib/services/commerce/printful.ts @@ -81,7 +81,7 @@ export default class PrintfulService { }); if (!res.ok) { - throw await FetchError.createAndParse("Failed to update Printful product", printfulProduct.sync_product?.name, res); + throw await FetchError.createAndParse("Failed to update Printful product", res); } } }