Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: collapse meeting-detected notification to single action button

Louis Beaumontde2c0f1a4765
diff --git a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
index 272fd0ce2..8417c4f38 100644
--- a/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
+++ b/apps/screenpipe-app-tauri/app/notification-panel/page.tsx
@@ -709,24 +709,6 @@ export default function NotificationPanelPage() {
</button>
))
)}
- <span
- onClick={() => hide(false)}
- style={{
- marginLeft: "auto",
- fontSize: "10px",
- color: "rgba(0, 0, 0, 0.3)",
- cursor: "pointer",
- fontFamily: '"IBM Plex Mono", monospace',
- }}
- onMouseEnter={(e) =>
- (e.currentTarget.style.color = "rgba(0, 0, 0, 0.6)")
- }
- onMouseLeave={(e) =>
- (e.currentTarget.style.color = "rgba(0, 0, 0, 0.3)")
- }
- >
- dismiss →
- </span>
</div>
)}
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs b/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs
index 00d2caf90..95d8589d4 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/meeting_live_notes.rs
@@ -208,14 +208,6 @@ pub fn start(app: AppHandle) {
"deeplink_url": url.clone(),
"primary": true,
}));
- actions.push(json!({
- "id": "open-live-notes",
- "action": "open-live-notes",
- "label": "open note",
- "type": "deeplink",
- "url": url.clone(),
- "primary": false,
- }));
} else {
actions.push(json!({
"id": "open-live-notes",
@@ -226,12 +218,6 @@ pub fn start(app: AppHandle) {
"primary": true,
}));
}
- actions.push(json!({
- "id": "dismiss",
- "action": "dismiss",
- "label": "not now",
- "type": "dismiss",
- }));
client::send_typed_with_actions(
"meeting detected",
@@ -397,19 +383,9 @@ fn parse_rfc3339_utc(value: &str) -> Option<chrono::DateTime<chrono::Utc>> {
}
fn provider_join_link(url: String) -> JoinLink {
- let lower = url.to_lowercase();
- let label = if lower.contains("meet.google.com/") {
- "join Google Meet"
- } else if lower.contains("zoom.us/") {
- "join Zoom"
- } else if lower.contains("teams.microsoft.com/") || lower.contains("teams.live.com/") {
- "join Teams"
- } else {
- "join meeting"
- };
JoinLink {
url,
- label: label.to_string(),
+ label: "join and take notes".to_string(),
}
}
@@ -470,7 +446,7 @@ mod tests {
.and_then(|m| m.join_link)
.expect("join link");
assert_eq!(link.url, "https://meet.google.com/abc-defg-hij");
- assert_eq!(link.label, "join Google Meet");
+ assert_eq!(link.label, "join and take notes");
}
#[test]
@@ -492,7 +468,7 @@ mod tests {
assert_eq!(matched.title.as_deref(), Some("Customer onboarding"));
let link = matched.join_link.expect("join link");
assert_eq!(link.url, "https://zoom.us/j/123");
- assert_eq!(link.label, "join Zoom");
+ assert_eq!(link.label, "join and take notes");
}
#[test]