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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: add attendees editing and note field to meetings UI
Louis Beaumont402d4d4b5de4
diff --git a/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx b/apps/screenpipe-app-tauri/components/settings/meetings-section.tsxindex 21eb606d7..2db628be6 100644--- a/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx@@ -25,6 +25,7 @@ interface MeetingRecord {meeting_app: string;title: string | null;attendees: string | null;+ note: string | null;detection_source: string;created_at: string;}@@ -33,6 +34,8 @@ interface EditState {title: string;meeting_start: string;meeting_end: string;+ attendees: string;+ note: string;}function formatDuration(start: string, end: string | null): string {@@ -150,6 +153,8 @@ export function MeetingsSection() {title: "",meeting_start: "",meeting_end: "",+ attendees: "",+ note: "",});const [savingId, setSavingId] = useState<number | null>(null);const [deletingId, setDeletingId] = useState<number | null>(null);@@ -241,6 +246,8 @@ export function MeetingsSection() {meeting_end: meeting.meeting_end? toDatetimeLocal(meeting.meeting_end): "",+ attendees: meeting.attendees ?? "",+ note: meeting.note ?? "",});};@@ -254,6 +261,8 @@ export function MeetingsSection() {const body: Record<string, string> = {title: editState.title,meeting_start: new Date(editState.meeting_start).toISOString(),+ attendees: editState.attendees,+ note: editState.note,};if (editState.meeting_end) {body.meeting_end = new Date(editState.meeting_end).toISOString();@@ -457,6 +466,24 @@ export function MeetingsSection() {className="w-full rounded border border-border bg-background px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-ring"placeholder="title"/>+ <input+ type="text"+ value={editState.attendees}+ onChange={(e) =>+ setEditState((s) => ({ ...s, attendees: e.target.value }))+ }+ className="w-full rounded border border-border bg-background px-2 py-1 text-xs focus:outline-none focus:ring-1 focus:ring-ring"+ placeholder="attendees (comma separated)"+ />+ <textarea+ value={editState.note}+ onChange={(e) =>+ setEditState((s) => ({ ...s, note: e.target.value }))+ }+ className="w-full rounded border border-border bg-background px-2 py-1 text-xs focus:outline-none focus:ring-1 focus:ring-ring resize-y min-h-[2rem]"+ placeholder="paste note here..."+ rows={2}+ /><div className="flex gap-2 flex-wrap"><label className="text-xs text-muted-foreground">start@@ -525,6 +552,16 @@ export function MeetingsSection() {)</span></div>+ {meeting.attendees && (+ <div className="text-xs text-muted-foreground/80 mt-0.5">+ attendees: {meeting.attendees}+ </div>+ )}+ {meeting.note && (+ <div className="text-xs text-muted-foreground/80 mt-0.5 whitespace-pre-wrap line-clamp-2">+ {meeting.note}+ </div>+ )}</>)}</div>diff --git a/crates/screenpipe-db/src/db.rs b/crates/screenpipe-db/src/db.rsindex 6e76f4c6a..625a25761 100644--- a/crates/screenpipe-db/src/db.rs+++ b/crates/screenpipe-db/src/db.rs@@ -6183,6 +6183,7 @@ LIMIT ? OFFSET ?meeting_end: Option<&str>,title: Option<&str>,attendees: Option<&str>,+ note: Option<&str>,meeting_app: Option<&str>,) -> Result<(), SqlxError> {let mut sets: Vec<&str> = Vec::new();@@ -6198,6 +6199,9 @@ LIMIT ? OFFSET ?if attendees.is_some() {sets.push("attendees = ?");}+ if note.is_some() {+ sets.push("note = ?");+ }if meeting_app.is_some() {sets.push("meeting_app = ?");}@@ -6229,6 +6233,9 @@ LIMIT ? OFFSET ?if let Some(v) = attendees {query = query.bind(v);}+ if let Some(v) = note {+ query = query.bind(v);+ }if let Some(v) = meeting_app {query = query.bind(v);}diff --git a/crates/screenpipe-db/src/migrations/20260320000000_add_note_to_meetings.sql b/crates/screenpipe-db/src/migrations/20260320000000_add_note_to_meetings.sqlnew file mode 100644index 000000000..253225ecc--- /dev/null+++ b/crates/screenpipe-db/src/migrations/20260320000000_add_note_to_meetings.sql@@ -0,0 +1 @@+ALTER TABLE meetings ADD COLUMN note TEXT;diff --git a/crates/screenpipe-db/src/types.rs b/crates/screenpipe-db/src/types.rsindex a5bb51db1..04bfddc62 100644--- a/crates/screenpipe-db/src/types.rs+++ b/crates/screenpipe-db/src/types.rs@@ -181,6 +181,7 @@ pub struct MeetingRecord {pub meeting_app: String,pub title: Option<String>,pub attendees: Option<String>,+ pub note: Option<String>,pub detection_source: String,pub created_at: String,}diff --git a/crates/screenpipe-engine/src/routes/meetings.rs b/crates/screenpipe-engine/src/routes/meetings.rsindex eca70b395..726e0a84d 100644--- a/crates/screenpipe-engine/src/routes/meetings.rs+++ b/crates/screenpipe-engine/src/routes/meetings.rs@@ -23,6 +23,7 @@ pub struct UpdateMeetingRequest {pub meeting_end: Option<String>,pub title: Option<String>,pub attendees: Option<String>,+ pub note: Option<String>,pub meeting_app: Option<String>,}@@ -125,6 +126,7 @@ pub(crate) async fn update_meeting_handler(body.meeting_end.as_deref(),body.title.as_deref(),body.attendees.as_deref(),+ body.note.as_deref(),body.meeting_app.as_deref(),).await