fix(shell): validate taos:activate-window event shape (#585 nit)#589
Conversation
…ting Replace the blind CustomEvent cast with a runtime check that windowId is a string, and add the stable setActiveWindowId to the effect deps. Addresses the kilo nits on #585 (no behaviour change — the cast was already guarded).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single event listener in ChangesWindow Activation Event Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Tidy for the kilo review nits on #585. Replaces the blind
CustomEvent<{windowId?}>cast in thetaos:activate-windowhandler with a runtime check thatdetail.windowIdis a string, and adds the (stable)setActiveWindowIdto the effect deps. No behaviour change — the original cast was already guarded by optional chaining + anif. Build clean.Summary by CodeRabbit