Skip to content

v1.76: round-2 non-planner fixes (GST stats, daily supply clamp, leap-Feb demand & guards) - #71

Merged
RickUsingGitHub merged 1 commit into
mainfrom
fix/non-planner-round2
Nov 29, 2026
Merged

RickUsingGitHub merged 1 commit into
mainfrom
fix/non-planner-round2

Conversation

@RickUsingGitHub

Copy link
Copy Markdown
Owner

Summary

Round-2 polish and edge-case fixes outside the Solar & battery planner (planner.js, planner-ui.js, and solar.js untouched), bumped to v1.76:

  • Clamped daily supply rate consistency: Use comparePlan.daily (from createPlanObjectFromForm(), clamped >= 0) in �pp-results.js (Results & Calendar) and �pp.js (Daily Summary CSV) so negative input can't diverge from All Plans / Month-by-Month.
  • Negative GST ex-GST bill detection: �illRatesAreExGst in �ill.js now matches GST - 10% -$... on summary-only credit bills.
  • CSV import guards: Ignore empty cached days ([]) when computing wholeMonthSpan, and add a csvImporting re-entrancy guard in handleUsageCsvFile.
  • Startup date range safety: Fall back to defaultDateRange() in �pp.js if saved startDate is after yesterday or after clampedEnd.
  • Ausgrid EA029 Daily Graph legend: Use Amber.settledFeedInItemCost in charts.js so Daily Graph feed-in average matches Average Graph and More Stats.
  • More Stats GST toggle: Apply Amber.adjustForGst to import prices/costs in
    enderMoreStats (leaving solar credits unchanged).
  • PDF.js loader deduplication: Cache the in-flight loadPdfJs() promise and clean up <script> on error in �pp-bill.js.
  • Leap-year February monthly demand: Carry demandMonthly in estimatedAmberRates and divide by exact calendar days of monthKey in demandCentsFor (BLND1AR / Energex 3900).
  • Minor polish: Save settings on TOU + Add hours, include stateCode in state.batteryDetect cache check, and precache icons/icon-192.png in sw.js.

Verification

pm run lint: 0 errors, 0 warnings

pm run test:unit: 12/12 unit suites passed

px playwright test --workers=2: 77/77 E2E tests passed

@RickUsingGitHub
RickUsingGitHub merged commit 1c9b4a0 into main Nov 29, 2026
1 check passed
@RickUsingGitHub
RickUsingGitHub deleted the fix/non-planner-round2 branch November 29, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant