Skip to content

Derive maintainers IssuesTab category/language filters from API data instead of hardcoded listsΒ #189

Description

@Jagadeeshftw

πŸ“Œ Description

IssuesTab (src/features/maintainers/components/issues/IssuesTab.tsx) hardcodes its category and language filter options (e.g. 'Blockchain', 'JavaScript'), so filters never reflect the actual labels/languages present in the loaded issues.

πŸ’‘ Why it matters: Hardcoded filters miss real categories and offer irrelevant ones.

🧩 Requirements and context

  • Build the category and language filter option sets from the loaded issue data.
  • Keep filters in sync as the issue set changes.
  • Show an issues fetch error state (currently only PR fetch errors are surfaced).

Non-functional requirements

  • Must be secure, tested, and documented.
  • Should be efficient and easy to review.

πŸ› οΈ Suggested execution

1. Fork the repo and create a branch

git checkout -b refactor/issuestab-dynamic-filters

2. Implement changes

  • Write/modify the relevant source: src/features/maintainers/components/issues/IssuesTab.tsx
  • Write comprehensive tests: src/features/maintainers/components/issues/IssuesTab.test.tsx
  • Add documentation: inline TSDoc
  • Include TSDoc doc comments
  • Validate security assumptions: escape derived label text

3. Test and commit

  • Run tests:
npm run test
  • Cover edge cases: no labels, many labels, issues fetch error
  • Include test output and security notes in the PR description.

Example commit message

refactor(issues): derive filters from data + issues error state

βœ… Acceptance criteria

  • Filters derived from loaded issues
  • Filters update with data changes
  • Issues fetch error surfaced
  • Tests cover dynamic filters + error

πŸ”’ Security notes

Escape label/language strings from external repos.

πŸ“‹ Guidelines

  • Minimum 95% test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

GrantFox OSSGrantFox open-source programMaybe RewardedGrantFox: potentially rewarded contributionOfficial CampaignGrantFox official campaign issueenhancementNew feature or requestfrontendFrontend / UI workrefactor

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions