-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Added dynamic icons to filters in tools page[Closes #1260] #1309
base: main
Are you sure you want to change the base?
Added dynamic icons to filters in tools page[Closes #1260] #1309
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1309 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 387 396 +9
Branches 103 106 +3
=========================================
+ Hits 387 396 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_includes/community
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please revert the changes in the community submodule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, i have reverted The Changes.
components/Sidebar.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are these changes relevant to the linked issue for Tools Page?
{ hidden: !isDropdownOpen }, | ||
'ml-0 mt-0 overflow-hidden transition-all duration-500 ease-in-out', | ||
{ | ||
'max-h-0 opacity-0 invisible': !isDropdownOpen, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this make it more complicated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhat-shubham your CI checks are failing pls. fix them, also remove changes from submodule folders
@DhairyaMajmudar I have reverted the changes in the submodule as well as fixed the failing checks. |
hey @benjagm @DarhkVoyd I have made the changes you asked for and need suggestion for the one if it needs to be done that way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
hey @DarhkVoyd, thank you for approving the changes however, you previously mentioned about the object being redundant and how i could use the filters obj instead. |
Hey, that's not a big deal. I just suggested instead of separately managing the filterIcons object with filters as keys, we could have just stored them with the existing filters: ex: const filters = [
{ label: 'Language', accessorKey: 'languages', icon: LanguageIcon },
...
]; That would keep the filters data all together and we can just access them during iteration. The filters data as single source of truth. This is fine too. That is just what I would have preferred but that's just my preference. |
Got it! @DarhkVoyd , I had mentioned this in a previous review as well, asking if that was the approach you preferred. And it's the same, I won’t be pushing that commit as per your guidance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marked as not necessary since the changes are approved. Closing the review now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for PR, just a minor comment, rest we're almost done.
Co-authored-by: Dhairya Majmudar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻
What kind of change does this PR introduce?
This PR Closes Issue #1260 , adding dynamic and meaningful icons to each and every Filter on the Tools Page.
Issue Number:
Screenshots/videos:


Before-
After-
If relevant, did you update the documentation?
NA
Summary
Adds dynamic icons to the filters in Tools Page.
Does this PR introduce a breaking change?
NO
NA