Added new redux reducer for bids to seperate them from commitments. The objects are different enough and bids need more processing where it makes more sense just to seperate them instead of having nested ifs to split logic when it is already split from the sale view.
Using apollo generated interfaces for bids now.
Integrated changes to work with chart, the actual d3 chart implementation did not need many changes.
I implemented a simple clearing price calculation based on a simple dutch auction mechanism since the version in price.ts (also only realised this existed recently) is very complex and I dont think we have all the necessary data in the UI to use it.
I was getting overwhelmed with changes needed so I will split the remaining work into more issues, however currently this implementation displays some mock bids and allows for bids to be loaded once the sc / graph issue is fixed.
Motivation and Context
Closes #428
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Added new redux reducer for bids to seperate them from commitments. The objects are different enough and bids need more processing where it makes more sense just to seperate them instead of having nested ifs to split logic when it is already split from the sale view. Using apollo generated interfaces for bids now. Integrated changes to work with chart, the actual d3 chart implementation did not need many changes. I implemented a simple clearing price calculation based on a simple dutch auction mechanism since the version in price.ts (also only realised this existed recently) is very complex and I dont think we have all the necessary data in the UI to use it. I was getting overwhelmed with changes needed so I will split the remaining work into more issues, however currently this implementation displays some mock bids and allows for bids to be loaded once the sc / graph issue is fixed.
Motivation and Context
Closes #428
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: