feat(channels): Manage channel in the channel menu
- channel "..." menu: Manage channel between the separator and Copy link (Teams order)
- deviation: opens the channel in Teams on the web, Teams opens its own Manage channel page
- not built: Get email address (MT GET beta/channels/{id}/email unverified, NotFound creates an address = write), Leave channel (MT DELETE, write not verifiable read-only, dialog text not captured)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -1931,6 +1931,9 @@ fn channel_menu(
1931
1931
ChannelMenuItem::Unpin => state.set_channel_pinned(&action_id, false, cx),
1932
1932
ChannelMenuItem::Show => state.set_channel_shown(&action_id, true, cx),
1933
1933
ChannelMenuItem::Hide => state.set_channel_shown(&action_id, false, cx),
1934
ChannelMenuItem::ManageChannel => {
1935
state.manage_channel_in_browser(&action_id, cx)
1936
}
1934
1937
ChannelMenuItem::CopyLink => state.copy_channel_link(&action_id, cx),
1935
1938
ChannelMenuItem::Notifications => {}
1936
1939
});
@@ -1947,6 +1950,7 @@ fn channel_menu_icon(item: ChannelMenuItem) -> IconName {
1947
1950
ChannelMenuItem::Unpin => IconName::PinOff,
1948
1951
ChannelMenuItem::Show => IconName::Eye,
1949
1952
ChannelMenuItem::Hide => IconName::EyeOff,
1953
ChannelMenuItem::ManageChannel => IconName::Settings,
1950
1954
ChannelMenuItem::CopyLink => IconName::Link,
1951
1955
}
1952
1956
}
@@ -1931,6 +1931,9 @@ fn channel_menu(1931
ChannelMenuItem::Unpin => state.set_channel_pinned(&action_id, false, cx),1931
ChannelMenuItem::Unpin => state.set_channel_pinned(&action_id, false, cx),1932
ChannelMenuItem::Show => state.set_channel_shown(&action_id, true, cx),1932
ChannelMenuItem::Show => state.set_channel_shown(&action_id, true, cx),1933
ChannelMenuItem::Hide => state.set_channel_shown(&action_id, false, cx),1933
ChannelMenuItem::Hide => state.set_channel_shown(&action_id, false, cx),1934
ChannelMenuItem::ManageChannel => {1935
state.manage_channel_in_browser(&action_id, cx)1936
}1934
ChannelMenuItem::CopyLink => state.copy_channel_link(&action_id, cx),1937
ChannelMenuItem::CopyLink => state.copy_channel_link(&action_id, cx),1935
ChannelMenuItem::Notifications => {}1938
ChannelMenuItem::Notifications => {}1936
});1939
});@@ -1947,6 +1950,7 @@ fn channel_menu_icon(item: ChannelMenuItem) -> IconName {1947
ChannelMenuItem::Unpin => IconName::PinOff,1950
ChannelMenuItem::Unpin => IconName::PinOff,1948
ChannelMenuItem::Show => IconName::Eye,1951
ChannelMenuItem::Show => IconName::Eye,1949
ChannelMenuItem::Hide => IconName::EyeOff,1952
ChannelMenuItem::Hide => IconName::EyeOff,1953
ChannelMenuItem::ManageChannel => IconName::Settings,1950
ChannelMenuItem::CopyLink => IconName::Link,1954
ChannelMenuItem::CopyLink => IconName::Link,1951
}1955
}1952
}1956
}