Repository navigation
Planner v1.74: flat-plan FiT scaling, unwind prior ratio, blended DP guard & UI polish - #69
Merged
Merged
Conversation
…guard & UI polish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release v1.74 wrapping up the final planner engine fixes and UI polish items:
Engine (
js/planner.js)dayFeedInScalereserve fix: Mark true flat tariffs (prices.flatTariff) inplannerBatteryPricesand honour it insimulateBattery, so halving daytime 10am–3pm feed-in (dayFeedInScale = 0.5) no longer flipsisFlattofalseand imposes a phantom 8% reserve haircut on flat plans.plannerUnwindBattery, normalize borrowed neighbourss ± kbydiurnalPrior(m, s) / diurnalPrior(m, nbSlot)rather than raw* diurnalPrior(m, s)so uncovered evening-peak slots borrowing from an adjacent evening-peak slot are not double-inflated (~3.2×).vValueRange,segIntegral) and check exact realized net gain whenever a blended sell/buy segment is partially overlapped inrunDayDp, preventing net-loss sliver exports/imports wheneBeforebarely clears load/solar.UI & Version (
js/planner-ui.js,index.html,js/constants.js)!r.compareWith),dayFeedIn(x)re-picks the cheapest allowed nothing-new plan underdayFeedInScale = 0.5(cached asr.dayBaseBill) rather than assuming the same baseline plan stays cheapest.cyclesPerDayinrenderNumbersusingdelivered / (x.batteryKwh * Math.sqrt(rteVal)) / 365, matchingsimulateBattery(out.discharged / eta / B) and the month-by-month breakdown.1.73→1.74acrossindex.html,js/constants.js, andtests/unit-time.js.Tests (
tests/unit-planner.js,tests/unit-time.js)APP_VERSIONassertion to1.74.Verification
npm run lint(eslint .): 0 errors, 0 warningsnpm run test:unit: all 12 unit suites passednpx playwright test --workers=2: 70/70 passed