Skip to content

Add utils.channelListConfig.channelItemMutedLayoutStyle #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

nuno-vieira
Copy link
Member

@nuno-vieira nuno-vieira commented Jul 11, 2025

🔗 Issue Links

https://linear.app/stream/issue/IOS-860

🎯 Goal

Add utils.channelListConfig.channelItemMutedLayoutStyle config option to change the channel list item muting view style.

📝 Summary

  • Adds utils.channelListConfig.channelItemMutedLayoutStyle to configure the mute view style
  • Disables channel pinning feature by default in the Demo App

🛠 Implementation

Mute styling:
There is quite a lot of inconsistency in our SDKs, where different platforms have at least 3 styles of rendering when a channel is muted. This PR provides a config so that you can switch easily between the 3. It does not make sense that every customer needs to rewrite the Channel list item whenever they want consistency in the muted styling.

Demo App Pinning:
A flag was added to the AppConfiguration to enable/disable the channel pinning feature. By default, it was enabled. This was a bit dangerous because it meant that while testing the DemoApp we were not using the SDK code, but only the Demo App code for the channel list item view. So we would not catch potential regressions.

🎨 Showcase

default afterChannelName topRightCorner
image image image

🧪 Manual Testing Notes

All scenarios are covered by snapshot tests.

The Demo App now follows the same style of Android Compose components. (Muted icon after the channel name)

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • Changelog is updated with new localization keys
  • New code is covered by unit tests
  • Documentation has been updated in the docs-content repo

@nuno-vieira nuno-vieira requested a review from a team as a code owner July 11, 2025 18:04
@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented Jul 11, 2025

SDK Size

title develop branch diff status
StreamChatSwiftUI 9.12 MB 9.12 MB +1 KB 🟢

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
65.1% 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