Skip to content

fix: use premiumFeatureList for super group and broadcast channel features#306

Open
OnestarLee wants to merge 2 commits into
mainfrom
claude/slack-session-UV8SB
Open

fix: use premiumFeatureList for super group and broadcast channel features#306
OnestarLee wants to merge 2 commits into
mainfrom
claude/slack-session-UV8SB

Conversation

@OnestarLee
Copy link
Copy Markdown
Collaborator

Summary

  • useAppFeatures hook에서 super group channel과 broadcast channel 기능 활성화 여부를 확인할 때 applicationAttributes 대신 premiumFeatureList를 사용하도록 수정
  • PremiumFeatures enum에 broadcast_channel 추가
  • 서버에서 application_attributes > allow_super_group_channel 플래그가 더 이상 사용되지 않고 premium_feature_list를 참조해야 함

Changes

  • packages/uikit-utils/src/sendbird/attrs.ts: PremiumFeatures enum에 broadcast_channel 추가
  • packages/uikit-chat-hooks/src/common/useAppFeatures.ts: broadcastChannelEnabledsuperGroupChannelEnabledpremiumFeatureList에서 확인하도록 변경
  • packages/uikit-chat-hooks/src/__tests__/common/useAppFeatures.test.ts: 테스트 업데이트

Test plan

  • 기존 테스트 통과 확인
  • super group channel 생성 기능이 dashboard 설정에 따라 올바르게 활성화/비활성화되는지 확인
  • broadcast channel 생성 기능이 dashboard 설정에 따라 올바르게 활성화/비활성화되는지 확인

Related

https://claude.ai/code/session_01MNFZvqQGYiF4sB6rBggoxo


Generated by Claude Code

claude added 2 commits May 18, 2026 06:56
…tures

The server deprecated application_attributes flags (allow_super_group_channel,
allow_broadcast_channel) in favor of premium_feature_list. This updates
useAppFeatures hook to check premiumFeatureList for super_group_channel and
broadcast_channel instead of applicationAttributes.

https://claude.ai/code/session_01MNFZvqQGYiF4sB6rBggoxo
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 10.84%. Comparing base (ddde569) to head (04be484).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #306    +/-   ##
========================================
  Coverage   10.84%   10.84%            
========================================
  Files         360      360            
  Lines        9084     9084            
  Branches     2578     2442   -136     
========================================
  Hits          985      985            
- Misses       8023     8098    +75     
+ Partials       76        1    -75     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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