Closed elft3r closed 10 months ago
FYI: Both of the class detail components are not yet very efficient. I will fix that in the next iteration of the component. I will then move the calculation to the state update mechanism so that it only gets updated when a new fastest lap time is set.
Hey @kart7990, I added a new component with single- and multi-class details. This helped me further learn the data structure even further.
While doing this, I also added a first version of mocking the API. It's not fancy for now and just reads the JSON files in the
mock-data
folder. However, I found this to be the easiest implementation to get going and iterate faster. Happy to hear your thoughts on this and how to improve it. You can use this by runningnpm run dev-mock
.One question that I have is regarding the car details in the standings. For the car class, the API returns the
classId
,className
andclassColor
. However, for the car, it only returns thecarName
, and not thecarId
orcarColor
. Where do you get the information for the class from? Is this from the iRacing API or are you setting these in the backend? How can we best set this for the cars as well?Best, Jochen