It would be cool if there could be an option to display scores/ranks with different combinations of events. With this feature, you will be able to see what would happen if trials were counted, builds were/were not, etc.
The way I see this happening with the current code structure would probably be to add client JS (in assets/results_template/script.js) to compute the score (by adding up the points for each counted event) and then rank teams (see sciolyff-js for their ranking algorithm?). An event selection UI could be inside the filters modal.
Potential issues/gotchas I can think of right now:
There isn't currently a way to distinguish trialed/Exempt placings (we would want to exclude exempt points even if the event is counted), see 2022 UT Regional C as an example of exempt placings. Any placing in a trial event and exempt placings have identical data attributes (ex.data-true-points="0", data-points=something). I think adding an attribute for "don't count this place" should be enough.
Exhibition teams should always rank below competing teams. See 2021 Wisconsin States C for examples of exhibition teams.
Possibly some consideration with tracks? I feel like it should probably just work, though I'm not 100%. See 2021 Sierra Vista Invitational B for an example of tracks.
Possibly some consideration with superscore? Again, I think it should probably work.
Some other edge case with an unconventional scoring system.
Alternative strategies:
We could try running an interpreter in client JS but then we would need a way to template the computed stuff in and by that point it might be easier to grab some JS framework like Svelte or something which will likely be a pain to implement. (See slinkity)
It would be cool if there could be an option to display scores/ranks with different combinations of events. With this feature, you will be able to see what would happen if trials were counted, builds were/were not, etc.
The way I see this happening with the current code structure would probably be to add client JS (in
assets/results_template/script.js
) to compute the score (by adding up the points for each counted event) and then rank teams (seesciolyff-js
for their ranking algorithm?). An event selection UI could be inside the filters modal.Potential issues/gotchas I can think of right now:
data-true-points="0"
,data-points=something
). I think adding an attribute for "don't count this place" should be enough.Alternative strategies: We could try running an interpreter in client JS but then we would need a way to template the computed stuff in and by that point it might be easier to grab some JS framework like Svelte or something which will likely be a pain to implement. (See slinkity)