refactor: unify FilterButton and ExplorerFilterButton into single component#990
Conversation
…ponent - Consolidate duplicate filter pill components into one source of truth - Standardize prop API (use isActive, optional count, add �ctiveTextColor) - Adopt responsive styling from ExplorerFilterButton - Normalize visual styles across all tables for consistency - Migrate all 10 call sites to unified component - Remove ExplorerFilterButton
|
Fix conflicts. |
|
Could you please resolve the merge conflicts so we can proceed with the review? |
|
Fixed conflicts. please review again. thanks |
anderdc
left a comment
There was a problem hiding this comment.
Please scope this down to what #980 asks for. Keep: FilterButton.tsx consolidation, ExplorerFilterButton.tsx deletion, and the three miner-table call-site updates. Drop: src/components/miners/MinerIssuesTable.tsx — it was removed in #900 (0376a44) and is unrelated to #980. Also missing screenshots for the visual change to FilterButton at its existing call sites.
I've deleted |
ExplorerFilterButton was removed in favor of FilterButton (entrius#990) but this file still referenced FilterButton without an import, breaking tsc. Co-authored-by: Cursor <cursoragent@cursor.com>


Summary
Unified the
FilterButtonandExplorerFilterButtoncomponents into a single, consolidated component to eliminate code duplication and standardize the API across the application. This refactor improves maintainability by centralizing filter pill styling and behavior, adopting responsive design patterns, and normalizing visual consistency across all tables.Key changes include:
selectedtoisActive, madecountoptional, addedactiveTextColor)ExplorerFilterButton(responsive padding, font sizes, etc.)ExplorerFilterButtoncomponentRelated Issues
closes #980
Type of Change
Checklist
npm run formatandnpm run lint:fixhave been runnpm run buildpasses