From fc88d7ab4b68f54bf3e0a85a09f9a3932f97b183 Mon Sep 17 00:00:00 2001 From: Devon Bontrager Date: Sat, 30 May 2026 10:54:52 -0400 Subject: [PATCH] =?UTF-8?q?v1.2.0=20=E2=80=94=20Multi-piece,=20NMFC=20look?= =?UTF-8?q?up,=20PDF=20export,=20defaults,=20CSV=20history,=20density=20ga?= =?UTF-8?q?uge=20+=20bug=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Features added: - Multi-piece support: add unlimited pieces each with L x W x H x Weight, combined class from total density - NMFC commodity lookup: 55 bundled items, live search by name or code - PDF export: branded PDF with piece table, Cu Ft, PCF, freight class via jsPDF - Default piece preset: save a standard pallet size in Settings > Defaults - Export/import history as CSV - Density gauge: color gradient bar with live marker in results panel - Unit toggle: in/cm and lbs/kg with live conversion across all pieces - Copy to clipboard, timestamps in history, Enter key shortcut, input validation - Charcoal dark mode Bug fixes: - PDF and Copy now blocked before a calculation is performed - History restore no longer misconverts values when units differ from stored unit - History display shows correct unit labels (cm/kg) instead of hardcoded in/lbs - PDF logo format auto-detected from data URL (fixes silent failure for JPG uploads) - Removed dead parsedPieces variable; forEach with early return prevents NaN accumulation - Removed no-op placeholder update in applyUnitToggleUI - CSV export URL revocation deferred to avoid race condition Co-Authored-By: Claude Sonnet 4.6 --- index.html | 1271 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 946 insertions(+), 325 deletions(-) diff --git a/index.html b/index.html index 74df471..21cfa62 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,8 @@ Freight Calculator Pro + + -
- - +
+ + +
+ +
+
+ +
-
-
- -
-
+
+

Freight Class Calculator

+
-
-

Freight Class Calculator

-
- -
-
-
- -
-
in
-
in
-
in
+
+ +
+ +
+
+ Dimensions +
+ +
-
- -
lbs
+
+ Weight +
+ + +
+
+ + +
+ # + L (in) + W (in) + H (in) + Wt (lbs) + +
+ + +
+ + All pieces need valid dimensions and weight. + + + +
-
- -
-
-
Freight Class
-
--
-
Density: 0.00 lb/ft³
-
+
-
-

Density Reference

-
ClassDensityItems
-
-
- - -