Repository navigation
TOEIバスTTSで「このバスは〜ゆきです」が毎回再生される不具合を修正 - #5996
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTOEI テーマの NEXT アナウンスにおいて、初回放送を示す ChangesTOEI NEXT 条件付き発話
🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
概要
TOEIテーマのバスTTSで、初回案内のはずの「このバスは、〜ゆきです。」(日本語) と "This bus is bound for ..." (英語) が
firstSpeech条件の外側に置かれており、各停車のたびに繰り返し再生されていた不具合を修正する。変更の種類
変更内容
src/hooks/useBusTTSText.tsのAPP_THEME.TOEIテンプレート (JA/EN) で、「このバスは、{boundForJa}ゆきです。」/ "This bus is bound for {boundForEn}." をfirstSpeechの三項演算子の中に移動。firstSpeech条件下にあり、TOEIだけ条件外だったのを揃えた。src/hooks/useBusTTSText.test.tsxに回帰テストを追加。TOEIテーマでfirstSpeech=falseのとき、JAに「このバスは」「ご利用くださいまして」、ENに "This bus is bound for"・"Thank you for using the" が含まれないことを検証する。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
リリースノート
バグ修正
テスト