refactor: use exported filterIssues function in GoodFirstIssues component#5446
refactor: use exported filterIssues function in GoodFirstIssues component#5446Timmmmmo wants to merge 1 commit into
Conversation
…nent Fixes asyncapi#4889 The exported filterIssues function was never used — the component had inline filtering logic instead. Additionally, the function compared against 'Repository - All' and 'Area - All' while the component used 'All', making them incompatible. Fix both issues: - Update filterIssues to use 'All' (matching component state) - Replace inline filtering with the exported filterIssues function
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR unifies issue filtering logic by having GoodFirstIssues use the shared filterIssues helper instead of duplicating filtering inline. The filterIssues function is updated to use 'All' as the sentinel value for both selectedRepo and selectedArea, removing prior string-based sentinels and eliminating code duplication. ChangesFilter refactoring
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5446 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 906 906
Branches 171 171
=========================================
Hits 906 906 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5446--asyncapi-website.netlify.app/ |



Description
Fixes #4889
Problem: The exported
filterIssuesfunction inGoodFirstIssues.tsxwas never used - the component had inline filtering logic. Additionally,filterIssuescompared against'Repository - All'and'Area - All', while the component state uses'All', making the function incompatible with the component.Changes:
filterIssuesto compare against'All'(matching the component's state defaults)filterIssuesfunctionfilteredIssuesaconst(no longer needsletsince filtering is done in the function)This eliminates dead code and ensures the filtering logic is in one place.
Summary by CodeRabbit