通報管理画面の作成とロジックの作成: frontend - #228
Conversation
There was a problem hiding this comment.
Pull request overview
このPRは通報管理機能を実装するもので、管理者が学校内の投稿に対する通報を一覧表示し、管理できる画面とロジックを追加しています。また、プロフィール作成時のデフォルトアイコン処理の改善や、不要なimport文の削除も含まれています。
Changes:
- 通報管理画面のフロントエンド実装(コンポーネント、hooks、スタイル、ページネーション機能)
- バックエンドの通報データ取得ロジックの修正とDTO拡張
- プロフィール作成時にデフォルトアイコンをクラスパスリソースから読み込みS3にアップロードする機能
- 通報管理用のダミーデータ追加とMySQLデータの拡充
Reviewed changes
Copilot reviewed 26 out of 28 changed files in this pull request and generated 17 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/features/management/types/report.ts | 通報データの型定義と理由ラベルのマッピング |
| frontend/src/features/management/style/reportList.module.css | 通報一覧画面のスタイル定義 |
| frontend/src/features/management/hooks/useReports.ts | 通報データの取得と削除を行うReact Query hooks |
| frontend/src/features/management/components/reportTable/* | 通報テーブルコンポーネント群(テーブル、サマリー行、詳細行) |
| frontend/src/features/management/components/pagination/* | ページネーション機能コンポーネント |
| frontend/src/app/routes/app/management/report/reportList.tsx | 通報一覧のメインページコンポーネント |
| frontend/src/app/router.tsx | 通報管理画面のルート追加 |
| backend/src/main/java/com/example/backend/report/helper/ReportHelper.java | 通報データのDTO変換ロジック修正 |
| backend/src/main/java/com/example/backend/report/dto/ReportListResponse.java | 通報者情報フィールドの追加 |
| backend/src/main/java/com/example/backend/profile/service/impl/ProfileServiceImpl.java | デフォルトアイコンのクラスパスからの読み込み実装 |
| backend/src/main/java/com/example/backend/utils/fileUtil/helper/ByteArrayMultipartFile.java | byte配列をMultipartFileとして扱うヘルパークラス |
| backend/src/main/java/com/example/backend/accounts/repository/UserRepository.java | 未使用クエリメソッドの削除 |
| dockerfiles/db-mysql/init/1_ddl.sql | 新規ユーザーとグループデータの追加 |
| dockerfiles/db-mongo/init_db.js | 通報データ、投稿データ、プロフィールデータの追加 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4215b98 to
aae28f9
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 28 out of 30 changed files in this pull request and generated 9 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 28 out of 30 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
156e7a1 to
b6908b8
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 28 out of 30 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
hmuto111
left a comment
There was a problem hiding this comment.
コードはこのままでいいけど、総じてフロントエンドのコード上のコメントを消してほしいです。
There was a problem hiding this comment.
デフォルトICONバックエンドのリソースのところにもあるけどいいの?
対象イシュー
#226
イシューリンク
#226
イシュー番号(自動クローズ用)
close #226
やったこと
通報管理画面を作成
通報管理画面のロジックを作成
dbへのダミーデータを追加
profileの初期ユーザーiconをプロジェクト直下に配置し、それをもとにprofileを作成するように変更
やらないこと
できるようになること(ユーザ目線)
できなくなること(ユーザ目線)
動作確認
profile以外は動作確認済み
影響範囲
テスト
備考
profileへの変更を思い出したんで追加でやっておきました、デフォルトアイコンの位置はとりあえずアクセスしやすいんで直下で