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

feat: new filter system #6

Merged
merged 2 commits into from Jun 21, 2022
Merged

feat: new filter system #6

merged 2 commits into from Jun 21, 2022

Conversation

Majorfi
Copy link
Contributor

@Majorfi Majorfi commented Jun 21, 2022

After some talk with @MarcoWorms, the filter system is not great and may be difficult to update. This PR try to solve this by abstracting the filter logic based on the filters added by the user.

  • defaultCategories are set on the useYearn context
  • defaultCategories is updated after the vault filtering setup to match all the available categories
  • Category name is category filter
  • Reduce selectedCategories object complexity

@Majorfi Majorfi added the enhancement New feature or request label Jun 21, 2022
@Majorfi Majorfi requested a review from saltyfacu June 21, 2022 07:40
@Majorfi Majorfi self-assigned this Jun 21, 2022
@vercel
Copy link

vercel bot commented Jun 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
macarena-finance ✅ Ready (Inspect) Visit Preview Jun 21, 2022 at 7:40AM (UTC)

Copy link
Contributor

@saltyfacu saltyfacu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@saltyfacu saltyfacu merged commit 1b25c3d into main Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants