Repository navigation
Revert Slack emoji alias expansion - #11843
Conversation
This reverts commit adc56a7.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe emoji shortcode catalog now uses GitHub shortcode data only. Workspace shortcode matching limits active and completed shortcode patterns to 40 characters. The IME replacement test now uses 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 |
Greptile SummaryThis PR is a full revert of #11837, removing the Slack (
Confidence Score: 5/5This is a clean revert to the prior GitHub-only shortcode catalog with no new logic introduced; safe to merge. The change removes the Slack/iamcal catalog and restores GitHub-only shortcodes. The regex cap drops from 64 to 40 characters, which is safe because the longest GitHub shortcodes are well within that bound (the removed 54-character entry was exclusively a Slack alias). All changed code paths have matching test coverage, cursor offsets in tests are arithmetically correct, and the inline regex literals are consistent between the two functions that use them. Files Needing Attention: No files require special attention.
|
| Filename | Overview |
|---|---|
| src/shared/emoji-shortcode-catalog.ts | Reverts to GitHub-only shortcode source; removes iamcal import, the GitHub/Slack merge logic, and the toEmojiShortcodeEntries helper. Logic is clean and consistent. |
| src/renderer/src/lib/workspace-emoji-shortcodes.ts | Removes named regex constants and inlines patterns; reduces max shortcode length from 64 to 40. GitHub catalog's longest shortcodes fall well within 40 characters. |
| src/renderer/src/lib/workspace-emoji-shortcodes.test.ts | Removes Slack-specific test cases (flag aliases, mostly_sunny, long Slack alias) that no longer apply with the GitHub-only catalog. |
| src/renderer/src/components/new-workspace/SmartWorkspaceNameField.ime-enter.test.tsx | Replaces :flag-kr: (Slack alias) with 😉 in the IME-enter test; cursor offset updated correctly from 16 to 13. |
Reviews (1): Last reviewed commit: "Revert "feat(workspaces): add Slack emoj..." | Re-trigger Greptile
…tablyai#11843) This reverts commit 2097f4f.
Summary
Revert #11837 in full. A narrower replacement will handle Korean flag entry without adding Slack-specific shortcode coverage.
Screenshots
No visual change.
Testing
AI Review Report
Verified this is an exact revert of #11837 and restores the previously tested GitHub shortcode catalog and parser behavior. No platform-specific shortcuts, paths, shell behavior, SSH behavior, or Electron integrations are changed.
Security Audit
No new input, command, path, auth, secret, dependency, network, or IPC behavior is introduced.
Notes
A separate focused PR will add Korean flag support using Orca current shortcode convention.