Skip to content

ウォームスタートのクイックアクション遷移時の不具合を修正 - #5566

Merged
TinyKitten merged 2 commits into
devfrom
fix/quick-action-orientation-unlock
Mar 10, 2026
Merged

TinyKitten merged 2 commits into
devfrom
fix/quick-action-orientation-unlock

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Mar 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • ウォームスタートでクイックアクションからSelectLine画面に遷移する際、Main画面で適用されたランドスケープロックが残ったままになる問題を修正
  • navigateToSelectLine 内でナビゲーション前に ScreenOrientation.unlockAsync() を呼び出すことで画面回転ロックを解除

Test plan

  • Main画面(ランドスケープ)表示中にクイックアクションでSelectLineに遷移し、画面が縦向きに戻ることを確認
  • コールドスタートからのクイックアクション起動が従来通り動作することを確認

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • 改善
    • クイックアクション実行時に画面の向きが自動でロック解除されるようになりました。
    • クイックアクションから遷移する際、前の画面履歴をクリアして選択画面に戻る(スタックをリセットする)動作に変更され、戻る操作の挙動が一貫化しました。

@github-actions github-actions Bot added the react label Mar 10, 2026
@coderabbitai

coderabbitai Bot commented Mar 10, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4eb34731-eb64-4731-8afc-f51ff6c51406

📥 Commits

Reviewing files that changed from the base of the PR and between e38fd40 and 21ffa7d.

📒 Files selected for processing (1)
  • src/hooks/useQuickActions.ts

📝 Walkthrough

Walkthrough

src/hooks/useQuickActions.tsでexpo-screen-orientationをインポートし、navigateToSelectLine内でScreenOrientation.unlockAsync()を呼び出すように変更。ナビゲーションはCommonActions.navigateからCommonActions.resetへ置き換えられ、エラーはログ出力されます。

Changes

Cohort / File(s) Summary
Quick actions hook
src/hooks/useQuickActions.ts
expo-screen-orientationをインポートし、navigateToSelectLineでScreenOrientation.unlockAsync()を呼び出す副作用を追加。ナビゲーションをCommonActions.navigateからCommonActions.reset(MainStack -> SelectLine単一ルートにリセット)へ変更。エラーログを追加。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐇🌿
画面の鎖をそっと解いて、
さあ跳ねるよ、SelectLineへ。
小さな一手で道がすっきり、
これからも物語は続くよ。

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトルは変更内容の主要な目的を正確に説明しています。ウォームスタートのクイックアクション遷移時に画面回転ロックを解除するという、このPRの中心的な目的を明確に示しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/quick-action-orientation-unlock

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten TinyKitten self-assigned this Mar 10, 2026
@TinyKitten TinyKitten changed the title ウォームスタートのクイックアクション遷移時に画面回転ロックを解除する ウォームスタートのクイックアクション遷移時の不具合を修正 Mar 10, 2026
@TinyKitten
TinyKitten merged commit 3df0b91 into dev Mar 10, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the fix/quick-action-orientation-unlock branch March 10, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant