Skip to content

Conversation

@gpunto
Copy link
Contributor

@gpunto gpunto commented Feb 4, 2026

🎯 Goal

Continuing with the message content structural changes started in #6119 and #6124, this time for Giphy attachments. This PR updates the Giphy message design and integrates it with the component factory pattern.

🛠 Implementation details

  • Use component factory when rendering Giphy attachments in messages
  • Update Giphy message design with new styling

🎨 UI Changes

Before After
Screenshot_20260204_121442 Screenshot_20260204_121330
Screenshot_20260204_121451 Screenshot_20260204_121647

🧪 Testing

Can be checked in the sample app by sending Giphy attachments.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

SDK Size Comparison 📏

SDK Before After Difference Status
stream-chat-android-client 5.26 MB 5.26 MB 0.00 MB 🟢
stream-chat-android-offline 5.48 MB 5.48 MB 0.00 MB 🟢
stream-chat-android-ui-components 10.63 MB 10.62 MB -0.01 MB 🚀
stream-chat-android-compose 12.84 MB 11.69 MB -1.16 MB 🚀

@gpunto gpunto changed the title Use component factory when rendering Giphy attachments in messages Use component factory for Giphy attachments and update design Feb 4, 2026
@gpunto gpunto marked this pull request as ready for review February 4, 2026 13:44
@gpunto gpunto requested a review from a team as a code owner February 4, 2026 13:44
.fillMaxWidth()
.height(1.dp)
.background(color = ChatTheme.colors.borders),
ChatTheme.componentFactory.GiphyAttachmentContent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: Are we not providing the whole Giphy message as configurable via the component factory (with the Only visible to you and the buttons)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good question. I didn't touch it because today we don't have it, but probably we should. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually nevermind, we have MessageGiphyContent in the factory

)
}

@Composable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add the missing KDocs on public API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ops, of course

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
50.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

2 participants