-
Notifications
You must be signed in to change notification settings - Fork 0
katex-menu #79
katex-menu #79
Conversation
Reviewer's GuideThis PR overhauls the KaTeX menu UI to support an expandable header with drag gestures and new inline, newline, and delete actions; extends cursor and notation update logic (with nested-notation protection); refactors norm-selection mapping; ensures composition state is preserved in text updates; and applies minor configuration adjustments and cleanup. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @xanderlmk - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- convertNormSel() is not defined in scope (link)
Here's what I looked at during the review
- 🔴 General issues: 1 blocking issue, 1 other issue
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| .replace("sqrt", "\\\\sqrt").replace("pi", "\\\\pi") | ||
| .replace("ti", "\\\\ti").replace("div", "\\\\div").replace("a", "") | ||
| .replace("{x}", "{}").replace("b", "") | ||
| val replaced = sel.convertNormSel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): convertNormSel() is not defined in scope
Please implement String.convertNormSel() (using latexNormMap), or revert to the previous replace chain to prevent compilation errors.
| if (kt.sa is SelectedAnnotation.CursorChange) { | ||
| try { | ||
| textFieldValue = updateCursor(kt.sa, textFieldValue, text) { onValueChanged(it) } | ||
| } catch (e : IsInsideException) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): Missing onIdle() call after catching exception
onIdle() should be called in the catch block to ensure the selection state is reset after an exception.
No description provided.