fix(message-parser): dynamic ASTNode type from Types schema#39189
fix(message-parser): dynamic ASTNode type from Types schema#39189Harshit2405-2004 wants to merge 1 commit intoRocketChat:developfrom
Conversation
Closes RocketChat#39057 - Adds missing Types dictionary entries (TIMESTAMP, BLOCKQUOTE, KATEX, INLINE_KATEX) - Maps ASTNode globally to Types[keyof Types] to prevent drift
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 283fb14 The changes in this PR will be included in the next version bump. This PR includes changesets to release 42 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📜 Recent review details⏰ 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 context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (3)📓 Common learnings📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
🔇 Additional comments (4)
WalkthroughThis fix addresses incomplete ASTNode type definitions in the message parser. Missing node types (TIMESTAMP, BLOCKQUOTE, KATEX, INLINE_KATEX) are added to the Types mapping, and ASTNode is refactored from an explicit union to a dynamic lookup using Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|
Closing scope too narrow, consolidating. |
|
Hey @Harshit2405-2004, thank you for your contribution! 🙏 Your changes have been consolidated into #39853, where we merged all message-parser PRs together to make it easier to test and validate everything as a single unit. That PR has already been merged into |
Closes #39057 and Fixes #39057 by deriving the ASTNode union strictly from the Types dictionary interface. Also populates the missing Types mappings for Timestamp, Blockquote, KaTeX, and InlineKaTeX.
Summary by CodeRabbit