Repository navigation
thqの新仕様に対応 - #4466
thqの新仕様に対応#4466
Conversation
Walkthrough朕、報ず。テレメトリ送信の型を判別可能に改め、payload に top-level の type を導入('log' | 'location_update')。log は内部に log.type: 'app' を持つ。テストは WebSocket 期待値とメッセージ文言を更新。シリアライズ時は top-level type を含めぬ方針に整えたり。 Changes
Sequence Diagram(s)sequenceDiagram
participant UI as UI/Caller
participant Hook as useTelemetrySender
participant Q as Queue
participant WS as WebSocket
UI->>Hook: sendLog(level, "Test log from the app")
Hook->>Hook: 構築 {type:'log', schemaVersion:2, log:{type:'app', level, message}}
Hook->>Q: エンキュー(必要時)
alt WS 準備完了
Q->>WS: シリアライズ送信(top-level type 無し)
else 未接続/バックプレッシャ
Q->>Q: 待機
end
sequenceDiagram
participant Device as Device State
participant Hook as useTelemetrySender
participant Q as Queue
participant WS as WebSocket
Device->>Hook: location_update(coords, gnss, radio, ...)
Hook->>Hook: 構築 {type:'location_update', schemaVersion:2, ...}
Hook->>Q: エンキュー(スロットリング適用)
alt WS 準備完了
Q->>WS: シリアライズ送信(top-level type 無し)
else 未接続
Q->>Q: 待機
end
Estimated code review effort🎯 3 (中程度) | ⏱️ ~20 分 Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
🔇 Additional comments (8)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit