August 11, 2026 — Electrical Power live roles, bridges & 80% wire
Path: · Site v1.1.6 · SW cache v102
Ohm’s Law — selected / previous / dynamic
- Replaced blank-only
fillBlank with Air Flow–style roles: last two user edits are anchors; the other two always refresh.
- Re-entering a value after initial calc updates the live pair (original report).
- Role highlight:
.ohms-field-cell / data-ohms-role in styles.css + stylesdark.css (shared with Air Flow; no inline CSS on tools).
BTU/hr ↔ Watts
- New block on Power step; factor 3.412 BTU/hr per W.
- Two-field live converter; Watts ↔ Ohm’s Power (Power becomes selected on BTU/W edit; reverse on Power edit).
syncBridgeLock prevents A→B→A loops; Ohm→VD one-way mirrors do not take that lock (so BTU→Power→live I still updates VD amps).
Voltage Drop bridges
- System voltage: free text input (default 600), not a select; prefs no longer store
vd-voltage as a dropdown.
- Ohm I ↔
vd-amps; Ohm V ↔ vd-voltage (user edit + live Ohm dynamic writes).
injectOhmsUserValue + ohmsBridgeInjectId: re-assert bridge source after solve so VD voltage always updates Ohm V when V was live.
- Calculate button removed; live calc only (CLR STEP / CLR ALL).
Wire sizing — 80% continuous
- VD min AWG:
sizeAmps = amps / 0.8 into lookupWireCu; drop I×R still uses entered amps.
- 15 A → #12 AWG (not #14). Note text: “Min 12 AWG for 15 A @ 80% continuous…”.
- Motor/comp/fan/defrost MCA paths unchanged (already 125% FLA).
TODO — finish dynamic chain (VD ↔ BTU/Watts)
- Need to finish full dynamic consistency between Voltage Drop and BTU/Watts (via Ohm and any direct cascades).
- Still polish: cascade order under rapid multi-field edits; any remaining stale partner fields; expand regression coverage for I/V/P ↔ VD ↔ BTU chains.
- Smoke:
scripts/test-electrical-live.mjs (Ohm roles, bridges, 15 A → #12).
Files
js/electrical-calc.js
app/tools/electrical.htm, aircalc.htm (inline role CSS removed)
styles.css, stylesdark.css
app/help/electrical-power.htm
scripts/test-electrical-live.mjs
Cache & version
- Service worker
phvac-app-v102; electrical script ?v=102.
- Site version 1.1.6.
← All sessions · App home · Bug fixes & changes