Repository navigation
canary - #6649
Merged
Merged
canary#6649
Conversation
* タッチ不可モード中は画面横スワイプと戻る操作による前画面への遷移も防止 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01V3xe2qbYY2puA7zW3MzZqh * タッチ不可モードの有効化通知にスワイプと戻る操作の抑止を追記しテストのモック後始末を追加 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01V3xe2qbYY2puA7zW3MzZqh --------- Co-authored-by: Claude <[email protected]>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
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.
概要
変更の種類
変更内容
MainStackの Main 画面にgestureEnabled: !untouchableModeEnabledを設定し、iOS の画面端スワイプバックをネイティブごと無効化。usePreventBackInUntouchableModeを追加し、Android の戻るキー・戻るジェスチャーをBackHandlerで握りつぶす。useIsFocused()でゲートしているため、上に積まれた画面からは通常どおり戻れる。Main.tsxのレンダーレス副作用ホストMainScreenEffectsにFxPreventBackInUntouchableModeとして、iOS では発火しないため Android 限定でマウント。untouchableModeEnabledAtom(派生 atom)を追加し、MainStackが他のチューニング値の更新で再レンダーされないようにした。untouchableModeDescription/untouchableModeEnabledNoticeを、タップに加えて画面端スワイプ・戻る操作も無効になる旨へ更新。usePreventBackInUntouchableModeとMainStack(gestureEnabledの切り替え)のユニットテストを追加。テスト
origin/dev(5967aef) をチェックアウトしてローカルで実行し、すべて成功することを確認しました。lint:
Checked 629 filesエラーなしtest: 217 suites / 2286 tests すべて成功
typecheck: エラーなし
npm run lintが通ることnpm testが通ることnpm run typecheckが通ることリグレッションリスク
gestureEnabledは!untouchableModeEnabledで切り替わり、OFF 時にtrueになることをMainStack.test.tsxで検証済み。useIsFocused()でゲートしているため影響を受けない。フォーカス喪失時にBackHandlerを購読しないことをテストで検証済み。beforeRemove/usePreventRemoveによる一律ブロックは採用していないため、ディープリンクやクイックアクション由来のCommonActions.resetなどプログラムによる遷移は従来どおり動作する。Main のbeforeRemoveによるresetMainStateもpreventDefaultしていないため既存挙動のまま。BackHandlerの購読はアンマウント時にsubscription.remove()することをテストで検証済み。dev到達前にレビュー済みで、製品コードの変更範囲はsrc/hooks/usePreventBackInUntouchableMode.ts/src/stacks/MainStack.tsx/src/screens/Main.tsx/src/store/atoms/tuning.tsと翻訳ファイルに限定される。関連Issue
スクリーンショット(任意)
Generated by Claude Code