Code-Society-Lab / Code-Society-Lab/matrix-directory
Add server-side search, filtering, sorting and pagination
- Dominant language
- Python
- Stars
- 5
- Forks
- 0
- Avg merge
- 3h
- Merged PRs (30d)
- 28
Description
### Description
Current filtering is suitable while the directory is small, but downloading every project and filtering in Vue won't scale indefinitely.
### Proposed API
```bash
GET /api/projects?q=moderation
&category=Utility
&sort=recent
&page=1
&page_size=24
```
### Acceptance criteria
- query search
- category filtering
- pagination
- deterministic sorting
- total result count
- frontend URL reflects filters
Contributor guide
Research direction
Start by locating the existing project directory endpoint and the Vue filtering implementation, then trace how project results are currently loaded. Add the documented query, category, sort, pagination, and total-count behavior, and ensure the frontend URL reflects those filters; done means all listed acceptance criteria work together.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend-api-design, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100