BlueGit

ict rusty-teams

profiel: contactgegevens selecteerbaar, met een kopieer-icoontje ernaast

Tim: beide. Mail, telefoon en kantoor zijn nu selecteerbare tekst; een
klik elders op de kaart selecteert nog steeds niets (ook niet de chat
erachter). Het icoontje achter elk gegeven kopieert de waarde en meldt
«Gekopieerd: …». Klikken op de tekst kopieert niet meer vanzelf.

Fixes #6

hephaestus

Authored 2026-12-01 · 3 hours ago

Hash
2a3171232543656f12085e31b4730120cb9166e6
Parent
4f71a826
Pipeline
Canceled
3 files changed +147 −28
KVT-FORK.md +6 −4
@@ -475,10 +475,12 @@ De optionele Graph-beta-route `teamwork/messaging/customEmojis` is niet gebruikt
475 475
476 476 ### Contactkaart: gegevens kopiëren — issue #6
477 477
478 Op de contactkaart kun je de tekst niet selecteren: de kaart blokkeert tekstselectie, zodat een klik
479 niet de chat erachter selecteert. Daarom is een contactregel (mail, telefoon, kantoor) nu klikbaar:
480 klikken kopieert de waarde naar het klembord en toont «Gekopieerd: …». Upstream aangeraakt:
481 `crates/app/src/views/profile_card.rs` (`contact_row`), `crates/app-state/src/profile_state.rs`
478 Mail, telefoonnummers en kantoor op de contactkaart zijn selecteerbare tekst (`SelectableText`, doet
479 mee met de vensterselectie en Ctrl+C). Achter elk gegeven staat een kopieer-icoontje: dat zet de waarde
480 op het klembord en meldt «Gekopieerd: …» (Tim: «beide»). De kaart blokkeert tekstselectie nog steeds
481 voor een klik elders, zodat je niet de chat erachter selecteert (`guard_card_press`: alleen een druk die
482 op een contactgegeven begint, mag selecteren). Upstream aangeraakt: `crates/app/src/views/profile_card.rs`
483 (`contact_row`, `contact_value`, `guard_card_press`), `crates/app-state/src/profile_state.rs`
482 484 (`copy_profile_detail`). Teksten in `kvt.yml` (`kvt.profile.*`).
483 485
484 486 ## Eigen modules in het kort
@@ -475,10 +475,12 @@ De optionele Graph-beta-route `teamwork/messaging/customEmojis` is niet gebruikt
475
475
476### Contactkaart: gegevens kopiëren — issue #6
476### Contactkaart: gegevens kopiëren — issue #6
477
477
478Op de contactkaart kun je de tekst niet selecteren: de kaart blokkeert tekstselectie, zodat een klik
478Mail, telefoonnummers en kantoor op de contactkaart zijn selecteerbare tekst (`SelectableText`, doet
479niet de chat erachter selecteert. Daarom is een contactregel (mail, telefoon, kantoor) nu klikbaar:
479mee met de vensterselectie en Ctrl+C). Achter elk gegeven staat een kopieer-icoontje: dat zet de waarde
480klikken kopieert de waarde naar het klembord en toont «Gekopieerd: …». Upstream aangeraakt:
480op het klembord en meldt «Gekopieerd: …» (Tim: «beide»). De kaart blokkeert tekstselectie nog steeds
481`crates/app/src/views/profile_card.rs` (`contact_row`), `crates/app-state/src/profile_state.rs`
481voor een klik elders, zodat je niet de chat erachter selecteert (`guard_card_press`: alleen een druk die
482op een contactgegeven begint, mag selecteren). Upstream aangeraakt: `crates/app/src/views/profile_card.rs`
483(`contact_row`, `contact_value`, `guard_card_press`), `crates/app-state/src/profile_state.rs`
482(`copy_profile_detail`). Teksten in `kvt.yml` (`kvt.profile.*`).
484(`copy_profile_detail`). Teksten in `kvt.yml` (`kvt.profile.*`).
483
485
484## Eigen modules in het kort
486## Eigen modules in het kort
crates/app-base/locales/kvt.yml +3 −3
@@ -514,9 +514,9 @@ kvt:
514 514 nl: Afgehandeld
515 515 profile:
516 516 copy:
517 en: Click to copy
518 de: Zum Kopieren klicken
519 nl: Klik om te kopiëren
517 en: Copy
518 de: Kopieren
519 nl: Kopiëren
520 520 copied:
521 521 en: "Copied: %{value}"
522 522 de: "Kopiert: %{value}"
@@ -514,9 +514,9 @@ kvt:
514 nl: Afgehandeld
514 nl: Afgehandeld
515 profile:
515 profile:
516 copy:
516 copy:
517 en: Click to copy
517 en: Copy
518 de: Zum Kopieren klicken
518 de: Kopieren
519 nl: Klik om te kopiëren
519 nl: Kopiëren
520 copied:
520 copied:
521 en: "Copied: %{value}"
521 en: "Copied: %{value}"
522 de: "Kopiert: %{value}"
522 de: "Kopiert: %{value}"
crates/app/src/views/profile_card.rs +138 −21
@@ -1,8 +1,10 @@
1 use std::cell::Cell;
2 use std::rc::Rc;
1 3 use std::sync::Arc;
2 4
3 5 use chrono::Utc;
4 6 use gpui_kit::assets::IconName;
5 use gpui_kit::base::GlobalState;
7 use gpui_kit::base::{GlobalState, SelectableText};
6 8 use gpui_kit::component::scroll::ScrollableElement as _;
7 9 use gpui_kit::component::{h_flex, tooltip::Tooltip, v_flex};
8 10 use gpui_kit::prelude::FluentBuilder as _;
@@ -52,6 +54,8 @@ pub struct ProfileCard {
52 54 organization_open: bool,
53 55 reports_open: bool,
54 56 focus_handle: FocusHandle,
57 /// KVT #6: de muisklik begon op een contactgegeven; dat mag tekst selecteren.
58 text_press: Rc<Cell<bool>>,
55 59 _observation: Subscription,
56 60 }
57 61
@@ -111,6 +115,7 @@ impl ProfileCard {
111 115 organization_open: true,
112 116 reports_open: false,
113 117 focus_handle,
118 text_press: Rc::default(),
114 119 _observation: observation,
115 120 }
116 121 }
@@ -417,11 +422,7 @@ impl ProfileCard {
417 422 .child(self.section_header("profile-contact-header", "Contact", open, cx))
418 423 .when(open, |section| {
419 424 section.children(rows.into_iter().enumerate().map(|(index, row)| {
420 let value = row.value.clone();
421 let app = self.app.clone();
422 contact_row(index, row).on_click(move |_, _, cx| {
423 app.update(cx, |state, cx| state.copy_profile_detail(&value, cx));
424 })
425 contact_row(index, row, self.text_press.clone(), self.app.clone())
425 426 }))
426 427 })
427 428 }
@@ -623,35 +624,76 @@ fn skeleton(width_ratio: f32) -> Div {
623 624 .bg(theme::popup_hover())
624 625 }
625 626
626 /// Klikbaar: kopieert de waarde (KVT issue #6; tekst selecteren kan niet in de kaart).
627 fn contact_row(index: usize, row: ContactRow) -> Stateful<Div> {
627 /// KVT issue #6: het gegeven is selecteerbare tekst, het icoontje erachter kopieert het.
628 fn contact_row(
629 index: usize,
630 row: ContactRow,
631 text_press: Rc<Cell<bool>>,
632 app: Entity<AppState>,
633 ) -> Div {
628 634 let glyph = match row.kind {
629 635 ContactKind::Email => IconName::Mail,
630 636 ContactKind::WorkPhone => IconName::Phone,
631 637 ContactKind::MobilePhone => IconName::Smartphone,
632 638 ContactKind::Office => IconName::MapPin,
633 639 };
640 let value = row.value.clone();
634 641 h_flex()
635 .id(ElementId::Name(format!("profile-contact-{index}").into()))
636 642 .gap(px(8.))
637 643 .px(px(4.))
638 644 .items_center()
639 .rounded(px(6.))
640 .cursor_pointer()
641 .hover(|row| row.bg(theme::row_hover()))
642 .tooltip(|window, cx| Tooltip::new(crate::i18n::tr("kvt.profile.copy")).build(window, cx))
643 645 .child(icon(glyph, 14., theme::text_muted()))
644 646 .child(
645 div()
647 contact_value(index, row.value, text_press)
646 648 .flex_1()
647 649 .min_w_0()
648 650 .truncate()
649 651 .text_size(px(12.5))
650 .text_color(theme::text())
651 .child(row.value),
652 .text_color(theme::text()),
653 )
654 .child(
655 div()
656 .id(ElementId::Name(
657 format!("profile-copy-contact-{index}").into(),
658 ))
659 .flex_none()
660 .p(px(3.))
661 .rounded(px(4.))
662 .cursor_pointer()
663 .hover(|button| button.bg(theme::row_hover()))
664 .child(icon(IconName::Copy, 12., theme::text_muted()))
665 .tooltip(|window, cx| {
666 Tooltip::new(crate::i18n::tr("kvt.profile.copy")).build(window, cx)
667 })
668 .on_click(move |_, _, cx| {
669 app.update(cx, |state, cx| state.copy_profile_detail(&value, cx));
670 }),
652 671 )
653 672 }
654 673
674 /// Tekst die meedoet met de vensterselectie. Een druk erop meldt zich via `text_press`, zodat
675 /// `guard_card_press` de selectie dan niet tegenhoudt.
676 fn contact_value(index: usize, value: String, text_press: Rc<Cell<bool>>) -> Div {
677 div()
678 .on_mouse_down(MouseButton::Left, move |_, _, _| text_press.set(true))
679 .child(SelectableText::new(
680 ElementId::Name(format!("profile-contact-{index}").into()),
681 value,
682 ))
683 }
684
685 /// Een klik in de kaart selecteert niet de chat erachter, behalve als hij op een
686 /// contactgegeven begon: dan mag de vensterselectie beginnen (KVT issue #6).
687 fn guard_card_press(card: Stateful<Div>, text_press: Rc<Cell<bool>>) -> Stateful<Div> {
688 card.on_mouse_down(MouseButton::Left, move |_, _, cx| {
689 if text_press.replace(false) {
690 return;
691 }
692 GlobalState::suppress_text_selection(cx);
693 cx.stop_propagation();
694 })
695 }
696
655 697 pub fn video_call_tooltip(name: &str) -> String {
656 698 format!("Start a video call with {name}")
657 699 }
@@ -747,14 +789,11 @@ impl Render for ProfileCard {
747 789 .text_color(theme::text())
748 790 .occlude()
749 791 .on_key_down(cx.listener(Self::on_key_down))
750 .on_mouse_down(MouseButton::Left, |_, _, cx| {
751 GlobalState::suppress_text_selection(cx);
752 cx.stop_propagation();
753 })
754 792 .on_mouse_down(MouseButton::Right, |_, _, cx| cx.stop_propagation())
755 793 .children(back)
756 794 .child(header)
757 795 .children(body);
796 let card = guard_card_press(card, self.text_press.clone());
758 797 let offset = point(px(CLICK_OFFSET), px(CLICK_OFFSET));
759 798 div()
760 799 .id("profile-layer")
@@ -786,7 +825,85 @@ impl Render for ProfileCard {
786 825
787 826 #[cfg(test)]
788 827 mod tests {
789 use super::{audio_call_tooltip, video_call_tooltip};
828 use std::cell::Cell;
829 use std::rc::Rc;
830
831 use gpui_kit::base::{SelectableText, TextSelection, TextSelectionLayer};
832 use gpui_kit::{
833 Context, InteractiveElement as _, IntoElement, Modifiers, MouseButton, ParentElement as _,
834 Pixels, Point, Render, Styled as _, TestAppContext,
835 VisualTestContext, Window, anchored, deferred, div, point, px,
836 };
837
838 use super::{audio_call_tooltip, contact_value, guard_card_press, video_call_tooltip};
839
840 /// Chattekst achter een kaart met één contactgegeven, zoals de echte kaart (deferred, occlude).
841 struct CardOverChat {
842 text_press: Rc<Cell<bool>>,
843 }
844
845 impl Render for CardOverChat {
846 fn render(&mut self, _: &mut Window, _: &mut Context<Self>) -> impl IntoElement {
847 let card = div()
848 .id("card")
849 .occlude()
850 .w(px(240.))
851 .h(px(80.))
852 .child(contact_value(
853 0,
854 "ada@example.com".into(),
855 self.text_press.clone(),
856 ))
857 .child(div().h(px(40.)));
858 div()
859 .size_full()
860 .child(TextSelectionLayer)
861 .child(div().w(px(400.)).h(px(200.)).child(SelectableText::new(
862 "chat",
863 "chat text behind the card ".repeat(20),
864 )))
865 .child(deferred(
866 anchored()
867 .position(point(px(0.), px(0.)))
868 .child(guard_card_press(card, self.text_press.clone())),
869 ))
870 }
871 }
872
873 fn drag(cx: &mut VisualTestContext, from: Point<Pixels>, to: Point<Pixels>) -> String {
874 cx.update(|window, cx| {
875 let _ = window.draw(cx);
876 });
877 cx.simulate_mouse_down(from, MouseButton::Left, Modifiers::default());
878 cx.simulate_mouse_move(to, Some(MouseButton::Left), Modifiers::default());
879 cx.simulate_mouse_up(to, MouseButton::Left, Modifiers::default());
880 cx.update(|window, cx| {
881 let _ = window.draw(cx);
882 TextSelection::selected_text(window, cx).to_string()
883 })
884 }
885
886 #[gpui_kit::test]
887 fn contact_details_on_the_card_are_selectable(cx: &mut TestAppContext) {
888 let (_, cx) = cx.add_window_view(|_, _| CardOverChat {
889 text_press: Rc::default(),
890 });
891 assert_eq!(
892 drag(cx, point(px(1.), px(6.)), point(px(230.), px(6.))),
893 "ada@example.com"
894 );
895 }
896
897 #[gpui_kit::test]
898 fn a_press_elsewhere_on_the_card_selects_nothing_behind_it(cx: &mut TestAppContext) {
899 let (_, cx) = cx.add_window_view(|_, _| CardOverChat {
900 text_press: Rc::default(),
901 });
902 assert_eq!(
903 drag(cx, point(px(5.), px(60.)), point(px(230.), px(70.))),
904 ""
905 );
906 }
790 907
791 908 #[test]
792 909 fn call_tooltips_use_the_teams_wording() {
@@ -1,8 +1,10 @@
1use std::cell::Cell;
2use std::rc::Rc;
1use std::sync::Arc;
3use std::sync::Arc;
2
4
3use chrono::Utc;
5use chrono::Utc;
4use gpui_kit::assets::IconName;
6use gpui_kit::assets::IconName;
5use gpui_kit::base::GlobalState;
7use gpui_kit::base::{GlobalState, SelectableText};
6use gpui_kit::component::scroll::ScrollableElement as _;
8use gpui_kit::component::scroll::ScrollableElement as _;
7use gpui_kit::component::{h_flex, tooltip::Tooltip, v_flex};
9use gpui_kit::component::{h_flex, tooltip::Tooltip, v_flex};
8use gpui_kit::prelude::FluentBuilder as _;
10use gpui_kit::prelude::FluentBuilder as _;
@@ -52,6 +54,8 @@ pub struct ProfileCard {
52 organization_open: bool,
54 organization_open: bool,
53 reports_open: bool,
55 reports_open: bool,
54 focus_handle: FocusHandle,
56 focus_handle: FocusHandle,
57 /// KVT #6: de muisklik begon op een contactgegeven; dat mag tekst selecteren.
58 text_press: Rc<Cell<bool>>,
55 _observation: Subscription,
59 _observation: Subscription,
56}
60}
57
61
@@ -111,6 +115,7 @@ impl ProfileCard {
111 organization_open: true,
115 organization_open: true,
112 reports_open: false,
116 reports_open: false,
113 focus_handle,
117 focus_handle,
118 text_press: Rc::default(),
114 _observation: observation,
119 _observation: observation,
115 }
120 }
116 }
121 }
@@ -417,11 +422,7 @@ impl ProfileCard {
417 .child(self.section_header("profile-contact-header", "Contact", open, cx))
422 .child(self.section_header("profile-contact-header", "Contact", open, cx))
418 .when(open, |section| {
423 .when(open, |section| {
419 section.children(rows.into_iter().enumerate().map(|(index, row)| {
424 section.children(rows.into_iter().enumerate().map(|(index, row)| {
420 let value = row.value.clone();
425 contact_row(index, row, self.text_press.clone(), self.app.clone())
421 let app = self.app.clone();
422 contact_row(index, row).on_click(move |_, _, cx| {
423 app.update(cx, |state, cx| state.copy_profile_detail(&value, cx));
424 })
425 }))
426 }))
426 })
427 })
427 }
428 }
@@ -623,35 +624,76 @@ fn skeleton(width_ratio: f32) -> Div {
623 .bg(theme::popup_hover())
624 .bg(theme::popup_hover())
624}
625}
625
626
626/// Klikbaar: kopieert de waarde (KVT issue #6; tekst selecteren kan niet in de kaart).
627/// KVT issue #6: het gegeven is selecteerbare tekst, het icoontje erachter kopieert het.
627fn contact_row(index: usize, row: ContactRow) -> Stateful<Div> {
628fn contact_row(
629 index: usize,
630 row: ContactRow,
631 text_press: Rc<Cell<bool>>,
632 app: Entity<AppState>,
633) -> Div {
628 let glyph = match row.kind {
634 let glyph = match row.kind {
629 ContactKind::Email => IconName::Mail,
635 ContactKind::Email => IconName::Mail,
630 ContactKind::WorkPhone => IconName::Phone,
636 ContactKind::WorkPhone => IconName::Phone,
631 ContactKind::MobilePhone => IconName::Smartphone,
637 ContactKind::MobilePhone => IconName::Smartphone,
632 ContactKind::Office => IconName::MapPin,
638 ContactKind::Office => IconName::MapPin,
633 };
639 };
640 let value = row.value.clone();
634 h_flex()
641 h_flex()
635 .id(ElementId::Name(format!("profile-contact-{index}").into()))
636 .gap(px(8.))
642 .gap(px(8.))
637 .px(px(4.))
643 .px(px(4.))
638 .items_center()
644 .items_center()
639 .rounded(px(6.))
640 .cursor_pointer()
641 .hover(|row| row.bg(theme::row_hover()))
642 .tooltip(|window, cx| Tooltip::new(crate::i18n::tr("kvt.profile.copy")).build(window, cx))
643 .child(icon(glyph, 14., theme::text_muted()))
645 .child(icon(glyph, 14., theme::text_muted()))
644 .child(
646 .child(
645 div()
647 contact_value(index, row.value, text_press)
646 .flex_1()
648 .flex_1()
647 .min_w_0()
649 .min_w_0()
648 .truncate()
650 .truncate()
649 .text_size(px(12.5))
651 .text_size(px(12.5))
650 .text_color(theme::text())
652 .text_color(theme::text()),
651 .child(row.value),
653 )
654 .child(
655 div()
656 .id(ElementId::Name(
657 format!("profile-copy-contact-{index}").into(),
658 ))
659 .flex_none()
660 .p(px(3.))
661 .rounded(px(4.))
662 .cursor_pointer()
663 .hover(|button| button.bg(theme::row_hover()))
664 .child(icon(IconName::Copy, 12., theme::text_muted()))
665 .tooltip(|window, cx| {
666 Tooltip::new(crate::i18n::tr("kvt.profile.copy")).build(window, cx)
667 })
668 .on_click(move |_, _, cx| {
669 app.update(cx, |state, cx| state.copy_profile_detail(&value, cx));
670 }),
652 )
671 )
653}
672}
654
673
674/// Tekst die meedoet met de vensterselectie. Een druk erop meldt zich via `text_press`, zodat
675/// `guard_card_press` de selectie dan niet tegenhoudt.
676fn contact_value(index: usize, value: String, text_press: Rc<Cell<bool>>) -> Div {
677 div()
678 .on_mouse_down(MouseButton::Left, move |_, _, _| text_press.set(true))
679 .child(SelectableText::new(
680 ElementId::Name(format!("profile-contact-{index}").into()),
681 value,
682 ))
683}
684
685/// Een klik in de kaart selecteert niet de chat erachter, behalve als hij op een
686/// contactgegeven begon: dan mag de vensterselectie beginnen (KVT issue #6).
687fn guard_card_press(card: Stateful<Div>, text_press: Rc<Cell<bool>>) -> Stateful<Div> {
688 card.on_mouse_down(MouseButton::Left, move |_, _, cx| {
689 if text_press.replace(false) {
690 return;
691 }
692 GlobalState::suppress_text_selection(cx);
693 cx.stop_propagation();
694 })
695}
696
655pub fn video_call_tooltip(name: &str) -> String {
697pub fn video_call_tooltip(name: &str) -> String {
656 format!("Start a video call with {name}")
698 format!("Start a video call with {name}")
657}
699}
@@ -747,14 +789,11 @@ impl Render for ProfileCard {
747 .text_color(theme::text())
789 .text_color(theme::text())
748 .occlude()
790 .occlude()
749 .on_key_down(cx.listener(Self::on_key_down))
791 .on_key_down(cx.listener(Self::on_key_down))
750 .on_mouse_down(MouseButton::Left, |_, _, cx| {
751 GlobalState::suppress_text_selection(cx);
752 cx.stop_propagation();
753 })
754 .on_mouse_down(MouseButton::Right, |_, _, cx| cx.stop_propagation())
792 .on_mouse_down(MouseButton::Right, |_, _, cx| cx.stop_propagation())
755 .children(back)
793 .children(back)
756 .child(header)
794 .child(header)
757 .children(body);
795 .children(body);
796 let card = guard_card_press(card, self.text_press.clone());
758 let offset = point(px(CLICK_OFFSET), px(CLICK_OFFSET));
797 let offset = point(px(CLICK_OFFSET), px(CLICK_OFFSET));
759 div()
798 div()
760 .id("profile-layer")
799 .id("profile-layer")
@@ -786,7 +825,85 @@ impl Render for ProfileCard {
786
825
787#[cfg(test)]
826#[cfg(test)]
788mod tests {
827mod tests {
789 use super::{audio_call_tooltip, video_call_tooltip};
828 use std::cell::Cell;
829 use std::rc::Rc;
830
831 use gpui_kit::base::{SelectableText, TextSelection, TextSelectionLayer};
832 use gpui_kit::{
833 Context, InteractiveElement as _, IntoElement, Modifiers, MouseButton, ParentElement as _,
834 Pixels, Point, Render, Styled as _, TestAppContext,
835 VisualTestContext, Window, anchored, deferred, div, point, px,
836 };
837
838 use super::{audio_call_tooltip, contact_value, guard_card_press, video_call_tooltip};
839
840 /// Chattekst achter een kaart met één contactgegeven, zoals de echte kaart (deferred, occlude).
841 struct CardOverChat {
842 text_press: Rc<Cell<bool>>,
843 }
844
845 impl Render for CardOverChat {
846 fn render(&mut self, _: &mut Window, _: &mut Context<Self>) -> impl IntoElement {
847 let card = div()
848 .id("card")
849 .occlude()
850 .w(px(240.))
851 .h(px(80.))
852 .child(contact_value(
853 0,
854 "ada@example.com".into(),
855 self.text_press.clone(),
856 ))
857 .child(div().h(px(40.)));
858 div()
859 .size_full()
860 .child(TextSelectionLayer)
861 .child(div().w(px(400.)).h(px(200.)).child(SelectableText::new(
862 "chat",
863 "chat text behind the card ".repeat(20),
864 )))
865 .child(deferred(
866 anchored()
867 .position(point(px(0.), px(0.)))
868 .child(guard_card_press(card, self.text_press.clone())),
869 ))
870 }
871 }
872
873 fn drag(cx: &mut VisualTestContext, from: Point<Pixels>, to: Point<Pixels>) -> String {
874 cx.update(|window, cx| {
875 let _ = window.draw(cx);
876 });
877 cx.simulate_mouse_down(from, MouseButton::Left, Modifiers::default());
878 cx.simulate_mouse_move(to, Some(MouseButton::Left), Modifiers::default());
879 cx.simulate_mouse_up(to, MouseButton::Left, Modifiers::default());
880 cx.update(|window, cx| {
881 let _ = window.draw(cx);
882 TextSelection::selected_text(window, cx).to_string()
883 })
884 }
885
886 #[gpui_kit::test]
887 fn contact_details_on_the_card_are_selectable(cx: &mut TestAppContext) {
888 let (_, cx) = cx.add_window_view(|_, _| CardOverChat {
889 text_press: Rc::default(),
890 });
891 assert_eq!(
892 drag(cx, point(px(1.), px(6.)), point(px(230.), px(6.))),
893 "ada@example.com"
894 );
895 }
896
897 #[gpui_kit::test]
898 fn a_press_elsewhere_on_the_card_selects_nothing_behind_it(cx: &mut TestAppContext) {
899 let (_, cx) = cx.add_window_view(|_, _| CardOverChat {
900 text_press: Rc::default(),
901 });
902 assert_eq!(
903 drag(cx, point(px(5.), px(60.)), point(px(230.), px(70.))),
904 ""
905 );
906 }
790
907
791 #[test]
908 #[test]
792 fn call_tooltips_use_the_teams_wording() {
909 fn call_tooltips_use_the_teams_wording() {