statbotics
statbotics copied to clipboard
Add FRC Colors integration to v2 bubble chart
Congrats on the v2 release!
This PR adds the FRC Colors integration to the v2 bubble chart component. By default, colors are set to disabled, and can be enabled with a switch. Colors are hidden if their contrast ratio with the background is too low. This accounts for light/dark themes. There is no longer a limit on how many teams can be queried at once.
Someone is attempting to deploy a commit to a Personal Account owned by @avgupta456 on Vercel.
@avgupta456 first needs to authorize it.
Thanks for the PR! The Statbotics API that the new frontend subscribes to actually has a primary_color and secondary_color fields from FRC Colors to reduce website network requests (also reduces queries to TBA, Chezy Arena, etc.)
I need to do some more work to expose the primary and secondary colors in the website through the data context. I'll put this PR on hold until I do that (and probably the team, event, and match pages). For what it's worth, I think most people will use the V1 website until these features are complete anyways.
Ah, got it, thanks for the info. Feel free to adapt any parts of the PR you think would be useful once the colors are exposed from the Statbotics end.