Skip to content

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 🟢

@nuno-vieira nuno-vieira merged commit 745bf5a into develop Jul 14, 2025
9 of 11 checks passed
@nuno-vieira nuno-vieira deleted the add/option-to-configure-channel-item-mute--layout-style branch July 14, 2025 13:15
Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Jul 16, 2025
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.

3 participants