BlueGit

ict rusty-teams

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>

metis Daniel Däschle · pushed by metis

Authored 2026-11-05 · 3 weeks ago

Hash
ceacaa273b563733d93f54fbfefe586e2d082ca5
Parent
cc5b1df4
2 files changed +16 −0
crates/app/src/views/conversation.rs +1 −0
@@ -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 }
crates/app/src/views/conversation/channel_details.rs +15 −0
@@ -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
10use super::{ChannelPane, ConversationView};
10use super::{ChannelPane, ConversationView};
11use crate::app_state::Selection;
11use crate::app_state::Selection;
12use crate::find_in_chat::FIND_IN_CHANNEL;
12use crate::channel_files::{SharedContent, SharedItem};
13use crate::channel_files::{SharedContent, SharedItem};
13use crate::format;
14use crate::format;
14use crate::rows::reply_excerpt;
15use 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;