Repository navigation
Conversation
Since Predbat started pricing car slots separately, the import cell for a slot where the car rate differs from the house rate holds two divs, one titled House rate and one titled Car rate. The card treated the whole thing as a plain value. The bracket in the car rate title tripped the debug parser, which then pulled numbers out of the markup, and the cell lost its colour because the td has no bgcolor. Now the card takes the house rate div and its background colour, so the cell parses like any other. Tested against a real Predbat plan with Octopus Intelligent Go dispatch slots: the split cells become 8.00 in the house rate colour and the plain cells are unchanged.
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.
Predbat now prices car slots separately, and when the car rate in a slot differs from the house rate (an Octopus Intelligent Go dispatch, for example) the import cell holds two divs instead of a plain value:
The card reads that td as a plain value, so those rows render as junk:
This change takes the House rate div's content and background colour when it is there, so the cell goes through the existing import column handling like any other. Cells without the split are untouched.
I tested it with jsdom against a real Predbat plan that had Intelligent Go dispatch slots in it: the split cells became
<b>8.00</b>with the house rate colour, and the 88 plain import cells were unchanged. It has also been running on my own dashboard.