feat(channels): search button in the channel header opens Find in channel
- icon button next to channel details, as in Teams web - Meet now in the channel header waits on Daniel (it posts for every member) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -3668,6 +3668,7 @@ impl ConversationView {
3668
3668
.children(inline_tabs)
3669
3669
.children(stack)
3670
3670
.children(call_controls)
3671
.children(self.channel_find_button(cx))
3671
3672
.children(self.channel_details_button(cx))
3672
3673
.children(self.pop_in_button(current))
3673
3674
}
@@ -3668,6 +3668,7 @@ impl ConversationView {3668
.children(inline_tabs)3668
.children(inline_tabs)3669
.children(stack)3669
.children(stack)3670
.children(call_controls)3670
.children(call_controls)3671
.children(self.channel_find_button(cx))3671
.children(self.channel_details_button(cx))3672
.children(self.channel_details_button(cx))3672
.children(self.pop_in_button(current))3673
.children(self.pop_in_button(current))3673
}3674
}@@ -9,6 +9,7 @@ use teams_core::FileKind;
9
9
10
10
use super::{ChannelPane, ConversationView};
11
11
use crate::app_state::Selection;
12
use crate::find_in_chat::FIND_IN_CHANNEL;
12
13
use crate::channel_files::{SharedContent, SharedItem};
13
14
use crate::format;
14
15
use crate::rows::reply_excerpt;
@@ -127,6 +128,20 @@ impl ConversationView {
127
128
}
128
129
}
129
130
131
pub(super) fn channel_find_button(&self, cx: &mut Context<Self>) -> Option<AnyElement> {
132
self.details_channel_id()?;
133
Some(
134
Button::new("channel-find")
135
.icon(IconName::Search)
136
.ghost()
137
.size(px(BUTTON_SIZE))
138
.rounded(px(8.))
139
.tooltip(FIND_IN_CHANNEL)
140
.on_click(cx.listener(|this, _, window, cx| this.open_find(window, cx)))
141
.into_any_element(),
142
)
143
}
144
130
145
pub(super) fn channel_details_button(&self, cx: &mut Context<Self>) -> Option<AnyElement> {
131
146
self.details_channel_id()?;
132
147
let open = self.channel_details_open;
@@ -9,6 +9,7 @@ use teams_core::FileKind;9
9
10
use super::{ChannelPane, ConversationView};10
use super::{ChannelPane, ConversationView};11
use crate::app_state::Selection;11
use crate::app_state::Selection;12
use crate::find_in_chat::FIND_IN_CHANNEL;12
use crate::channel_files::{SharedContent, SharedItem};13
use crate::channel_files::{SharedContent, SharedItem};13
use crate::format;14
use crate::format;14
use crate::rows::reply_excerpt;15
use crate::rows::reply_excerpt;@@ -127,6 +128,20 @@ impl ConversationView {127
}128
}128
}129
}129
130
131
pub(super) fn channel_find_button(&self, cx: &mut Context<Self>) -> Option<AnyElement> {132
self.details_channel_id()?;133
Some(134
Button::new("channel-find")135
.icon(IconName::Search)136
.ghost()137
.size(px(BUTTON_SIZE))138
.rounded(px(8.))139
.tooltip(FIND_IN_CHANNEL)140
.on_click(cx.listener(|this, _, window, cx| this.open_find(window, cx)))141
.into_any_element(),142
)143
}144
130
pub(super) fn channel_details_button(&self, cx: &mut Context<Self>) -> Option<AnyElement> {145
pub(super) fn channel_details_button(&self, cx: &mut Context<Self>) -> Option<AnyElement> {131
self.details_channel_id()?;146
self.details_channel_id()?;132
let open = self.channel_details_open;147
let open = self.channel_details_open;