Skip to content

通報管理画面の作成とロジックの作成: frontend - #228

Merged
hmuto111 merged 33 commits into
developfrom
feature/#226
Feb 16, 2026
Merged

通報管理画面の作成とロジックの作成: frontend#228
hmuto111 merged 33 commits into
developfrom
feature/#226

Conversation

@productD5

Copy link
Copy Markdown

対象イシュー

#226

イシューリンク

#226

イシュー番号(自動クローズ用)

close #226

やったこと

通報管理画面を作成
通報管理画面のロジックを作成
dbへのダミーデータを追加
profileの初期ユーザーiconをプロジェクト直下に配置し、それをもとにprofileを作成するように変更

  • このプルリクで何をしたのか?

やらないこと

  • このプルリクでやらないことは何か?(あれば。無いなら「無し」で OK)(やらない場合は、いつやるのかを明記する。)

できるようになること(ユーザ目線)

  • 何ができるようになるのか?(あれば。無いなら「無し」で OK)

できなくなること(ユーザ目線)

  • 何ができなくなるのか?(あれば。無いなら「無し」で OK)

動作確認

profile以外は動作確認済み

  • どのような動作確認を行ったのか? 結果はどうか? そもそも行ったのか?

影響範囲

  • ない場合は「無し」

テスト

  • ない場合は「無し」

備考

profileへの変更を思い出したんで追加でやっておきました、デフォルトアイコンの位置はとりあえずアクセスしやすいんで直下で

  • レビュワーへの参考情報(実装上の懸念点や注意点などあれば記載)

@productD5 productD5 self-assigned this Feb 15, 2026
@productD5 productD5 added the frontend New feature of frontend frontend related label Feb 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread frontend/src/app/routes/app/management/report/reportList.tsx Outdated
Comment thread frontend/src/features/management/hooks/useReports.ts Outdated
Comment thread frontend/src/app/routes/app/management/report/reportList.tsx Outdated
Comment thread dockerfiles/db-mysql/init/1_ddl.sql Outdated
Comment thread frontend/src/features/management/hooks/useReports.ts Outdated
Comment thread frontend/src/app/routes/app/management/report/reportList.tsx
Comment thread dockerfiles/db-mysql/init/1_ddl.sql
Comment thread frontend/src/app/routes/app/management/report/reportList.tsx

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread frontend/src/features/management/hooks/useReports.ts
Comment thread frontend/src/app/routes/app/management/report/reportList.tsx
Comment thread frontend/src/app/routes/app/management/report/reportList.tsx
Comment thread dockerfiles/db-mongo/init_db.js
@hmuto111 hmuto111 changed the title 通報管理画面の作成とロジックの作成 Feature/#226 通報管理画面の作成とロジックの作成: frontend Feb 16, 2026
@productD5
productD5 requested a review from Copilot February 16, 2026 08:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread frontend/src/app/routes/app/management/report/reportList.tsx
Comment thread dockerfiles/db-mysql/init/1_ddl.sql

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread frontend/src/app/router.tsx
Comment thread dockerfiles/db-mysql/init/1_ddl.sql

@hmuto111 hmuto111 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コードはこのままでいいけど、総じてフロントエンドのコード上のコメントを消してほしいです。

Comment thread defaulticon.png Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デフォルトICONバックエンドのリソースのところにもあるけどいいの?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

リソースのとこにあるのが本体だわ、直下の消しとく

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントは癖で書いたやつ結構あるから消しとく

@productD5
productD5 requested a review from hmuto111 February 16, 2026 13:26

@hmuto111 hmuto111 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

マージします

@hmuto111
hmuto111 merged commit d5c8060 into develop Feb 16, 2026
@hmuto111
hmuto111 deleted the feature/#226 branch February 16, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend New feature of frontend frontend related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants