Skip to content

Comments

feat(ui): composer attachments#55

Merged
renefloor merged 9 commits intomain-design-systemfrom
feat/composer-attachments
Feb 20, 2026
Merged

feat(ui): composer attachments#55
renefloor merged 9 commits intomain-design-systemfrom
feat/composer-attachments

Conversation

@renefloor
Copy link
Collaborator

Submit a pull request

Linear: FLU-367

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

New:

  • MessageComposerAttachmentFile

Improved:

  • StreamMessageComposerInput
  • StreamMessageComposerInputTrailing
  • MessageComposerAttachmentMediaFile
  • StreamMediaBadge

Most notable changes:

The StreamMessageComposerInput now also accepts an alternative for the main body (the input field itself). This is used to replace the input while a voice recording is active.

The StreamMessageComposerInputTrailing is renamed to StreamBaseMessageComposerInputTrailing and no longer automatically changes state based on the text input, as it also needs to change state based on the attachment or other sdk specific rules. It also has more callback options for the mic button.

The MessageComposerAttachmentMediaFile now also accepts a widget as child if an image provider is not (easily) available.

@renefloor renefloor requested a review from a team as a code owner February 18, 2026 16:12
@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/composer-attachments

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 and usage tips.

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

❌ Patch coverage is 4.80769% with 99 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main-design-system@23e8af5). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...r/attachment/message_composer_file_attachment.dart 0.00% 29 Missing ⚠️
...chment/message_composer_media_file_attachment.dart 0.00% 24 Missing ⚠️
...sage_composer/message_composer_input_trailing.dart 0.00% 24 Missing ⚠️
...nents/message_composer/message_composer_input.dart 0.00% 10 Missing ⚠️
...r/lib/src/components/badge/stream_media_badge.dart 0.00% 8 Missing ⚠️
.../components/message_composer/message_composer.dart 0.00% 4 Missing ⚠️

❌ Your patch status has failed because the patch coverage (4.80%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@                  Coverage Diff                  @@
##             main-design-system      #55   +/-   ##
=====================================================
  Coverage                      ?   33.13%           
=====================================================
  Files                         ?      101           
  Lines                         ?     3030           
  Branches                      ?        0           
=====================================================
  Hits                          ?     1004           
  Misses                        ?     2026           
  Partials                      ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

controller: textEditingController,
isFloating: false,
inputTrailing: StreamMessageComposerInputTrailing(
inputTrailing: StreamBaseMessageComposerInputTrailing(
Copy link
Member

Choose a reason for hiding this comment

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

Should we name it StreamCore*?

@@ -19,10 +26,11 @@ Widget buildStreamMessageComposerPlayground(BuildContext context) {
child: StreamBaseMessageComposer(
Copy link
Member

@xsahil03x xsahil03x Feb 20, 2026

Choose a reason for hiding this comment

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

StreamCoreMessageComposer


import '../../../../stream_core_flutter.dart';

class MessageComposerAttachmentFile extends StatelessWidget {
Copy link
Member

Choose a reason for hiding this comment

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

should we append the attachment, MessageComposerFileAttachment maybe?

…mposer-attachments

# Conflicts:
#	packages/stream_core_flutter/lib/src/components.dart
@renefloor renefloor merged commit aa5d032 into main-design-system Feb 20, 2026
3 of 4 checks passed
@renefloor renefloor deleted the feat/composer-attachments branch February 20, 2026 14:01
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