Skip to content

Revert Slack emoji alias expansion - #11843

Merged
nwparker merged 1 commit into
stablyai:mainfrom
nwparker:revert-slack-emoji-aliases
Aug 1, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
nwparker:revert-slack-emoji-aliases

Conversation

@nwparker

@nwparker nwparker commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Revert #11837 in full. A narrower replacement will handle Korean flag entry without adding Slack-specific shortcode coverage.

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Focused workspace emoji tests (14 passed)

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.

@nwparker
nwparker merged commit 3c05e03 into stablyai:main Aug 1, 2026
41 checks passed
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 958a7b5d-dec5-49f8-8ec4-b90180aa5897

📥 Commits

Reviewing files that changed from the base of the PR and between adc56a7 and e65b74c.

📒 Files selected for processing (4)
  • src/renderer/src/components/new-workspace/SmartWorkspaceNameField.ime-enter.test.tsx
  • src/renderer/src/lib/workspace-emoji-shortcodes.test.ts
  • src/renderer/src/lib/workspace-emoji-shortcodes.ts
  • src/shared/emoji-shortcode-catalog.ts

📝 Walkthrough

Walkthrough

The 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 :wink: and expects 😉. Tests for Slack-specific aliases and replacement behavior were removed.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 1, 2026

Copy link
Copy Markdown

Greptile Summary

This PR is a full revert of #11837, removing the Slack (iamcal) shortcode catalog added in that PR and restoring GitHub-only shortcodes from emojibase-data/en/shortcodes/github.json. It also reduces the regex shortcode-length cap from 64 to 40 characters, removes the two named regex constants in favour of inline literals, and drops the helper function toEmojiShortcodeEntries.

  • emoji-shortcode-catalog.ts: Drops the iamcal import and the GitHub/Slack merge logic; STANDARD_EMOJI_SHORTCODE_ENTRIES now builds directly from the GitHub JSON, and PRIMARY_SHORTCODE_BY_EMOJI stays aligned with the same source.
  • workspace-emoji-shortcodes.ts: Removes the named ACTIVE_SHORTCODE_PATTERN/COMPLETED_SHORTCODE_PATTERN constants and inlines the regex with the shorter {1,40} bound.
  • Tests: Drops Slack-specific test cases (flag aliases, mostly_sunny, long Slack alias) and updates the IME-enter component test to use :wink: instead of :flag-kr:.

Confidence Score: 5/5

This 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.

Important Files Changed

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

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant