Add unit type filter to player stats tracker #82
Labels
No labels
backend
bug
discord
do later
duplicate
enhancement
epic
frontend
good first issue
help wanted
need more info
question
top priority
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
daratine/gex#82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The player stats tracker is an excellent tool.
What I would like is to have a filter where you select specific units, such as T1 bot constructors, grunts, etc., and the graph will show time series plots for that kind of unit.
For example, if I filter on T1 bot constructor, I can see how many constructors each player has as the game caries on, or it shows the metal value of the T1 cons (not as useful but illustrative), or shows the combined build power, etc.
The filter could work like on the BAR replay website where you can filter matches by participating players, only here it would be for units.
sure, i like this
worked on a bit in
93db3afc45but not super happy with how it isstruggling with the design for this but i think it's a good idea
That's an interesting design, not what I had in mind. The tooltip could be incorporated elsewhere, and instead of showing everything it just shows top X, and users can control what X is. That would be interesting information.
What I was originally thinking of (which would also address why the tool up here seems to not have a good interface) was an interface where you can select what to include in the graph and what metrics to track. For example:
(Source: https://dash.gallery/dash-clinical-analytics/?_gl=1ya85jy_gcl_auNjU3ODAzNDk3LjE3NjEyNzQzMTU._gaMTQ4OTYzMzg1Ny4xNzYxMjc0MzE1_ga_6G7EE0JNSC*czE3NjEyNzQzMTUkbzEkZzEkdDE3NjEyNzQzMjkkajQ2JGwwJGgw)
You could make a tool resembling the "Select Admit Source" interface where you are instead selecting which units/buildings to include in your metal/energy/BP/count trackers. To add/subtract units, you can click on the box and start typing, and it will make suggestions for units as you type. You may also have some pre-defined groups included in the tags, such as "All mobile constructors", "All bots," "All T2 bots", etc., for common categories people may want to filter on. (I think mobile BP, units with BP, bots, vehicles, air, T1, T2, etc. would be common categories for which there would be a pre-made tag.)
Found it! I think what you should be using is Selectize.js to manage filtering.
https://selectize.dev/
seems like that requires jQuery, which i don't have in this project and don't really want to add all of jQuery for just 1 feature
i do have something similar to that already added for match searching
the feature idea does seem pretty cool, i just struggle a lot with front end work lol