Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to filter ammo chart by my trader levels or price #155

Open
Reithan opened this issue Feb 12, 2022 · 10 comments
Open

Add the ability to filter ammo chart by my trader levels or price #155

Reithan opened this issue Feb 12, 2022 · 10 comments

Comments

@Reithan
Copy link

Reithan commented Feb 12, 2022

Since tarkov tools has my trader levels set in settings, and it has market data from it's API, it would be awesome to be able to set a max price, or max trader level for ammos and be able to see what ammos I should be considering.

@kokarn
Copy link
Owner

kokarn commented Feb 13, 2022

Wow, that's a great suggestion! Can't believe I haven't thought of this sooner.

@AnyFinCanHappen
Copy link

AnyFinCanHappen commented Feb 17, 2022

Hello @kokarn can I work on this issue? Unless @Reithan is already working on this one.

Also, here's my idea on implementing this. Since we are having multiple filter categories, we can have a VictoryLegend instance for each category. So for our case we would have 3 legends, "Filter by caliber", "Filter by Trader Level", and "Filter by Price".

If we go ahead with using three VictoryLegend instances, then we could have the legends be more horizontally shaped and ordered to be on top of the graph.

Mock:
The three red boxes represent the legends
tarkov_tool_idea

Let me know what you think!

Also not really sure what kind of form to use for "Filter by Price", maybe just two input text?

@Reithan
Copy link
Author

Reithan commented Feb 17, 2022

Filter by trader could just be a toggle like it is for other views.
Possible add a toggle to hide ammo that's banned on flea as well.

Filter by price could just be a min-max text entry thing.

I think leaving filter by caliber as-is could be reasonable.

@Reithan
Copy link
Author

Reithan commented Feb 17, 2022

Oh, as to the question if I'm currently working on this, no I am not, @AnyFinCanHappen

@AnyFinCanHappen
Copy link

@Reithan thanks for the feedback,

Im fine with leaving "filter by caliber" as it is. If we do that I'm not really sure where to put the filter by traders and price range. So for now I just work on the functionality for each of the filters and wait on @kokarn opinion on where we should put the filters.

Also some things to note: I'm not sure if we can have custom components in a VictoryContainer So we may not be able to place the price range and trader filter along side the caliber filter.

@kokarn
Copy link
Owner

kokarn commented Feb 17, 2022

Very cool that you want to work on this @AnyFinCanHappen !

I'n general I'm fine with you trying out what you think works best.

If you want my thinking I was thinking more about using the Filter that already exists and putting on top. I've had trouble styling the Legend in the past and I think people want to use all filters combined in the same way they do on other pages.

@Reithan
Copy link
Author

Reithan commented Feb 17, 2022

Wanted to revisit one thing I said:
I said min-max price range, but tbh, I can't think of a super solid reason to want to filter to a min price? Maybe max price by itself would be enough?
I could definitely be wrong though. If you think min would be valuable, it shouldn't be too hard to take or leave it when/if you add max price.

@kokarn
Copy link
Owner

kokarn commented Feb 19, 2022

I agree, no need for "min" price which also makes the implementation match the rest of the site 👍

@AnyFinCanHappen
Copy link

AnyFinCanHappen commented Feb 28, 2022

@kokarn sorry for the dead silence. Something came up IRL so, I couldn't really make any progress on this. If needed, someone can take my spot for this issue.

Also, will take a look at #157 when I can :)

@kokarn
Copy link
Owner

kokarn commented Mar 2, 2022

No worries at all! Stuff happens all the time :) Just let me know if you need help and/or support with anything, whenever you get the opportunity :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants