feat: add GIF picker with gifbox API integration#94
Open
sanasol wants to merge 2 commits intostoatchat:devfrom
Open
feat: add GIF picker with gifbox API integration#94sanasol wants to merge 2 commits intostoatchat:devfrom
sanasol wants to merge 2 commits intostoatchat:devfrom
Conversation
Adds a GIF picker panel alongside the existing emoji picker in the message composition area. Uses the gifbox microservice API for search, categories, and trending GIFs. Components: - Gifbox API client (search, categories, trending endpoints) - GifPicker composable (search bar, category grid, results grid) - GIF button in MessageField - GifPicker pane in ChannelScreen Signed-off-by: sanasol <[email protected]>
Adds giphy.com URL detection in message embeds to render GIFs inline instead of as generic website embeds. Also adds the missing Video field to the Embed model for proper GIF dimension extraction. Signed-off-by: sanasol <[email protected]>
This was referenced Mar 4, 2026
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.
Adds GIF support to the Android client: a GIF picker panel for sending GIFs, and inline GIF rendering for received GIF messages.
GIF Picker:
Gifbox.kt— API client for gifbox endpoints (search, categories, trending)GifPicker.kt— Composable with search bar, debounced search, category grid, and results gridic_gif_24dp.xml— GIF button iconMessageField.kt— Added GIF button next to emoji pickerChannelScreen.kt— AddedGifPickerpane type and renderingInline GIF rendering:
Messages.kt— AddedVideodata class andvideofield toEmbedmodelMessage.kt— Detect giphy.com URLs in embeds and render as inline images instead of generic website embeds. Extracts GIF URL from embed image/video fields or derives it from the giphy page URL. Skips message content rendering for GIF-only messages.Related: stoatchat/stoatchat#661, stoatchat/for-web#996
Tested and live on https://chat.sanhost.net — app at https://chat.sanhost.net/downloads/