アカウント管理画面のロジックを実装: frontend - #238
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
アカウント管理機能(登録・更新・CSV取込)に必要なフロントのロジック/UIと、バックエンドの詳細取得API等を追加するPRです。
Changes:
- フロント:アカウント一覧/詳細、登録(手入力・CSV)/更新のAPI連携とUI改善、学校管理者専用ルート追加
- バック:アカウント詳細取得サービス/エンドポイント追加、CSV日付フォーマット調整、CSVアップロード判定改善
Reviewed changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/tsconfig.app.json | TSコンパイル対象のinclude設定を変更 |
| frontend/src/features/management/types/account.ts | アカウント型定義の更新・リクエストDTO型追加 |
| frontend/src/features/management/style/accountRegister.module.css | 登録画面ヘッダレイアウト調整 |
| frontend/src/features/management/style/accountImport.module.css | 取込画面の注意表示スタイル追加 |
| frontend/src/features/management/hooks/useAccounts.ts | 一覧取得をAPI化、クライアント側フィルタ、(別途)単体取得追加 |
| frontend/src/features/management/hooks/useAccountMutations.ts | 作成/更新/CSV取込のMutation群を追加 |
| frontend/src/features/management/hooks/useAccount.ts | 詳細取得をAPI化(/accounts/detail) |
| frontend/src/features/management/components/csvUploadField/csvUploadField.tsx | テンプレDL UI追加・文言改善 |
| frontend/src/features/management/components/csvUploadField/csvUploadField.module.css | テンプレDL UIのスタイル追加・レスポンシブ調整 |
| frontend/src/features/management/components/accountTable/accountTable.tsx | authority/停止フラグの表現変更に追従 |
| frontend/src/features/management/components/accountRegisterTable/accountRegisterTable.tsx | 登録プレビューにID列追加、不要列削除 |
| frontend/src/features/management/components/accountRegisterTable/accountRegisterTable.module.css | テーブル固定レイアウト化・列幅再定義 |
| frontend/src/features/management/components/accountRegisterForm/teacherAccountRegisterForm.tsx | 教師登録フォーム新規追加(分割) |
| frontend/src/features/management/components/accountRegisterForm/studentAccountRegisterForm.tsx | 生徒登録フォーム新規追加(分割) |
| frontend/src/features/management/components/accountRegisterForm/accountRegisterForm.tsx | フォーム実装を分割しre-exportに変更 |
| frontend/src/features/management/components/accountEditForm/accountEditForm.tsx | 編集フォームを外部submitに委譲、pending時disable対応 |
| frontend/src/features/management/components/accountEditForm/accountEditForm.module.css | fieldsetレイアウト追加・transition整形 |
| frontend/src/features/auth/components/adminProtectedRoute.tsx | 学校管理者専用の保護ルート追加 |
| frontend/src/app/routes/app/management/account/accountRegister.tsx | 登録画面にAPI登録処理・権限制御・pending制御追加 |
| frontend/src/app/routes/app/management/account/accountList.tsx | 一覧画面にロール反映、spinner/エラーハンドリング追加 |
| frontend/src/app/routes/app/management/account/accountImport.tsx | CSV取込をAPI連携、注意文言追加、pending制御 |
| frontend/src/app/routes/app/management/account/accountEdit.tsx | 更新API連携、削除ボタンの権限制御・pending制御 |
| frontend/src/app/router.tsx | 学校情報編集をADMIN専用ルートに分離 |
| backend/src/main/java/com/example/backend/utils/fileUtil/validation/DocumentFileValidation.java | CSV判定の揺れ対策でtext/plain許可追加 |
| backend/src/main/java/com/example/backend/accounts/service/impl/AccountServiceImpl.java | アカウント詳細取得のサービス実装追加 |
| backend/src/main/java/com/example/backend/accounts/service/AccountService.java | アカウント詳細取得インターフェイス追加 |
| backend/src/main/java/com/example/backend/accounts/dto/ReadCSVFileStudentCreateRequest.java | 日付のJsonFormat付与 |
| backend/src/main/java/com/example/backend/accounts/dto/AccountDetailResponse.java | 詳細レスポンスDTO追加 |
| backend/src/main/java/com/example/backend/accounts/controller/StudentController.java | CSV取込APIのレスポンス変更・ログ追加 |
| backend/src/main/java/com/example/backend/accounts/controller/AllAccountsController.java | /detailエンドポイント追加、/allの組み立て調整 |
💡 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 30 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.
productD5
commented
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
対象イシュー
#233
イシューリンク
#233
イシュー番号(自動クローズ用)
close #233
やったこと
フロントエンド
アカウント管理で行うアカウントの登録、作成、削除、更新、ファイルを使ったアカウント登録を行えるようにロジックを作成
バックエンドの処理に合わせてtypeの変更・追加、またそれに伴うUIの変更
アカウント管理系のUIの一部改善
学校管理者用のrouterを作成
バックエンド
フロントのアカウント管理画面の処理に合わせてアカウントの詳細取得用関数を作成
フロントの送信形式に合わせてdtoを一部変更
やらないこと
できるようになること(ユーザ目線)
できなくなること(ユーザ目線)
動作確認
一連の動作を確認済み
影響範囲
テスト
備考