You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: skip emoji parsing in text without shortcode delimiters - #1423
Skips shortcode parsing for text that contains no colon delimiter. Text with shortcode delimiters follows the existing parsing path.
Tests
Focused emoji tests passed (9 tests), covering ordinary text and shortcode processing. Type checks and lint passed.
Summary by CodeRabbit
Bug Fixes
Emoji conversion now leaves text without a shortcode unchanged. While editing such text, the entered content and caret position are preserved, preventing plain writing from being altered or the cursor from shifting when no emoji shortcode is present during normal text entry.
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: e247e776-d582-4ee2-be63-4525ec727900
Commits
Reviewing files that changed from the base of the PR and between c65a615 and c6c4a46.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
emojify and emojifyInput now return early when the input contains no colon. A unit test verifies that plain prose remains unchanged and that emojifyInput preserves the supplied caret position.
emojify returns the input unchanged when it contains no colon. emojifyInput returns the original text and caret without typed-prose mapping. The test checks both results for plain prose.
The targeted emoji optimization does not introduce an established regression or merge-blocking risk.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "perf: skip emoji parsing in text without shortcode delimiters" matches the main change. The raw summary says emojify and emojifyInput return early when input has no colon, so shortcode pars…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "perf: skip emoji parsing in text without shortcode delimiters" matches the main change. The raw summary says emojify and emojifyInput return early when input has no colon, so shortcode parsing is skipped for such text. The PR objectives describe the same change. The title is specific, concise, and follows a conventional commit style.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: af54ed57-5ebc-48e2-be9f-368e5f39cfad
Commits
Reviewing files that changed from the base of the PR and between c934501 and cb595ca.
Files selected for processing: 2
resources/js/lib/emoji.ts
tests/Unit/EmojiShortcodes.test.tsx
Limit details: You’ve used all 10 included reviews currently available.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Skips shortcode parsing for text that contains no colon delimiter. Text with shortcode delimiters follows the existing parsing path.
Tests
Focused emoji tests passed (9 tests), covering ordinary text and shortcode processing. Type checks and lint passed.
Summary by CodeRabbit