refactor: improve type safety in invite and state services#327
refactor: improve type safety in invite and state services#327
Conversation
WalkthroughThis PR enhances type safety and adds domain extraction capabilities to PersistentEventBase by introducing generic type parameterization, a new PduTypeWithoutStateKey type, refined State interface with narrowed Map methods, and a new stateKeyDomain getter property. The invite service is updated to use the new stateKeyDomain directly instead of parsing state_key manually. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-10-10T22:18:31.655ZApplied to files:
🧬 Code graph analysis (4)packages/room/src/authorizartion-rules/errors.ts (1)
packages/room/src/authorizartion-rules/rules.ts (1)
packages/federation-sdk/src/services/state.service.ts (1)
packages/room/src/manager/event-wrapper.ts (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (10)
✏️ Tip: You can disable this entire section by setting 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 |
74d4b2b to
a042db4
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #327 +/- ##
==========================================
- Coverage 52.29% 51.97% -0.33%
==========================================
Files 97 97
Lines 13153 13161 +8
==========================================
- Hits 6878 6840 -38
- Misses 6275 6321 +46 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.