プロフィール系ロジックの実装: frontend - #230
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
このPRは、フロントエンドのプロフィール機能を包括的に実装したものです。プロフィールの取得・編集、フォロー/フォロワー一覧、ユーザーの投稿・いいね・ブックマークの表示、パスワード更新、フィルタリングワード設定、ログアウト機能、投稿削除機能が含まれています。また、URL構造がnumerical userIdからshowUserId(文字列)へ移行され、デバウンス処理の改善とReact Queryの設定調整も行われています。
Changes:
- プロフィール関連の包括的な機能実装(取得、編集、フォロー管理、ユーザーコンテンツ表示)
- URL構造の改善(userId → showUserId)とルーティングの更新
- ユーザーインタラクション(フォロー、いいね、ブックマーク)のデバウンス処理改善とクリーンアップ追加
- 投稿削除機能の実装
- バックエンドのトランザクション管理と権限チェックの改善
Reviewed changes
Copilot reviewed 54 out of 56 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/types/user.ts | User型にuserIdを追加し、follow/followerフィールド名を統一 |
| frontend/src/lib/react-query.ts | グローバルthrowOnError設定を削除 |
| frontend/src/features/searchClassroom/types/SelectClassroom.ts | NoticeInfoItem型を削除(新しいNoticeType型に移行) |
| frontend/src/features/searchClassroom/components/noticeInfo.tsx | NoticeType型を使用するように更新、日付フォーマット追加 |
| frontend/src/features/search/components/searchHistory.tsx | PostBoxコンポーネントの新しいAPI(propsラッパー)に対応 |
| frontend/src/features/profile/types/setting.ts | パスワード編集とフィルターワードの型定義を追加 |
| frontend/src/features/profile/types/profileTypes.ts | フィールド名を更新、EditProfileForm型を追加 |
| frontend/src/features/profile/types/notice.ts | NoticeType型を新規作成 |
| frontend/src/features/profile/styles/*.module.css | プロフィール編集、パスワード編集のスタイル調整 |
| frontend/src/features/profile/layout/profileLayout.tsx | ダミーデータを削除し、実際のAPIからデータ取得、エラー処理追加 |
| frontend/src/features/profile/hooks/*.ts | プロフィール、フォロー、ユーザーコンテンツ、設定関連のカスタムフック群を実装 |
| frontend/src/features/profile/components/**/*.tsx | プロフィールカード、タブ、フォローカード、メニューアイテムコンポーネントの実装と更新 |
| frontend/src/features/post/hooks/*.ts | いいね、ブックマーク、投稿削除のフック実装と更新、デバウンスクリーンアップ追加 |
| frontend/src/components/ui/postBox/*.tsx | 投稿削除機能追加、propsラッパーAPIに変更 |
| frontend/src/components/ui/menu/menu.tsx | 設定ボタン追加、アイコン更新、ユーザー情報を使用したナビゲーション |
| frontend/src/app/routes/app/timeline.tsx | PostBoxの新しいAPI使用 |
| frontend/src/app/routes/app/searchClassroom.tsx | ダミーデータ削除、実際のNotice APIからデータ取得 |
| frontend/src/app/routes/app/profile/**/*.tsx | プロフィール、フォロー、編集ページの実装(ダミーデータから実API連携へ) |
| frontend/src/app/routes/app/detailPost.tsx | PostBoxの新しいAPI使用 |
| frontend/src/config/paths.ts | プロフィール関連パスをshowUserIdベースに変更 |
| frontend/src/features/auth/hooks/useUser.ts | userIdフィールド追加、フィールド名統一 |
| backend/.../ProfileServiceImpl.java | @transactional追加、showUserId更新処理追加、コードフォーマット改善 |
| backend/.../PostServiceImpl.java | 共有範囲が0(全体公開)の場合の権限チェックをスキップする処理追加 |
| backend/.../LikeServiceImpl.java | 共有範囲チェックの改善とコードフォーマット |
Comments suppressed due to low confidence (1)
frontend/src/features/profile/components/profileCard/otherProfileCard.tsx:23
- isTempFollowingの初期値がisFollowingから設定されていますが、isFollowingの値が後で変更されてもisTempFollowingは更新されません。これにより、プロフィールデータが更新された際にボタンの状態が実際のフォロー状態と不一致になる可能性があります。useEffectを使用してisFollowingの変更を監視し、isTempFollowingを同期させることを検討してください。
💡 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 55 out of 57 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
force-pushed
the
feature/#208
branch
from
February 16, 2026 08:35
0a1635c to
7bd616e
Compare
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.
対象イシュー
イシューリンク
#208
イシュー番号(自動クローズ用)
close #208
やったこと
やらないこと
できるようになること(ユーザ目線)
できなくなること(ユーザ目線)
動作確認
影響範囲
テスト
備考