diff --git a/Cargo.lock b/Cargo.lock
index 5afa2c6225badf4ff2b4158fbc0f1cb0e75c2b50..1d0af3c00876104d2f8554ee43ed757689bce281 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1440,7 +1440,7 @@ dependencies = [
[[package]]
name = "collab"
-version = "0.28.0"
+version = "0.33.0"
dependencies = [
"anyhow",
"async-trait",
diff --git a/assets/icons/arrow_circle.svg b/assets/icons/arrow_circle.svg
new file mode 100644
index 0000000000000000000000000000000000000000..750e349e2b8c73ef0c78b9974ea100f70ae37abe
--- /dev/null
+++ b/assets/icons/arrow_circle.svg
@@ -0,0 +1 @@
+
diff --git a/assets/icons/at-sign.svg b/assets/icons/at_sign.svg
similarity index 85%
rename from assets/icons/at-sign.svg
rename to assets/icons/at_sign.svg
index 5adac38f62fb661e11d0f2e8f4ea17c94683aa5f..4cf8cd468f17e5cbcd012c6225543f6c4b027969 100644
--- a/assets/icons/at-sign.svg
+++ b/assets/icons/at_sign.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
diff --git a/assets/icons/bell-off.svg b/assets/icons/bell_off.svg
similarity index 100%
rename from assets/icons/bell-off.svg
rename to assets/icons/bell_off.svg
diff --git a/assets/icons/bell-ring.svg b/assets/icons/bell_ring.svg
similarity index 100%
rename from assets/icons/bell-ring.svg
rename to assets/icons/bell_ring.svg
diff --git a/assets/icons/delete.svg b/assets/icons/delete.svg
index 1068cb65f29a02cdf9b5f418239ed3069e4d1a3e..a7edbb615871745c0277b242b189a7e39135a4ed 100644
--- a/assets/icons/delete.svg
+++ b/assets/icons/delete.svg
@@ -1,4 +1 @@
-
-
+
diff --git a/assets/icons/escape.svg b/assets/icons/escape.svg
new file mode 100644
index 0000000000000000000000000000000000000000..00c772a2adfea0b43c10c5635c05649a00756de3
--- /dev/null
+++ b/assets/icons/escape.svg
@@ -0,0 +1 @@
+
diff --git a/assets/icons/magic-wand.svg b/assets/icons/magic_wand.svg
similarity index 100%
rename from assets/icons/magic-wand.svg
rename to assets/icons/magic_wand.svg
diff --git a/assets/icons/mail-open.svg b/assets/icons/mail_open.svg
similarity index 100%
rename from assets/icons/mail-open.svg
rename to assets/icons/mail_open.svg
diff --git a/assets/icons/mic-mute.svg b/assets/icons/mic_mute.svg
similarity index 100%
rename from assets/icons/mic-mute.svg
rename to assets/icons/mic_mute.svg
diff --git a/assets/icons/page_down.svg b/assets/icons/page_down.svg
new file mode 100644
index 0000000000000000000000000000000000000000..765f36b26a6f85669157f65d45128a604f8c695a
--- /dev/null
+++ b/assets/icons/page_down.svg
@@ -0,0 +1,6 @@
+
diff --git a/assets/icons/page_up.svg b/assets/icons/page_up.svg
new file mode 100644
index 0000000000000000000000000000000000000000..f555165d2db9e85f8f2920fb7de258e7e64fb579
--- /dev/null
+++ b/assets/icons/page_up.svg
@@ -0,0 +1,13 @@
+
diff --git a/assets/icons/return.svg b/assets/icons/return.svg
index 683519c3066fef61cb256a103dcd219fe59ff9f1..16cfeeda2e3ad0e2acee6d7a594916e796fd2405 100644
--- a/assets/icons/return.svg
+++ b/assets/icons/return.svg
@@ -1,3 +1 @@
-
+
diff --git a/assets/icons/select-all.svg b/assets/icons/select_all.svg
similarity index 100%
rename from assets/icons/select-all.svg
rename to assets/icons/select_all.svg
diff --git a/assets/icons/space.svg b/assets/icons/space.svg
new file mode 100644
index 0000000000000000000000000000000000000000..63718fb4aa1e1300621d29ca5bddd4e130c4796e
--- /dev/null
+++ b/assets/icons/space.svg
@@ -0,0 +1 @@
+
diff --git a/assets/icons/speaker-loud.svg b/assets/icons/speaker_loud.svg
similarity index 100%
rename from assets/icons/speaker-loud.svg
rename to assets/icons/speaker_loud.svg
diff --git a/assets/icons/speaker-off.svg b/assets/icons/speaker_off.svg
similarity index 100%
rename from assets/icons/speaker-off.svg
rename to assets/icons/speaker_off.svg
diff --git a/assets/icons/tab.svg b/assets/icons/tab.svg
new file mode 100644
index 0000000000000000000000000000000000000000..49a3536bedd51ee70dd914710801bc9dbaf51616
--- /dev/null
+++ b/assets/icons/tab.svg
@@ -0,0 +1 @@
+
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs
index 7b19ad130c4c42316f6ca65c8063be9c3842b42b..9221d87f60fda92990997a1401bf54325a099c6b 100644
--- a/crates/assistant/src/assistant_panel.rs
+++ b/crates/assistant/src/assistant_panel.rs
@@ -16,7 +16,7 @@ use ai::{
use ai::prompts::repository_context::PromptCodeSnippet;
use anyhow::{anyhow, Result};
use chrono::{DateTime, Local};
-use client::{telemetry::AssistantKind, TelemetrySettings};
+use client::telemetry::AssistantKind;
use collections::{hash_map, HashMap, HashSet, VecDeque};
use editor::{
display_map::{
@@ -1125,8 +1125,6 @@ impl Render for AssistantPanel {
.child(Label::new(
"Click on the Z button in the status bar to close this panel."
))
- .border()
- .border_color(gpui::red())
} else {
let header = TabBar::new("assistant_header")
.start_child(
@@ -1159,6 +1157,7 @@ impl Render for AssistantPanel {
});
v_stack()
+ .key_context("AssistantPanel")
.size_full()
.on_action(cx.listener(|this, _: &workspace::NewFile, cx| {
this.new_conversation(cx);
@@ -3529,12 +3528,5 @@ fn report_assistant_event(
.default_open_ai_model
.clone();
- let telemetry_settings = TelemetrySettings::get_global(cx).clone();
-
- telemetry.report_assistant_event(
- telemetry_settings,
- conversation_id,
- assistant_kind,
- model.full_name(),
- )
+ telemetry.report_assistant_event(conversation_id, assistant_kind, model.full_name(), cx)
}
diff --git a/crates/call/src/call.rs b/crates/call/src/call.rs
index bc8a0809cae179cd1faac96d90664c9ea41a30e6..c419043a722b35fb34f33a224502057e53f3a16b 100644
--- a/crates/call/src/call.rs
+++ b/crates/call/src/call.rs
@@ -5,7 +5,7 @@ pub mod room;
use anyhow::{anyhow, Result};
use audio::Audio;
use call_settings::CallSettings;
-use client::{proto, Client, TelemetrySettings, TypedEnvelope, User, UserStore, ZED_ALWAYS_ACTIVE};
+use client::{proto, Client, TypedEnvelope, User, UserStore, ZED_ALWAYS_ACTIVE};
use collections::HashSet;
use futures::{channel::oneshot, future::Shared, Future, FutureExt};
use gpui::{
@@ -480,9 +480,8 @@ pub fn report_call_event_for_room(
cx: &mut AppContext,
) {
let telemetry = client.telemetry();
- let telemetry_settings = *TelemetrySettings::get_global(cx);
- telemetry.report_call_event(telemetry_settings, operation, Some(room_id), channel_id)
+ telemetry.report_call_event(operation, Some(room_id), channel_id, cx)
}
pub fn report_call_event_for_channel(
@@ -495,13 +494,11 @@ pub fn report_call_event_for_channel(
let telemetry = client.telemetry();
- let telemetry_settings = *TelemetrySettings::get_global(cx);
-
telemetry.report_call_event(
- telemetry_settings,
operation,
room.map(|r| r.read(cx).id()),
Some(channel_id),
+ cx,
)
}
diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs
index 789b627fb0641c4bfb3c99e70db8d96738b8c099..2391c5f3b55a0c96133ed82ae964ecd969cc68e2 100644
--- a/crates/client/src/telemetry.rs
+++ b/crates/client/src/telemetry.rs
@@ -177,8 +177,7 @@ impl Telemetry {
// TestAppContext ends up calling this function on shutdown and it panics when trying to find the TelemetrySettings
#[cfg(not(any(test, feature = "test-support")))]
fn shutdown_telemetry(self: &Arc, cx: &mut AppContext) -> impl Future