Closed ju-ki closed 3 weeks ago
このプルリクエストでは、ポストの詳細を取得するための新しいAPIエンドポイントを追加し、関連するテストを実装しました。また、Dockerfileの設定を更新し、PHPユニットテストの実行環境を変更しました。さらに、フロントエンドのコンポーネントを改良し、ユーザー登録機能を追加しました。これにより、ポスト管理の機能が強化され、ユーザーインターフェースが向上しました。
ファイル | 変更概要 |
---|---|
.docker/api/Dockerfile |
RUN a2enmod rewrite を追加し、Apacheのリライトモジュールを有効化。 |
Makefile |
php-unit ターゲットに --env=testing フラグを追加。 |
backend/app/Http/Controllers/API/PostController.php |
show メソッドを追加し、特定のポストの詳細を取得。 |
backend/app/Services/PostService.php |
getPostDetail メソッドを追加し、ポストの詳細を取得。 |
backend/routes/api.php |
apiResource を削除し、/posts/detail ルートを追加。 |
backend/tests/Feature/API/PostTest.php |
test_api_get_post_detail メソッドを追加し、ポスト詳細取得のテストを実装。 |
backend/tests/Unit/PostTest.php |
test_get_post_detail メソッドを追加し、ポスト詳細取得のユニットテストを実装。 |
frontend/src/components/Posts/Admin/PostList/index.tsx |
ポストタイトルをリンクに変更し、詳細ビューへのナビゲーションを追加。 |
frontend/src/hooks/api/auth/index.ts |
ユーザー登録用の新しいスキーマと register 関数を追加。 |
frontend/src/hooks/api/posts/index.ts |
fetchDetailPost 関数を追加し、特定のポストの詳細を取得。 |
frontend/src/pages/admin/post/[post_id].tsx |
ポスト詳細を表示する新しいコンポーネントを追加。 |
frontend/src/pages/register.tsx |
ユーザー登録フォームを実装。 |
Makefile
の変更がテスト環境の設定に関連している可能性があります。PostController
の新しいメソッドがこのPRの変更と関連しています。PostController
の更新がログイン機能の向上に関連している可能性があります。🐰 うさぎの歌 🐰
ポストの詳細、今見えるよ、
新しい道、リンクでつながる。
ユーザー登録、簡単に、
みんなの声、聞こえてくる。
さあ、楽しく、進もうよ! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
This PR is automatically created by GitHub Actions
Summary by CodeRabbit
新機能
バグ修正
ドキュメント