Skip to content

fix: my_profile API が 404 の場合に登録ページへリダイレクト#603

Open
takaishi wants to merge 3 commits into
mainfrom
redirect-register-profile-page-when-profile-is-empty
Open

fix: my_profile API が 404 の場合に登録ページへリダイレクト#603
takaishi wants to merge 3 commits into
mainfrom
redirect-register-profile-page-when-profile-is-empty

Conversation

@takaishi

Copy link
Copy Markdown
Contributor

Summary

  • my_profile API が 404 を返した際に、dreamkast の ${dkUrl}/${eventAbbr}/registrationwindow.location.href で遷移するように変更
  • 対象は useInitSetup フックと pages/[eventAbbr]/ui/info ページ(どちらも useGetApiV1ByEventAbbrMyProfileQuery を呼び出している)
  • useInitSetup.spec.tsx に 404 応答時にリダイレクト URL が組み立てられることを確認するテストを追加

Test plan

  • yarn test src/components/hooks/__tests__/useInitSetup.spec.tsx が通ること
  • プロフィール未登録ユーザーで /${eventAbbr}/ui および /${eventAbbr}/ui/info にアクセスし、${dkUrl}/${eventAbbr}/registration に遷移すること
  • プロフィール登録済みユーザーで上記ページにアクセスしてもリダイレクトされないこと

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gitops-for-cloudnativedays gitops-for-cloudnativedays Bot added the reviewapps Build ReviewApp environment automatically if this label is granted label May 14, 2026
gitops-for-cloudnativedays Bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request May 14, 2026
commit: cloudnativedaysjp/dreamkast-ui@4fc4463
action URL: https://github.com/cloudnativedaysjp/dreamkast-ui/actions/runs/25837020449

Co-authored-by: gitops-for-cloudnativedays[bot] <113280573+gitops-for-cloudnativedays[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

gitops-for-cloudnativedays Bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request May 14, 2026
commit: cloudnativedaysjp/dreamkast-ui@e9bd86c
action URL: https://github.com/cloudnativedaysjp/dreamkast-ui/actions/runs/25837253331

Co-authored-by: gitops-for-cloudnativedays[bot] <113280573+gitops-for-cloudnativedays[bot]@users.noreply.github.com>
gitops-for-cloudnativedays Bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request May 14, 2026
commit: cloudnativedaysjp/dreamkast-ui@2f8d713
action URL: https://github.com/cloudnativedaysjp/dreamkast-ui/actions/runs/25837403864

Co-authored-by: gitops-for-cloudnativedays[bot] <113280573+gitops-for-cloudnativedays[bot]@users.noreply.github.com>
@github-actions github-actions Bot removed the reviewapps Build ReviewApp environment automatically if this label is granted label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant