Repository navigation
Conversation
emre6943
force-pushed
the
feature/emoji-shortcode-autocomplete
branch
from
February 10, 2026 14:40
a6316f2 to
2a37a11
Compare
thewilloftheshadow
force-pushed
the
main
branch
from
February 15, 2026 18:46
bfc1ccb to
f92900f
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
Author
|
Fuck open source fuck this ! |
Author
|
I am closing tired of fixing merge conflicts for nothing |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds Slack-style
:emoji:shortcode autocomplete to the Control UI chat textarea.What it does
:followed by 2+ characters to trigger an emoji autocomplete popup:shortcode:text with the actual emoji characterImplementation
ui/src/ui/emoji-data.ts— Lightweight shortcode→emoji map (~200 entries, no external deps)ui/src/ui/components/emoji-autocomplete.ts— Lit component with keyboard navigation, filtering, and text replacementui/src/styles/components/emoji-autocomplete.css— Styled using existing CSS variables for theme consistencyui/src/ui/components/emoji-autocomplete.test.ts— Unit tests for filtering, selection, and edge casesui/src/ui/views/chat.ts— Integration into the chat textarea (input handler + keydown interception)ui/src/styles.css— CSS import addedDesign decisions
:before showing suggestions (reduces noise)--card,--border,--ring, etc.) for consistent themingexperimentalDecorators)Testing
pnpm build && pnpm check && pnpm testall greenGreptile Overview
Greptile Summary
This PR adds a Slack-style
:emoji:shortcode autocomplete to the chat compose textarea by introducing a small in-repo shortcode→emoji dataset (ui/src/ui/emoji-data.ts), a pure Lit render/logic module for filtering + keyboard handling (ui/src/ui/components/emoji-autocomplete.ts), styling for the popup (ui/src/styles/chat/emoji-autocomplete.cssimported fromui/src/styles/chat.css), and integrates it into the chat view (ui/src/ui/views/chat.ts) via@inputupdates and@keydowninterception.The overall integration approach fits the existing UI architecture (Lit render functions + state stored in the app render state), but there are a couple of correctness issues to address before merge: the hover behavior in the popup is currently a no-op despite being wired up, the documented “2+ chars after
:” trigger doesn’t match the implementation, and the autocomplete state is stored at module scope inchat.tswhich can leak/stale across session/tab changes.Confidence Score: 3/5
(2/5) Greptile learns from your feedback when you react with thumbs up/down!