Feature chore bug 007 #21

Merged
iamdoubz merged 68 commits from feature_chore_bug_007 into main 2026-07-12 12:59:04 -05:00
Showing only changes of commit 25204c0235 - Show all commits
+26
View File
@@ -343,6 +343,16 @@ pub trait Store: Send + Sync {
/// Manually rename a meeting — recordings otherwise default to "Untitled
/// meeting" with no other way to change that.
async fn rename_meeting(&self, meeting_id: &MeetingId, title: &str) -> Result<(), StoreError>;
/// Overwrite a meeting's start/end timestamps — used by bundle import
/// (FR-STORE-4) so a moved recording keeps its original date rather than
/// showing the import time (`create_meeting`/`finalize_meeting` both stamp
/// "now").
async fn set_meeting_times(
&self,
meeting_id: &MeetingId,
started_at: i64,
ended_at: Option<i64>,
) -> Result<(), StoreError>;
/// Names a speaker AND links them to a known `Participant` (T6.5/T6.6,
/// FR-SPK-4): the display name comes from the participant record, and
/// the shared `participant_id` is what gives naming "continuity" across
@@ -1211,6 +1221,22 @@ impl Store for SqliteStore {
Ok(())
}
async fn set_meeting_times(
&self,
meeting_id: &MeetingId,
started_at: i64,
ended_at: Option<i64>,
) -> Result<(), StoreError> {
sqlx::query("UPDATE meetings SET started_at = ?, ended_at = ?, updated_at = ? WHERE id = ?")
.bind(started_at)
.bind(ended_at)
.bind(now_unix())
.bind(meeting_id)
.execute(&self.pool)
.await?;
Ok(())
}
async fn map_speaker_to_participant(
&self,
meeting_id: &MeetingId,