Admin reports: filter by reason and sort order
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- mongodb, nodejs, react, typescript
- 領域
- full-stack
調査の方向性
Start with useAdminReports(status) in apps/web/src/pages/AdminPage.tsx and the admin reports handler in apps/api/src/controllers/adminController.ts, then read the Report model in apps/api/src/models/Report.ts to see which fields can be filtered. Add reason and order query parameters next to status, validated with Zod, keeping cursor paging. Done means invalid values return 400, filters combine, admin-only access still passes existing tests, and each filter has a test.
索引モデルが issue の本文から書いたものです。
説明
Difficulty: Intermediate · Estimated size: 1 day
Context
The Admin page lists reports on posts and already filters by status (see useAdminReports(status) in AdminPage.tsx). With many reports it is still hard to find the ones that need attention.
Problem or goal
Let admins also filter by reason and choose the sort order (newest or oldest first).
Suggested approach
- API: accept
reasonandorderquery parameters (keepstatus) on the admin reports endpoint, validated with Zod, and keep cursor paging. - Web: a small filter bar on the Reports tab that remembers the choice for the session, with a clear empty state.
Where to look
apps/api/src/controllers/adminController.tsapps/api/src/models/Report.tsapps/web/src/pages/AdminPage.tsx
Acceptance criteria
- Invalid filter values return 400.
- Filters combine correctly.
- Only admins can call it (existing tests keep passing).
- A test for each filter.
How to work on it
- Comment here to claim it, so two people do not do the same work.
- Fork the repo and branch from
main(feat/short-nameorfix/short-name). Setup steps are in docs/DEVELOPMENT.md. - Keep the change focused and add tests for backend logic.
- Run
npm run typecheck,npm testandnpm run lintandnpm run formatbefore opening the pull request. - Use a Conventional Commits title (for example
feat(web): add bookmarks). More in CONTRIBUTING.md.
Stuck? Ask in this issue. Questions are welcome.
Generated by Claude Code
- 主要言語
- TypeScript
- スター
- 6
- フォーク
- 6
- 平均マージ
- 1時間 59分
- マージ済み PR(30日)
- 59
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Haseeb-MernStack/commune のほかの issue
-
enhancement good first issue web
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Haseeb-MernStack/commune#141 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Haseeb-MernStack/commune#138 ·
メンテナーはふだん 1 日以内に返信
-
api good first issue tests
難易度 2/5 半日 初心者へのやさしさ 72/100
Haseeb-MernStack/commune#132 ·
メンテナーはふだん 1 日以内に返信
-
ci good first issue tests
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Haseeb-MernStack/commune#133 ·
メンテナーはふだん 1 日以内に返信
-
accessibility good first issue web
難易度 2/5 半日 初心者へのやさしさ 74/100
Haseeb-MernStack/commune#117 ·
メンテナーはふだん 1 日以内に返信
Haseeb-MernStack/commune の issue をすべて見る
似ている issue
-
[UI] Guard webApis against undefined window in SSR environments対応中かも @madhavzanwar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
headroomlabs-ai/headroom#4992 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
paperclipai/paperclip#22575 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
lingdojo/kana-dojo#34502 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
nikhilb2/simple_invoicing#935 ·