Merged
Conversation
## 実装内容 ### エラーメッセージマッピング - apps/web/src/lib/format-authentication-error.ts を作成 - 6つのエラー型を日本語メッセージに変換 ### エラー表示UIコンポーネント - packages/react-components/src/ui/error-alert.tsx を作成 - tailwind-variantsでスタイリング(既存Buttonと同じ方針) - packages/react-components/src/ui/index.ts にエクスポート追加 ### Google OAuth認証のServer Action化 - apps/web/src/app/auth/login/_actions/sign-in-with-google.ts を作成 - auth.api.signInSocialを使用したServer Action実装 - @praha/byethrowのR.try()でエラーハンドリング - Better AuthのエラーをOAuthProviderError/NetworkErrorに分類 - Sentry送信 - apps/web/src/app/auth/login/_components/google-sign-in-button.tsx を更新 - クライアント側の直接呼び出しからServer Action使用に変更 - useActionStateでエラーハンドリング - ErrorAlertでエラー表示 ### SignOutButtonのエラー表示対応 - apps/web/src/app/dashboard/_components/sign-out-button.tsx を更新 - ErrorAlertを追加してエラーメッセージ表示 ## 関連 - Phase 1実装: #357 - 申し送り書: apps/web/docs/oauth-error-handling-handoff.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
🚀 Preview Environment Ready✅ プレビュー環境のセットアップが完了しました! 🗄️ DatabaseName: preview-pr359-auth 🌐 DeploymentPreview URL: https://next-lift-dv9ni2r9q-gntks-projects.vercel.app
|
Contributor
🗑️ Preview Environment Cleaned Up✅ プレビュー環境をクリーンアップしました! Database Name: preview-pr359-auth
|
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.
概要
OAuth認証エラーハンドリングのPhase 2を実装しました。Phase 1(#357)で確立したエラー型定義とSentry送信ロジックをもとに、UI側のエラーハンドリングを完成させました。
申し送り書(
apps/web/docs/oauth-error-handling-handoff.md)に従い、以下を実装:この変更による影響
アプリケーションを利用するユーザーへの影響
開発者への影響
ErrorAlertコンポーネントが追加され、他の機能でも使用可能になりましたCIでチェックできなかった項目
以下のエラーケースの手動テストが必要です:
補足
実装の詳細
エラーメッセージマッピング
apps/web/src/lib/format-authentication-error.tsErrorAlertコンポーネント
packages/react-components/src/ui/error-alert.tsxGoogle OAuth認証のServer Action化
apps/web/src/app/auth/login/_actions/sign-in-with-google.ts@praha/byethrowのR.try()でエラーハンドリング関連
apps/web/docs/oauth-error-handling-handoff.md