Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

feat: Archive and Delete audio in the recording header, grouped header actions with Reprocess and More menus, an Archived view and an Audio removed filter in the sidebar, bulk archive, and video-aware labels (#394)

Murtaza Nasir8882b21dc023
diff --git a/docs/admin-guide/retention.md b/docs/admin-guide/retention.md
index ed6b7fdc..eac199de 100644
--- a/docs/admin-guide/retention.md
+++ b/docs/admin-guide/retention.md
@@ -41,7 +41,7 @@ DELETION_MODE=full_recording # Options: 'audio_only' or 'full_recording'
- **Deletes**: The media file only
- **Keeps**: Transcription, summary, notes, metadata
- **Use case**: Long-term record keeping with storage optimization
-- **Result**: Recordings appear in "Archived" view, transcription remains searchable
+- **Result**: Recordings are marked "Audio removed" and stay in the list; the transcription remains searchable
#### Full Recording Mode (`DELETION_MODE=full_recording`)
- **Deletes**: Complete recording including the media file, transcription, summary, notes
@@ -97,17 +97,21 @@ Individual tags can protect recordings from auto-deletion entirely.
- ✅ Works regardless of age or retention period
- ✅ Applies to all recordings with that tag
-## Archived Recordings
+## Audio Removed Recordings
-When `DELETION_MODE=audio_only`, recordings become "archived" after audio deletion.
+When `DELETION_MODE=audio_only` removes a recording's media file, the recording stays in the list, marked "Audio removed". Users who can delete recordings can also remove the media of a single recording by hand with **Delete audio, keep transcript** (or **Delete video, keep transcript** for a video) in the recording's **⋯** menu. Both paths leave the recording in the same state. For a retained video, the video file is the recording's only stored media, so removing it removes the video and its audio together.
-### Accessing Archived Recordings
+Earlier versions called this state "Archived". "Archived" now means something else: a recording the user has hidden from the main list without deleting anything (see [Recording list](../user-guide/first-steps.md#archiving-recordings)).
+
+### Finding Recordings with Removed Audio
1. Open the **Recordings** sidebar
-2. Click **Advanced Filters**
-3. Toggle **"Archived Recordings"** ON
+2. Expand the filters
+3. Turn on the **Audio removed** quick filter, next to Starred and Inbox
+
+The filter appears when audio-only retention is active or when the user is allowed to delete recordings.
-### What You Can Do with Archived Recordings
+### What You Can Do with Audio Removed Recordings
| Feature | Available | Notes |
|---------|-----------|-------|
@@ -115,16 +119,17 @@ When `DELETION_MODE=audio_only`, recordings become "archived" after audio deleti
| Search content | ✅ | Text search still works |
| Read summary | ✅ | AI summary preserved |
| View/edit notes | ✅ | All metadata accessible |
-| Play audio | ❌ | Audio file deleted |
-| Re-process | ❌ | Source audio unavailable |
+| Play audio or video | ❌ | Media file deleted |
+| Reprocess transcription | ❌ | Source audio unavailable |
+| Reprocess summary | ✅ | Uses the kept transcript |
| Share | ✅ | Can share transcription |
| Export | ✅ | Download transcript, summary, notes |
-### Archived Recording Indicators
+### Indicators
-- **Sidebar**: Gray "Archived" badge next to recording title
-- **Player**: Info banner: "Audio file has been deleted, but the transcription remains available"
-- **Filter**: Separate "Archived" view toggle in advanced filters
+- **Sidebar**: grey muted-speaker badge next to the recording title
+- **Player**: "The audio file was removed. The transcript, summary and notes remain available."
+- **Filter**: **Audio removed** quick filter in the sidebar filters
## Admin Controls
@@ -436,13 +441,13 @@ Get statistics about eligible recordings and current configuration.
3. Check tag assignments on recordings
4. Review exemption status via stats endpoint
-### Archived Recordings Not Showing
+### Recordings with Removed Audio Not Showing
**Check:**
-1. Toggle "Archived Recordings" filter in sidebar
-2. Verify `DELETION_MODE=audio_only` (full_recording doesn't archive)
-3. Check `audio_deleted_at` field in database
+1. Turn on the **Audio removed** quick filter in the sidebar filters
+2. Verify `DELETION_MODE=audio_only` (`full_recording` deletes the whole recording instead)
+3. Check the `audio_deleted_at` field in the database
## Security Considerations
diff --git a/docs/user-guide/api-reference.md b/docs/user-guide/api-reference.md
index 650a97fc..672aa76c 100644
--- a/docs/user-guide/api-reference.md
+++ b/docs/user-guide/api-reference.md
@@ -307,6 +307,7 @@ GET /api/v1/recordings
| `q` | string | - | Search query (title, participants) |
| `inbox` | boolean | - | Filter by inbox status |
| `starred` | boolean | - | Filter by starred status |
+| `archived` | boolean | - | Filter by archive status. Omitted returns archived and unarchived recordings, as before. |
| `folder_id` | string | - | Filter by folder. Pass an integer folder ID to list recordings in that folder, or the literal `none` to list recordings not in any folder. Requires folders to be enabled. |
**Response:**
@@ -543,6 +544,7 @@ PATCH /api/v1/recordings/{id}
"meeting_date": "2024-01-15T09:00:00Z",
"is_inbox": false,
"is_highlighted": true,
+ "is_archived": false,
"folder_id": 5
}
```
@@ -577,6 +579,23 @@ PUT /api/v1/recordings/{id}/summary
}
```
+### Delete Audio, Keep Transcript
+
+```http
+POST /api/v1/recordings/{id}/delete-audio
+```
+
+Deletes the recording's media file (the video, for a recording with retained video) and keeps the transcript, summary and notes. Requires the same permission as deleting the recording. Returns `409` when the audio is already removed or the recording is still processing.
+
+**Response:**
+
+```json
+{
+ "success": true,
+ "audio_deleted_at": "2026-09-29T06:50:17.968177"
+}
+```
+
### Delete Recording
```http
diff --git a/docs/user-guide/first-steps.md b/docs/user-guide/first-steps.md
index f211eff3..9ef6cfd8 100644
--- a/docs/user-guide/first-steps.md
+++ b/docs/user-guide/first-steps.md
@@ -24,6 +24,12 @@ The left sidebar is your command center for organizing and finding recordings. A
The filter system in Speakr is designed to be both powerful and intuitive. Click on "Active filters" to expand the filtering panel. You can filter by tags, which appear as colored pills that you can click to select or deselect. The date range filter offers convenient presets like "Today", "Yesterday", "This Week", and "Last Week", or you can set a custom date range using the date pickers. When filters are active, their count appears next to the filter label, and a clear button lets you reset all filters at once.
+### Archiving Recordings
+
+Archive a recording to take it out of the main list without deleting anything: click the archive icon next to the inbox and star icons at the top of an open recording, or select several recordings and use the archive button in the selection bar. The transcript, summary, notes, audio, tags and shares all stay. Search still finds archived recordings (they carry a small archive badge), and the **Archived** toggle below the search bar shows only archived recordings, where the same icon moves one back.
+
+Archiving is personal, like inbox and star: archiving a recording someone shared with you hides it only from your list.
+
### Recording List
Below the filters, your recordings are displayed as cards showing essential information at a glance. Each recording card displays the title prominently, followed by metadata including the participants (if speaker diarization was used), the recording date, and the duration. Colored tag pills show which categories have been assigned to each recording. The small icons on the right indicate the recording's processing status, with different colors for completed, processing, or failed transcriptions.
@@ -48,7 +54,7 @@ If your recording was processed with speaker diarization, you'll also see a Simp
## Recording Metadata Bar
-Spanning across the top of both the center and right panels, the metadata bar displays important recording information and provides quick access to actions. From left to right, you'll see the recording title, participant names (if identified), recording date and time, file size, and duration. The action buttons (folder, inbox, star, tags, reprocess, regenerate summary, identify speakers, share, delete) are now consolidated into the global header alongside the title — same icons, one row.
+Spanning across the top of both the center and right panels, the metadata bar displays important recording information and provides quick access to actions. From left to right, you'll see the recording title, participant names (if identified), recording date and time, file size, and duration. The action buttons sit in the global header alongside the title, in groups: inbox, star and archive; folder and tags; a **Reprocess** menu (transcription, summary, and reset for a stuck recording) and identify speakers; then share and a **⋯** menu with **Delete audio, keep transcript** and **Delete recording**. Deleting the audio keeps the transcript, summary and notes; for a video recording it deletes the video file.
## Right Rail Tabs (Desktop)
diff --git a/static/js/app.modular.js b/static/js/app.modular.js
index 98968724..79c61170 100644
--- a/static/js/app.modular.js
+++ b/static/js/app.modular.js
@@ -309,7 +309,8 @@ document.addEventListener('DOMContentLoaded', async () => {
const filterNeedsTranscription = ref(false);
const filterNeedsSummary = ref(false);
const filterNeedsSpeakers = ref(false);
- const showArchivedRecordings = ref(false);
+ const filterAudioRemoved = ref(false); // recordings whose media file was removed
+ const showArchivedRecordings = ref(false); // the user's archive view (#394)
const showSharedWithMe = ref(false);
// --- Pagination State ---
@@ -341,6 +342,8 @@ document.addEventListener('DOMContentLoaded', async () => {
// Detail-header "assign folder" dropdown (replaces a raw <select>
// whose OS-rendered option list ignored the app theme).
const showHeaderFolderMenu = ref(false);
+ const showHeaderReprocessMenu = ref(false);
+ const showHeaderMoreMenu = ref(false);
const tokenBudget = ref({
has_budget: false,
budget: null,
@@ -1473,7 +1476,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const currentUserName = ref('');
const canDeleteRecordings = ref(true);
const enableInternalSharing = ref(false);
- const enableArchiveToggle = ref(false);
+ const enableAudioRemovedFilter = ref(false);
const showUsernamesInUI = ref(false);
// --- Internal Sharing State ---
@@ -1790,14 +1793,14 @@ document.addEventListener('DOMContentLoaded', async () => {
showAdvancedFilters, filterTags, filterSpeakers, filterTagSearch, filterSpeakerSearch,
filterDateRange, filterDatePreset, filterTextQuery, filterStarred, filterInbox,
filterNeedsTranscription, filterNeedsSummary, filterNeedsSpeakers,
- showArchivedRecordings, showSharedWithMe, sortBy, selectedTagFilter,
+ filterAudioRemoved, showArchivedRecordings, showSharedWithMe, sortBy, selectedTagFilter,
// Pagination
currentPage, perPage, totalRecordings, totalPages, hasNextPage, hasPrevPage,
isLoadingMore, searchDebounceTimer,
// UI
- browser, isSidebarCollapsed, searchTipsExpanded, isUserMenuOpen, showHeaderFolderMenu, tokenBudget, isDarkMode,
+ browser, isSidebarCollapsed, searchTipsExpanded, isUserMenuOpen, showHeaderFolderMenu, showHeaderReprocessMenu, showHeaderMoreMenu, tokenBudget, isDarkMode,
currentColorScheme, showColorSchemeModal, windowWidth, mobileTab, mobileMoreOpen, isMetadataExpanded, expandedSection,
showSortOptions, currentLanguage, currentLanguageName, availableLanguages, showLanguageMenu,
colorSchemes, isMobileScreen, isMobileDevice,
@@ -1906,7 +1909,7 @@ document.addEventListener('DOMContentLoaded', async () => {
openAsrDropdownIndex,
// App Config
- useAsrEndpoint, connectorSupportsDiarization, connectorSupportsSpeakerCount, connectorSupportsExactSpeakerCount, speakerCountMode, connectorSupportsHotwords, connectorSupportsInitialPrompt, showTimestampsSimpleView, editorAutosave, audioPlayerPosition, formatTimestamp, currentUserName, canDeleteRecordings, enableInternalSharing, enableArchiveToggle, showUsernamesInUI,
+ useAsrEndpoint, connectorSupportsDiarization, connectorSupportsSpeakerCount, connectorSupportsExactSpeakerCount, speakerCountMode, connectorSupportsHotwords, connectorSupportsInitialPrompt, showTimestampsSimpleView, editorAutosave, audioPlayerPosition, formatTimestamp, currentUserName, canDeleteRecordings, enableInternalSharing, enableAudioRemovedFilter, showUsernamesInUI,
// Internal Sharing
showUnifiedShareModal, internalShareUserSearch, internalShareSearchResults,
@@ -2621,7 +2624,9 @@ document.addEventListener('DOMContentLoaded', async () => {
startReprocessingPoll: reprocessComposable.startReprocessingPoll,
t,
finalizeRecordingMerge: audioComposable.finalizeRecordingMerge,
- fetchRecordingsPage: recordingsComposable.fetchRecordingsPage
+ fetchRecordingsPage: recordingsComposable.fetchRecordingsPage,
+ searchQuery,
+ showArchivedRecordings
});
// Bridge merge-modal openers to the audio composable so the
@@ -3630,13 +3635,13 @@ document.addEventListener('DOMContentLoaded', async () => {
});
watch(showArchivedRecordings, (newValue, oldValue) => {
- // Prevent unnecessary reloads when being set by the other watcher
if (newValue === oldValue) return;
+ recordingsComposable.loadRecordings(1, false, searchQuery.value);
+ });
- // Reload recordings when switching between archived/normal view
- if (showArchivedRecordings.value) {
- showSharedWithMe.value = false; // Can't show both at once
- }
+ watch(filterAudioRemoved, (newValue, oldValue) => {
+ if (newValue === oldValue) return;
+ // A filter like starred or inbox, so it combines with Shared.
recordingsComposable.loadRecordings(1, false, searchQuery.value);
});
@@ -3645,9 +3650,6 @@ document.addEventListener('DOMContentLoaded', async () => {
if (newValue === oldValue) return;
// Reload recordings when switching to/from shared view
- if (showSharedWithMe.value) {
- showArchivedRecordings.value = false; // Can't show both at once
- }
recordingsComposable.loadRecordings(1, false, searchQuery.value);
});
@@ -4048,7 +4050,7 @@ document.addEventListener('DOMContentLoaded', async () => {
customBanner.value = config.custom_banner || '';
canDeleteRecordings.value = config.can_delete_recordings !== false;
enableInternalSharing.value = config.enable_internal_sharing === true;
- enableArchiveToggle.value = config.enable_archive_toggle === true;
+ enableAudioRemovedFilter.value = config.enable_audio_removed_filter === true;
showUsernamesInUI.value = config.show_usernames_in_ui === true;
enableIncognitoMode.value = config.enable_incognito_mode === true;
foldersEnabled.value = config.enable_folders === true;
diff --git a/static/js/modules/composables/bulk-operations.js b/static/js/modules/composables/bulk-operations.js
index e922fb23..2f693e6f 100644
--- a/static/js/modules/composables/bulk-operations.js
+++ b/static/js/modules/composables/bulk-operations.js
@@ -19,7 +19,9 @@ export function useBulkOperations({
startReprocessingPoll,
t,
finalizeRecordingMerge,
- fetchRecordingsPage
+ fetchRecordingsPage,
+ searchQuery,
+ showArchivedRecordings
}) {
const _t = (k, fallback) => (typeof t === 'function' ? t(k) : (fallback || k));
// Modal state
@@ -597,6 +599,44 @@ export function useBulkOperations({
}
};
+ // Archive for many recordings at once (#394). Archiving a majority
+ // unarchived selection archives it; otherwise it unarchives.
+ const bulkToggleArchive = async (value = null) => {
+ const ids = getSelectedIds();
+ if (ids.length === 0) return;
+ const tc = (key, n, params) => (window.i18n ? window.i18n.tc(key, n, params) : key);
+ if (value === null) {
+ const archivedCount = selectedRecordings.value.filter(r => r.is_archived).length;
+ value = archivedCount < ids.length / 2;
+ }
+ bulkActionInProgress.value = true;
+ try {
+ const response = await fetch('/api/recordings/bulk-toggle', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json', 'X-CSRFToken': getCsrfToken() },
+ body: JSON.stringify({ recording_ids: ids, field: 'archive', value })
+ });
+ const data = await response.json();
+ if (!response.ok) throw new Error(data.error || 'Failed to change the archive status');
+ const affected = new Set(data.affected_ids || ids);
+ // They leave the current view unless a search is showing both.
+ if (!searchQuery.value && value !== showArchivedRecordings.value) {
+ recordings.value = recordings.value.filter(r => !affected.has(r.id));
+ } else {
+ recordings.value.forEach(r => { if (affected.has(r.id)) r.is_archived = value; });
+ }
+ if (selectedRecording.value && affected.has(selectedRecording.value.id)) {
+ selectedRecording.value.is_archived = value;
+ }
+ showToast(tc(value ? 'archive.bulkArchived' : 'archive.bulkUnarchived', affected.size, { count: affected.size }), 'fa-box-archive', 3000, 'success');
+ } catch (error) {
+ console.error('Bulk archive error:', error);
+ setGlobalError(error.message);
+ } finally {
+ bulkActionInProgress.value = false;
+ }
+ };
+
const bulkToggleHighlight = async (value = null) => {
const ids = getSelectedIds();
if (ids.length === 0) return;
@@ -771,6 +811,7 @@ export function useBulkOperations({
// Bulk Toggle
bulkToggleInbox,
bulkToggleHighlight,
+ bulkToggleArchive,
// Bulk Folder
bulkAssignFolder
diff --git a/static/js/modules/composables/modals.js b/static/js/modules/composables/modals.js
index 3b1f71bc..23eb0b46 100644
--- a/static/js/modules/composables/modals.js
+++ b/static/js/modules/composables/modals.js
@@ -155,37 +155,51 @@ export function useModals(state, utils) {
}
};
- // =========================================
- // Archive Recording
- // =========================================
+ // Delete audio, keep transcript. Same right as deleting the recording;
+ // the recording stays in every list and shows as "Audio removed".
+ const showDeleteAudioModal = Vue.ref(false);
+ const recordingToDeleteAudio = Vue.ref(null);
+ const isDeletingAudio = Vue.ref(false);
+
+ const confirmDeleteAudio = (recording) => {
+ recordingToDeleteAudio.value = recording;
+ showDeleteAudioModal.value = true;
+ };
- const archiveRecording = async (recording) => {
+ const cancelDeleteAudio = () => {
+ showDeleteAudioModal.value = false;
+ recordingToDeleteAudio.value = null;
+ };
+
+ const deleteRecordingAudio = async () => {
+ const recording = recordingToDeleteAudio.value;
if (!recording) return;
+ const t = (key) => (window.i18n ? window.i18n.t(key) : key);
+ isDeletingAudio.value = true;
try {
- const csrfToken = document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');
- const response = await fetch(`/api/recordings/${recording.id}/archive`, {
+ const response = await fetch(`/recording/${recording.id}/delete_audio`, {
method: 'POST',
- headers: { 'X-CSRFToken': csrfToken }
+ headers: { 'Content-Type': 'application/json' }
});
const data = await response.json();
- if (!response.ok) throw new Error(data.error || 'Failed to archive recording');
-
- recording.is_archived = true;
- recording.audio_deleted_at = data.audio_deleted_at;
+ if (!response.ok) throw new Error(data.error || 'Failed to remove the audio');
- // Update in recordings list
+ const removedAt = data.recording && data.recording.audio_deleted_at;
+ recording.audio_deleted_at = removedAt;
const index = recordings.value.findIndex(r => r.id === recording.id);
- if (index !== -1) {
- recordings.value[index].is_archived = true;
- recordings.value[index].audio_deleted_at = data.audio_deleted_at;
+ if (index !== -1) recordings.value[index].audio_deleted_at = removedAt;
+ if (selectedRecording.value && selectedRecording.value.id === recording.id) {
+ selectedRecording.value.audio_deleted_at = removedAt;
}
-
- showToast('Recording archived (audio deleted)', 'fa-archive');
+ const isVideo = !!(recording.mime_type && recording.mime_type.startsWith('video/'));
+ showToast(t(isVideo ? 'deleteAudio.doneVideo' : 'deleteAudio.done'), 'fa-volume-xmark');
+ cancelDeleteAudio();
} catch (error) {
- setGlobalError(`Failed to archive recording: ${error.message}`);
+ setGlobalError(error.message);
+ } finally {
+ isDeletingAudio.value = false;
}
};
-
// =========================================
// Edit Tags Modal
// =========================================
@@ -660,8 +674,9 @@ export function useModals(state, utils) {
cancelDelete,
deleteRecording,
- // Archive
- archiveRecording,
+ // Delete audio
+ showDeleteAudioModal, recordingToDeleteAudio, isDeletingAudio,
+ confirmDeleteAudio, cancelDeleteAudio, deleteRecordingAudio,
// Tags modal
openEditTagsModal,
diff --git a/static/js/modules/composables/recordings-label-filter.test.js b/static/js/modules/composables/recordings-label-filter.test.js
index 4041c56a..3a4b0901 100644
--- a/static/js/modules/composables/recordings-label-filter.test.js
+++ b/static/js/modules/composables/recordings-label-filter.test.js
@@ -34,6 +34,7 @@ function makeState(overrides = {}) {
hasPrevPage: ref(false),
showSharedWithMe: ref(false),
showArchivedRecordings: ref(false),
+ filterAudioRemoved: ref(false),
searchQuery: ref(''),
searchDebounceTimer: ref(null),
filterTags: ref([]),
diff --git a/static/js/modules/composables/recordings.js b/static/js/modules/composables/recordings.js
index 386e539d..b77c977c 100644
--- a/static/js/modules/composables/recordings.js
+++ b/static/js/modules/composables/recordings.js
@@ -10,7 +10,7 @@ export function useRecordings(state, utils, reprocessComposable) {
const {
recordings, selectedRecording, isLoadingRecordings, isLoadingMore,
currentPage, perPage, totalRecordings, totalPages, hasNextPage, hasPrevPage,
- showSharedWithMe, showArchivedRecordings, searchQuery, searchDebounceTimer,
+ showSharedWithMe, filterAudioRemoved, showArchivedRecordings, searchQuery, searchDebounceTimer,
filterTags, filterSpeakers, filterDatePreset, filterDateRange, filterTextQuery,
filterStarred, filterInbox, filterNeedsTranscription, filterNeedsSummary, filterNeedsSpeakers,
filterFolder, sortBy,
@@ -55,6 +55,7 @@ export function useRecordings(state, utils, reprocessComposable) {
q: searchQueryParam.trim(),
sort_by: sortBy.value || '',
archived: showArchivedRecordings.value ? 'true' : '',
+ audio_removed: filterAudioRemoved.value ? 'true' : '',
shared: showSharedWithMe.value ? 'true' : '',
starred: filterStarred.value ? 'true' : '',
inbox: filterInbox.value ? 'true' : '',
@@ -377,6 +378,41 @@ export function useRecordings(state, utils, reprocessComposable) {
}
};
+ // Archive (#394): personal, like inbox and star. An archived recording
+ // leaves the main list (search still finds it), and an unarchived one
+ // leaves the archive view; the open recording stays open either way.
+ const toggleArchive = async (recording) => {
+ if (!recording || !recording.id) return;
+ const t = (key) => (window.i18n ? window.i18n.t(key) : key);
+ try {
+ const response = await fetch(`/recording/${recording.id}/toggle_archive`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' }
+ });
+ const data = await response.json();
+ if (!response.ok) throw new Error(data.error || 'Failed to change the archive status');
+
+ recording.is_archived = data.is_archived;
+ if (selectedRecording.value && selectedRecording.value.id === recording.id) {
+ selectedRecording.value.is_archived = data.is_archived;
+ }
+ const leavesView = !searchQuery.value && (data.is_archived !== showArchivedRecordings.value);
+ const index = recordings.value.findIndex(r => r.id === recording.id);
+ if (index !== -1) {
+ if (leavesView) {
+ recordings.value.splice(index, 1);
+ totalRecordings.value = Math.max(0, (totalRecordings.value || 1) - 1);
+ } else {
+ recordings.value[index].is_archived = data.is_archived;
+ }
+ }
+ showToast(t(data.is_archived ? 'archive.archivedToast' : 'archive.unarchivedToast'), 'fa-box-archive');
+ } catch (error) {
+ console.error('Toggle Archive Error:', error);
+ setGlobalError(error.message);
+ }
+ };
+
const getRecordingTags = (recording) => {
if (!recording || !recording.tags) return [];
return recording.tags || [];
@@ -454,6 +490,7 @@ export function useRecordings(state, utils, reprocessComposable) {
filterTextQuery.value = '';
filterStarred.value = false;
filterInbox.value = false;
+ filterAudioRemoved.value = false;
filterNeedsTranscription.value = false;
filterNeedsSummary.value = false;
filterNeedsSpeakers.value = false;
@@ -534,6 +571,7 @@ export function useRecordings(state, utils, reprocessComposable) {
hasUnsavedRecording,
toggleInbox,
toggleHighlight,
+ toggleArchive,
getRecordingTags,
getAvailableTagsForRecording,
filterByTag,
diff --git a/static/js/modules/composables/ui.js b/static/js/modules/composables/ui.js
index f086535e..cb528e90 100644
--- a/static/js/modules/composables/ui.js
+++ b/static/js/modules/composables/ui.js
@@ -33,7 +33,7 @@ export function resolveSidebarCollapsed(saved, isMobileScreen) {
export function useUI(state, utils, processedTranscription) {
const {
isDarkMode, currentColorScheme, colorSchemes, isSidebarCollapsed,
- showColorSchemeModal, isUserMenuOpen, showHeaderFolderMenu, currentView, showUploadModal, selectedRecording,
+ showColorSchemeModal, isUserMenuOpen, showHeaderFolderMenu, showHeaderReprocessMenu, showHeaderMoreMenu, currentView, showUploadModal, selectedRecording,
windowWidth, isMobileScreen, showAdvancedFilters, showSortOptions,
searchTipsExpanded, isMetadataExpanded, editingParticipants, editingMeetingDate,
editingSummary, tempSummaryContent, summaryMarkdownEditorInstance,
@@ -1940,6 +1940,14 @@ export function useUI(state, utils, processedTranscription) {
}
}
+ // Close the detail-header Reprocess and More menus if clicking outside
+ if (showHeaderReprocessMenu.value && !target.closest('[data-header-reprocess-menu]')) {
+ showHeaderReprocessMenu.value = false;
+ }
+ if (showHeaderMoreMenu.value && !target.closest('[data-header-more-menu]')) {
+ showHeaderMoreMenu.value = false;
+ }
+
// Close sort options if clicking outside
if (showSortOptions.value) {
const sortButton = target.closest('[data-sort-toggle]');
diff --git a/static/locales/de.json b/static/locales/de.json
index 0baa31da..875612d2 100644
--- a/static/locales/de.json
+++ b/static/locales/de.json
@@ -357,11 +357,28 @@
"title": "API-Token",
"usageExamples": "Verwendungsbeispiele"
},
+ "archive": {
+ "archive": "Archivieren",
+ "archived": "Archiviert",
+ "archivedToast": "Aufnahme archiviert",
+ "bulkArchived": "{{count}} Aufnahme archiviert",
+ "bulkArchivedPlural": "{{count}} Aufnahmen archiviert",
+ "bulkUnarchived": "{{count}} Aufnahme aus dem Archiv geholt",
+ "bulkUnarchivedPlural": "{{count}} Aufnahmen aus dem Archiv geholt",
+ "showArchived": "Archivierte Aufnahmen anzeigen",
+ "toggleSelected": "Ausgewählte Aufnahmen archivieren oder aus dem Archiv holen",
+ "unarchive": "Aus dem Archiv holen",
+ "unarchivedToast": "Aufnahme aus dem Archiv geholt"
+ },
"asrEditor": {
"saved": "Gespeichert",
"ctrlSHint": "Strg+S zum Speichern",
"saveWithoutClosing": "Speichern ohne Schließen (Strg+S)"
},
+ "audioRemoved": {
+ "filterHint": "Aufnahmen, deren Audiodatei entfernt wurde; das Transkript bleibt erhalten",
+ "label": "Audio entfernt"
+ },
"bulkActions": {
"addOrRemoveTags": "Tags hinzufügen oder entfernen",
"deleteSelected": "Auswahl löschen",
@@ -629,6 +646,18 @@
"confirmMessage": "Sind Sie sicher, dass Sie alle gespeicherten Sprecher löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.",
"title": "Alle Sprecher Löschen"
},
+ "deleteAudio": {
+ "action": "Audio löschen, Transkript behalten",
+ "actionVideo": "Video löschen, Transkript behalten",
+ "body": "Die Audiodatei von „{{title}}“ wird gelöscht. Transkript, Zusammenfassung, Notizen und Tags bleiben erhalten, aber die Aufnahme kann nicht mehr abgespielt oder neu transkribiert werden.",
+ "bodyVideo": "Die Videodatei von „{{title}}“ wird einschließlich Ton gelöscht. Transkript, Zusammenfassung, Notizen und Tags bleiben erhalten, aber die Aufnahme kann nicht mehr abgespielt oder neu transkribiert werden.",
+ "confirm": "Audio löschen",
+ "confirmVideo": "Video löschen",
+ "done": "Audio entfernt. Das Transkript bleibt erhalten.",
+ "doneVideo": "Video entfernt. Das Transkript bleibt erhalten.",
+ "title": "Audio löschen?",
+ "titleVideo": "Video löschen?"
+ },
"detail": {
"hints": "Hinweise",
"hintsUsed": "Für diese Aufnahme verwendete Transkriptionshinweise"
@@ -1043,6 +1072,11 @@
"title": "Gruppenverwaltung",
"updateTeam": "Team aktualisieren"
},
+ "headerActions": {
+ "deleteRecording": "Aufnahme löschen",
+ "more": "Weitere Aktionen",
+ "reprocess": "Neu verarbeiten"
+ },
"help": {
"actions": "Aktionen",
"activeFilters": "Aktive Filter",
@@ -1057,7 +1091,7 @@
"approachingLimit": "Nähert sich {{limit}}MB-Limit",
"askAboutTranscription": "Fragen zu dieser Transkription stellen",
"audioDeletedDescription": "Die Audiodatei für diese Aufnahme wurde gelöscht, aber die Transkription ist weiterhin verfügbar.",
- "audioDeletedMessage": "Audiodatei wurde archiviert und ist nicht mehr zur Wiedergabe verfügbar.",
+ "audioDeletedMessage": "Die Audiodatei wurde entfernt. Transkript, Zusammenfassung und Notizen bleiben verfügbar.",
"audioDeletedTitle": "Audiodatei gelöscht",
"audioPlayer": "Audio-Player",
"autoIdentify": "Automatisch identifizieren",
diff --git a/static/locales/en.json b/static/locales/en.json
index 0ed75b20..535fd0d8 100644
--- a/static/locales/en.json
+++ b/static/locales/en.json
@@ -357,11 +357,28 @@
"title": "API Tokens",
"usageExamples": "Usage Examples"
},
+ "archive": {
+ "archive": "Archive",
+ "archived": "Archived",
+ "archivedToast": "Recording archived",
+ "bulkArchived": "{{count}} recording archived",
+ "bulkArchivedPlural": "{{count}} recordings archived",
+ "bulkUnarchived": "{{count}} recording moved out of the archive",
+ "bulkUnarchivedPlural": "{{count}} recordings moved out of the archive",
+ "showArchived": "Show archived recordings",
+ "toggleSelected": "Archive or unarchive the selected recordings",
+ "unarchive": "Move out of the archive",
+ "unarchivedToast": "Recording moved out of the archive"
+ },
"asrEditor": {
"saved": "Saved",
"ctrlSHint": "Ctrl+S to save",
"saveWithoutClosing": "Save without closing (Ctrl+S)"
},
+ "audioRemoved": {
+ "filterHint": "Recordings whose audio file was removed; the transcript is kept",
+ "label": "Audio removed"
+ },
"bulkActions": {
"addOrRemoveTags": "Add or remove tags",
"deleteSelected": "Delete selected",
@@ -629,6 +646,18 @@
"confirmMessage": "Are you sure you want to delete all saved speakers? This action cannot be undone.",
"title": "Delete All Speakers"
},
+ "deleteAudio": {
+ "action": "Delete audio, keep transcript",
+ "actionVideo": "Delete video, keep transcript",
+ "body": "The audio file of \"{{title}}\" will be deleted. The transcript, summary, notes and tags stay, but the recording can no longer be played or transcribed again.",
+ "bodyVideo": "The video file of \"{{title}}\", including its audio, will be deleted. The transcript, summary, notes and tags stay, but the recording can no longer be played or transcribed again.",
+ "confirm": "Delete audio",
+ "confirmVideo": "Delete video",
+ "done": "Audio removed. The transcript is kept.",
+ "doneVideo": "Video removed. The transcript is kept.",
+ "title": "Delete the audio?",
+ "titleVideo": "Delete the video?"
+ },
"detail": {
"hints": "Hints",
"hintsUsed": "Transcription hints used for this recording"
@@ -1043,6 +1072,11 @@
"title": "Group Management",
"updateTeam": "Update Group"
},
+ "headerActions": {
+ "deleteRecording": "Delete recording",
+ "more": "More actions",
+ "reprocess": "Reprocess"
+ },
"help": {
"actions": "Actions",
"activeFilters": "Active filters",
@@ -1057,7 +1091,7 @@
"approachingLimit": "Approaching {{limit}}MB limit",
"askAboutTranscription": "Ask questions about this transcription",
"audioDeletedDescription": "The audio file for this recording has been deleted, but the transcription remains available.",
- "audioDeletedMessage": "Audio file has been archived and is no longer available for playback.",
+ "audioDeletedMessage": "The audio file was removed. The transcript, summary and notes remain available.",
"audioDeletedTitle": "Audio file deleted",
"audioPlayer": "Audio Player",
"autoIdentify": "Auto Identify",
diff --git a/static/locales/es.json b/static/locales/es.json
index b4c440d3..b2b79f93 100644
--- a/static/locales/es.json
+++ b/static/locales/es.json
@@ -357,11 +357,28 @@
"title": "Tokens de API",
"usageExamples": "Ejemplos de uso"
},
+ "archive": {
+ "archive": "Archivar",
+ "archived": "Archivadas",
+ "archivedToast": "Grabación archivada",
+ "bulkArchived": "{{count}} grabación archivada",
+ "bulkArchivedPlural": "{{count}} grabaciones archivadas",
+ "bulkUnarchived": "{{count}} grabación sacada del archivo",
+ "bulkUnarchivedPlural": "{{count}} grabaciones sacadas del archivo",
+ "showArchived": "Mostrar grabaciones archivadas",
+ "toggleSelected": "Archivar o sacar del archivo las grabaciones seleccionadas",
+ "unarchive": "Sacar del archivo",
+ "unarchivedToast": "Grabación sacada del archivo"
+ },
"asrEditor": {
"saved": "Guardado",
"ctrlSHint": "Ctrl+S para guardar",
"saveWithoutClosing": "Guardar sin cerrar (Ctrl+S)"
},
+ "audioRemoved": {
+ "filterHint": "Grabaciones cuyo archivo de audio se eliminó; la transcripción se conserva",
+ "label": "Audio eliminado"
+ },
"bulkActions": {
"addOrRemoveTags": "Añadir o quitar etiquetas",
"deleteSelected": "Eliminar seleccionados",
@@ -629,6 +646,18 @@
"confirmMessage": "¿Estás seguro de que quieres eliminar todos los oradores guardados? Esta acción no se puede deshacer.",
"title": "Eliminar Todos los Oradores"
},
+ "deleteAudio": {
+ "action": "Eliminar audio, conservar transcripción",
+ "actionVideo": "Eliminar vídeo, conservar transcripción",
+ "body": "Se eliminará el archivo de audio de «{{title}}». La transcripción, el resumen, las notas y las etiquetas se conservan, pero la grabación ya no podrá reproducirse ni volver a transcribirse.",
+ "bodyVideo": "Se eliminará el archivo de vídeo de «{{title}}», incluido su audio. La transcripción, el resumen, las notas y las etiquetas se conservan, pero la grabación ya no podrá reproducirse ni volver a transcribirse.",
+ "confirm": "Eliminar audio",
+ "confirmVideo": "Eliminar vídeo",
+ "done": "Audio eliminado. La transcripción se conserva.",
+ "doneVideo": "Vídeo eliminado. La transcripción se conserva.",
+ "title": "¿Eliminar el audio?",
+ "titleVideo": "¿Eliminar el vídeo?"
+ },
"detail": {
"hints": "Indicaciones",
"hintsUsed": "Indicaciones de transcripción usadas en esta grabación"
@@ -1043,6 +1072,11 @@
"title": "Gestión de Grupos",
"updateTeam": "Actualizar Equipo"
},
+ "headerActions": {
+ "deleteRecording": "Eliminar grabación",
+ "more": "Más acciones",
+ "reprocess": "Reprocesar"
+ },
"help": {
"actions": "Acciones",
"activeFilters": "Filtros activos",
@@ -1057,7 +1091,7 @@
"approachingLimit": "Acercándose al límite de {{limit}}MB",
"askAboutTranscription": "Haz preguntas sobre esta transcripción",
"audioDeletedDescription": "El archivo de audio de esta grabación ha sido eliminado, pero la transcripción sigue disponible.",
- "audioDeletedMessage": "El archivo de audio ha sido archivado y ya no está disponible para reproducción.",
+ "audioDeletedMessage": "El archivo de audio se eliminó. La transcripción, el resumen y las notas siguen disponibles.",
"audioDeletedTitle": "Archivo de audio eliminado",
"audioPlayer": "Reproductor de Audio",
"autoIdentify": "Identificar Automáticamente",
diff --git a/static/locales/fr.json b/static/locales/fr.json
index f5d15f18..9c2b3674 100644
--- a/static/locales/fr.json
+++ b/static/locales/fr.json
@@ -357,11 +357,28 @@
"title": "Jetons API",
"usageExamples": "Exemples d'utilisation"
},
+ "archive": {
+ "archive": "Archiver",
+ "archived": "Archivés",
+ "archivedToast": "Enregistrement archivé",
+ "bulkArchived": "{{count}} enregistrement archivé",
+ "bulkArchivedPlural": "{{count}} enregistrements archivés",
+ "bulkUnarchived": "{{count}} enregistrement sorti de l’archive",
+ "bulkUnarchivedPlural": "{{count}} enregistrements sortis de l’archive",
+ "showArchived": "Afficher les enregistrements archivés",
+ "toggleSelected": "Archiver ou sortir de l’archive les enregistrements sélectionnés",
+ "unarchive": "Sortir de l’archive",
+ "unarchivedToast": "Enregistrement sorti de l’archive"
+ },
"asrEditor": {
"saved": "Enregistré",
"ctrlSHint": "Ctrl+S pour enregistrer",
"saveWithoutClosing": "Enregistrer sans fermer (Ctrl+S)"
},
+ "audioRemoved": {
+ "filterHint": "Enregistrements dont le fichier audio a été supprimé ; la transcription est conservée",
+ "label": "Audio supprimé"
+ },
"bulkActions": {
"addOrRemoveTags": "Ajouter ou retirer des étiquettes",
"deleteSelected": "Supprimer la sélection",
@@ -629,6 +646,18 @@
"confirmMessage": "Êtes-vous sûr de vouloir supprimer tous les intervenants sauvegardés ? Cette action ne peut pas être annulée.",
"title": "Supprimer Tous les Intervenants"
},
+ "deleteAudio": {
+ "action": "Supprimer l’audio, garder la transcription",
+ "actionVideo": "Supprimer la vidéo, garder la transcription",
+ "body": "Le fichier audio de « {{title}} » sera supprimé. La transcription, le résumé, les notes et les étiquettes sont conservés, mais l’enregistrement ne pourra plus être lu ni retranscrit.",
+ "bodyVideo": "Le fichier vidéo de « {{title}} », son audio compris, sera supprimé. La transcription, le résumé, les notes et les étiquettes sont conservés, mais l’enregistrement ne pourra plus être lu ni retranscrit.",
+ "confirm": "Supprimer l’audio",
+ "confirmVideo": "Supprimer la vidéo",
+ "done": "Audio supprimé. La transcription est conservée.",
+ "doneVideo": "Vidéo supprimée. La transcription est conservée.",
+ "title": "Supprimer l’audio ?",
+ "titleVideo": "Supprimer la vidéo ?"
+ },
"detail": {
"hints": "Indices",
"hintsUsed": "Indices de transcription utilisés pour cet enregistrement"
@@ -1043,6 +1072,11 @@
"title": "Gestion de Groupe",
"updateTeam": "Mettre à jour l'Équipe"
},
+ "headerActions": {
+ "deleteRecording": "Supprimer l’enregistrement",
+ "more": "Autres actions",
+ "reprocess": "Retraiter"
+ },
"help": {
"actions": "Actions",
"activeFilters": "Filtres actifs",
@@ -1057,7 +1091,7 @@
"approachingLimit": "Approche de la limite de {{limit}}MB",
"askAboutTranscription": "Posez des questions sur cette transcription",
"audioDeletedDescription": "Le fichier audio de cet enregistrement a été supprimé, mais la transcription reste disponible.",
- "audioDeletedMessage": "Le fichier audio a été archivé et n'est plus disponible pour la lecture.",
+ "audioDeletedMessage": "Le fichier audio a été supprimé. La transcription, le résumé et les notes restent disponibles.",
"audioDeletedTitle": "Fichier audio supprimé",
"audioPlayer": "Lecteur Audio",
"autoIdentify": "Identifier Automatiquement",
diff --git a/static/locales/pt-BR.json b/static/locales/pt-BR.json
index 9a6629cb..5d41a3cb 100644
--- a/static/locales/pt-BR.json
+++ b/static/locales/pt-BR.json
@@ -357,11 +357,28 @@
"title": "Tokens de API",
"usageExamples": "Exemplos de Uso"
},
+ "archive": {
+ "archive": "Arquivar",
+ "archived": "Arquivadas",
+ "archivedToast": "Gravação arquivada",
+ "bulkArchived": "{{count}} gravação arquivada",
+ "bulkArchivedPlural": "{{count}} gravações arquivadas",
+ "bulkUnarchived": "{{count}} gravação tirada do arquivo",
+ "bulkUnarchivedPlural": "{{count}} gravações tiradas do arquivo",
+ "showArchived": "Mostrar gravações arquivadas",
+ "toggleSelected": "Arquivar ou tirar do arquivo as gravações selecionadas",
+ "unarchive": "Tirar do arquivo",
+ "unarchivedToast": "Gravação tirada do arquivo"
+ },
"asrEditor": {
"ctrlSHint": "Ctrl+S para salvar",
"saveWithoutClosing": "Salvar sem fechar (Ctrl+S)",
"saved": "Salvo"
},
+ "audioRemoved": {
+ "filterHint": "Gravações cujo arquivo de áudio foi removido; a transcrição é mantida",
+ "label": "Áudio removido"
+ },
"bulkActions": {
"addOrRemoveTags": "Adicionar ou remover tags",
"deleteSelected": "Excluir selecionados",
@@ -629,6 +646,18 @@
"confirmMessage": "Tem certeza de que deseja deletar todos os oradores salvos? Esta ação não pode ser desfeita.",
"title": "Deletar Todos os Oradores"
},
+ "deleteAudio": {
+ "action": "Excluir áudio, manter transcrição",
+ "actionVideo": "Excluir vídeo, manter transcrição",
+ "body": "O arquivo de áudio de \"{{title}}\" será excluído. A transcrição, o resumo, as notas e as etiquetas permanecem, mas a gravação não poderá mais ser reproduzida nem transcrita novamente.",
+ "bodyVideo": "O arquivo de vídeo de \"{{title}}\", incluindo o áudio, será excluído. A transcrição, o resumo, as notas e as etiquetas permanecem, mas a gravação não poderá mais ser reproduzida nem transcrita novamente.",
+ "confirm": "Excluir áudio",
+ "confirmVideo": "Excluir vídeo",
+ "done": "Áudio removido. A transcrição foi mantida.",
+ "doneVideo": "Vídeo removido. A transcrição foi mantida.",
+ "title": "Excluir o áudio?",
+ "titleVideo": "Excluir o vídeo?"
+ },
"detail": {
"hints": "Dicas",
"hintsUsed": "Dicas de transcrição usadas nesta gravação"
@@ -1043,6 +1072,11 @@
"title": "Gerenciamento de Grupos",
"updateTeam": "Atualizar Grupo"
},
+ "headerActions": {
+ "deleteRecording": "Excluir gravação",
+ "more": "Mais ações",
+ "reprocess": "Reprocessar"
+ },
"help": {
"actions": "Ações",
"activeFilters": "Filtros ativos",
@@ -1057,7 +1091,7 @@
"approachingLimit": "Aproximando limite de {{limit}}MB",
"askAboutTranscription": "Faça perguntas sobre esta transcrição",
"audioDeletedDescription": "O arquivo de áudio para esta gravação foi deletado, mas a transcrição permanece disponível.",
- "audioDeletedMessage": "O arquivo de áudio foi arquivado e não está mais disponível para reprodução.",
+ "audioDeletedMessage": "O arquivo de áudio foi removido. A transcrição, o resumo e as notas continuam disponíveis.",
"audioDeletedTitle": "Arquivo de áudio deletado",
"audioPlayer": "Reprodutor de Áudio",
"autoIdentify": "Identificar Automaticamente",
diff --git a/static/locales/ru.json b/static/locales/ru.json
index 2cd7a42f..c9e3463c 100644
--- a/static/locales/ru.json
+++ b/static/locales/ru.json
@@ -357,11 +357,28 @@
"title": "API-токены",
"usageExamples": "Примеры использования"
},
+ "archive": {
+ "archive": "В архив",
+ "archived": "Архив",
+ "archivedToast": "Запись перемещена в архив",
+ "bulkArchived": "Перемещено в архив: {{count}}",
+ "bulkArchivedPlural": "Перемещено в архив: {{count}}",
+ "bulkUnarchived": "Возвращено из архива: {{count}}",
+ "bulkUnarchivedPlural": "Возвращено из архива: {{count}}",
+ "showArchived": "Показать записи в архиве",
+ "toggleSelected": "Переместить выбранные записи в архив или вернуть их",
+ "unarchive": "Вернуть из архива",
+ "unarchivedToast": "Запись возвращена из архива"
+ },
"asrEditor": {
"saved": "Сохранено",
"ctrlSHint": "Ctrl+S для сохранения",
"saveWithoutClosing": "Сохранить без закрытия (Ctrl+S)"
},
+ "audioRemoved": {
+ "filterHint": "Записи, у которых удалён аудиофайл; расшифровка сохранена",
+ "label": "Аудио удалено"
+ },
"bulkActions": {
"addOrRemoveTags": "Добавить или убрать теги",
"deleteSelected": "Удалить выбранные",
@@ -629,6 +646,18 @@
"confirmMessage": "Вы уверены, что хотите удалить всех сохранённых спикеров? Это действие нельзя отменить.",
"title": "Удалить всех спикеров"
},
+ "deleteAudio": {
+ "action": "Удалить аудио, сохранить расшифровку",
+ "actionVideo": "Удалить видео, сохранить расшифровку",
+ "body": "Аудиофайл «{{title}}» будет удалён. Расшифровка, сводка, заметки и теги сохранятся, но запись больше нельзя будет воспроизвести или расшифровать заново.",
+ "bodyVideo": "Видеофайл «{{title}}» вместе со звуком будет удалён. Расшифровка, сводка, заметки и теги сохранятся, но запись больше нельзя будет воспроизвести или расшифровать заново.",
+ "confirm": "Удалить аудио",
+ "confirmVideo": "Удалить видео",
+ "done": "Аудио удалено. Расшифровка сохранена.",
+ "doneVideo": "Видео удалено. Расшифровка сохранена.",
+ "title": "Удалить аудио?",
+ "titleVideo": "Удалить видео?"
+ },
"detail": {
"hints": "Подсказки",
"hintsUsed": "Подсказки транскрипции, использованные для этой записи"
@@ -1043,6 +1072,11 @@
"title": "Управление группами",
"updateTeam": "Обновить группу"
},
+ "headerActions": {
+ "deleteRecording": "Удалить запись",
+ "more": "Другие действия",
+ "reprocess": "Обработать заново"
+ },
"help": {
"actions": "Действия",
"activeFilters": "Активные фильтры",
@@ -1057,7 +1091,7 @@
"approachingLimit": "Приближается лимит в {{limit}} МБ",
"askAboutTranscription": "Задавайте вопросы об этой транскрипции",
"audioDeletedDescription": "Аудиофайл для этой записи был удалён, но транскрипция остаётся доступной.",
- "audioDeletedMessage": "Аудиофайл был архивирован и больше не доступен для воспроизведения.",
+ "audioDeletedMessage": "Аудиофайл удалён. Расшифровка, сводка и заметки по-прежнему доступны.",
"audioDeletedTitle": "Аудиофайл удалён",
"audioPlayer": "Аудиоплеер",
"autoIdentify": "Автоопределение",
diff --git a/static/locales/zh.json b/static/locales/zh.json
index 03f6688d..473755fc 100644
--- a/static/locales/zh.json
+++ b/static/locales/zh.json
@@ -357,11 +357,28 @@
"title": "API 令牌",
"usageExamples": "使用示例"
},
+ "archive": {
+ "archive": "归档",
+ "archived": "已归档",
+ "archivedToast": "录音已归档",
+ "bulkArchived": "已归档 {{count}} 条录音",
+ "bulkArchivedPlural": "已归档 {{count}} 条录音",
+ "bulkUnarchived": "已移出归档 {{count}} 条录音",
+ "bulkUnarchivedPlural": "已移出归档 {{count}} 条录音",
+ "showArchived": "显示已归档的录音",
+ "toggleSelected": "归档或移出归档所选录音",
+ "unarchive": "移出归档",
+ "unarchivedToast": "录音已移出归档"
+ },
"asrEditor": {
"saved": "已保存",
"ctrlSHint": "Ctrl+S 保存",
"saveWithoutClosing": "保存但不关闭 (Ctrl+S)"
},
+ "audioRemoved": {
+ "filterHint": "音频文件已删除的录音;转录文本保留",
+ "label": "音频已删除"
+ },
"bulkActions": {
"addOrRemoveTags": "添加或移除标签",
"deleteSelected": "删除所选",
@@ -629,6 +646,18 @@
"confirmMessage": "您确定要删除所有保存的发言人吗?此操作无法撤销。",
"title": "删除所有发言人"
},
+ "deleteAudio": {
+ "action": "删除音频,保留转录",
+ "actionVideo": "删除视频,保留转录",
+ "body": "“{{title}}”的音频文件将被删除。转录文本、摘要、笔记和标签会保留,但该录音将无法再播放或重新转录。",
+ "bodyVideo": "“{{title}}”的视频文件(包括其音频)将被删除。转录文本、摘要、笔记和标签会保留,但该录音将无法再播放或重新转录。",
+ "confirm": "删除音频",
+ "confirmVideo": "删除视频",
+ "done": "音频已删除,转录文本已保留。",
+ "doneVideo": "视频已删除,转录文本已保留。",
+ "title": "删除音频?",
+ "titleVideo": "删除视频?"
+ },
"detail": {
"hints": "提示",
"hintsUsed": "本次录音使用的转录提示"
@@ -1043,6 +1072,11 @@
"title": "群组管理",
"updateTeam": "更新团队"
},
+ "headerActions": {
+ "deleteRecording": "删除录音",
+ "more": "更多操作",
+ "reprocess": "重新处理"
+ },
"help": {
"actions": "操作",
"activeFilters": "活动筛选器",
@@ -1057,7 +1091,7 @@
"approachingLimit": "接近 {{limit}}MB 限制",
"askAboutTranscription": "询问有关此转录的问题",
"audioDeletedDescription": "此录音的音频文件已被删除,但转录内容仍然可用。",
- "audioDeletedMessage": "音频文件已归档,无法播放。",
+ "audioDeletedMessage": "音频文件已删除。转录文本、摘要和笔记仍可查看。",
"audioDeletedTitle": "音频文件已删除",
"audioPlayer": "音频播放器",
"autoIdentify": "自动识别",
diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.html
index 6a7cb308..852c49c0 100644
--- a/templates/components/detail/mobile-header.html
+++ b/templates/components/detail/mobile-header.html
@@ -178,6 +178,26 @@
<div class="rounded-md overflow-hidden" style="background: var(--bg-tertiary);">
<div class="flex items-center gap-0.5 overflow-x-auto px-1 py-1">
<template v-if="!selectedRecording.incognito">
+ <!-- Inbox / highlight active state uses :style not
+ :class because primitives.css's
+ .btn--icon:not(.btn--primary):not(.btn--danger):not(.btn--ghost):not(.btn--quiet)
+ rule for default colour has higher specificity
+ than a single Tailwind text-* utility, so the
+ conditional text-blue-500 / text-yellow-500
+ classes never won — inline style sidesteps the
+ specificity contest. -->
+ <button @click.stop="toggleInbox(selectedRecording)"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ :style="selectedRecording.is_inbox ? 'color: #3b82f6;' : ''"
+ :title="t('sidebar.inbox')"><i class="fas fa-inbox"></i></button>
+ <button @click.stop="toggleHighlight(selectedRecording)"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ :style="selectedRecording.is_highlighted ? 'color: #eab308;' : ''"
+ :title="t('tooltips.highlight')"><i class="fas fa-star"></i></button>
+ <button @click.stop="toggleArchive(selectedRecording)"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ :style="selectedRecording.is_archived ? 'color: var(--text-accent);' : ''"
+ :title="selectedRecording.is_archived ? t('archive.unarchive') : t('archive.archive')"><i class="fas fa-box-archive"></i></button>
<!-- Folder picker: the wrapper uses display: block
+ position: relative so the native <select>'s
absolute-positioned dropdown anchors to the
@@ -202,22 +222,6 @@
<i class="fas fa-folder"
:style="{ color: selectedRecording.folder_id ? getFolderColor(selectedRecording.folder_id) : '' }"></i>
</label>
- <!-- Inbox / highlight active state uses :style not
- :class because primitives.css's
- .btn--icon:not(.btn--primary):not(.btn--danger):not(.btn--ghost):not(.btn--quiet)
- rule for default colour has higher specificity
- than a single Tailwind text-* utility, so the
- conditional text-blue-500 / text-yellow-500
- classes never won — inline style sidesteps the
- specificity contest. -->
- <button @click.stop="toggleInbox(selectedRecording)"
- class="btn btn--icon btn--sm flex-shrink-0"
- :style="selectedRecording.is_inbox ? 'color: #3b82f6;' : ''"
- :title="t('sidebar.inbox')"><i class="fas fa-inbox"></i></button>
- <button @click.stop="toggleHighlight(selectedRecording)"
- class="btn btn--icon btn--sm flex-shrink-0"
- :style="selectedRecording.is_highlighted ? 'color: #eab308;' : ''"
- :title="t('tooltips.highlight')"><i class="fas fa-star"></i></button>
<button @click.stop="editRecordingTags(selectedRecording)"
class="btn btn--icon btn--sm flex-shrink-0"
:title="t('buttons.editTags')"><i class="fas fa-tags"></i></button>
@@ -226,7 +230,7 @@
everyday actions. -->
<span class="flex-shrink-0 mx-0.5" style="width: 1px; height: 18px; background: var(--border-primary);"></span>
<button @click.stop="confirmReprocess('transcription', selectedRecording)"
- v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
+ v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED') && !selectedRecording.audio_deleted_at"
class="btn btn--icon btn--sm flex-shrink-0"
:title="t('tooltips.reprocessTranscription')"><i class="fas fa-redo-alt"></i></button>
<button @click.stop="confirmReprocess('summary', selectedRecording)"
@@ -250,6 +254,10 @@
visually separate from the everyday actions
and harder to mis-tap. -->
<span class="flex-1"></span>
+ <button v-if="canDeleteRecordings && selectedRecording.can_delete !== false && !selectedRecording.audio_deleted_at && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
+ @click.stop="confirmDeleteAudio(selectedRecording)"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ :title="((selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/')) ? t('deleteAudio.actionVideo') : t('deleteAudio.action'))"><i class="fas fa-volume-xmark"></i></button>
<button v-if="canDeleteRecordings && selectedRecording.can_delete !== false"
@click.stop="confirmDelete(selectedRecording)"
class="btn btn--icon btn--sm flex-shrink-0"
diff --git a/templates/components/header.html b/templates/components/header.html
index 0eb894f2..2c9f270d 100644
--- a/templates/components/header.html
+++ b/templates/components/header.html
@@ -88,6 +88,26 @@
on narrow screens; mobile-header.html surfaces them in the
expanded meta panel. -->
<template v-if="currentView === 'detail' && selectedRecording && !selectedRecording.incognito">
+ <!-- Action groups (#394): organize (inbox, star, archive), then
+ place (folder, tags), then process (a Reprocess menu and
+ speakers), then share and a More menu holding both deletes. -->
+ <button @click="toggleInbox(selectedRecording)" class="btn btn--icon hidden md:inline-flex"
+ :style="selectedRecording.is_inbox ? 'color: #3b82f6;' : ''"
+ :title="selectedRecording.is_inbox ? t('tooltips.markAsRead') : t('tooltips.moveToInbox')">
+ <i class="fas fa-inbox"></i>
+ </button>
+ <button @click="toggleHighlight(selectedRecording)" class="btn btn--icon hidden md:inline-flex"
+ :style="selectedRecording.is_highlighted ? 'color: #eab308;' : ''"
+ :title="selectedRecording.is_highlighted ? t('tooltips.removeHighlight') : t('tooltips.highlight')">
+ <i class="fas fa-star"></i>
+ </button>
+ <button @click="toggleArchive(selectedRecording)" class="btn btn--icon hidden md:inline-flex"
+ :style="selectedRecording.is_archived ? 'color: var(--text-accent);' : ''"
+ :aria-pressed="!!selectedRecording.is_archived"
+ :title="selectedRecording.is_archived ? t('archive.unarchive') : t('archive.archive')">
+ <i class="fas fa-box-archive"></i>
+ </button>
+ <div class="hidden md:block w-px h-5 bg-[var(--border-primary)] mx-0.5"></div>
<!-- Assign-folder dropdown. A custom themed menu, not a raw
<select> (whose OS-rendered option list ignored the app
theme — looked out of place against the dark UI). -->
@@ -119,52 +139,80 @@
</button>
</div>
</div>
- <button @click="toggleInbox(selectedRecording)" class="btn btn--icon hidden md:inline-flex"
- :style="selectedRecording.is_inbox ? 'color: #3b82f6;' : ''"
- :title="selectedRecording.is_inbox ? t('tooltips.markAsRead') : t('tooltips.moveToInbox')">
- <i class="fas fa-inbox"></i>
- </button>
- <button @click="toggleHighlight(selectedRecording)" class="btn btn--icon hidden md:inline-flex"
- :style="selectedRecording.is_highlighted ? 'color: #eab308;' : ''"
- :title="selectedRecording.is_highlighted ? t('tooltips.removeHighlight') : t('tooltips.highlight')">
- <i class="fas fa-star"></i>
- </button>
<button @click="editRecordingTags(selectedRecording)" class="btn btn--icon hidden md:inline-flex"
:title="t('buttons.editTags')">
<i class="fas fa-tags"></i>
</button>
- <button @click="confirmReprocess('transcription', selectedRecording)"
- v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
- class="btn btn--icon hidden lg:inline-flex"
- :title="useAsrEndpoint ? t('tooltips.reprocessWithAsr') : t('tooltips.reprocessTranscription')">
- <i class="fas fa-redo-alt"></i>
- </button>
- <button @click="confirmReprocess('summary', selectedRecording)"
- v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
- class="btn btn--icon hidden lg:inline-flex"
- :title="t('buttons.reprocessSummary')">
- <i class="fas fa-sync-alt"></i>
- </button>
- <button @click="confirmReset(selectedRecording)" v-if="['PENDING', 'PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"
- class="btn btn--icon hidden md:inline-flex" style="color: rgb(249, 115, 22);"
- :title="t('buttons.resetStuckProcessing')">
- <i class="fas fa-undo"></i>
- </button>
+ <div class="hidden md:block w-px h-5 bg-[var(--border-primary)] mx-0.5"></div>
+ <!-- Reprocess menu: transcription and summary for settled
+ recordings, reset for stuck ones. Transcription needs the
+ audio, so it is left out once the audio is removed. -->
+ <div v-if="(selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')) || ['PENDING', 'PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"
+ class="relative hidden md:inline-flex" data-header-reprocess-menu>
+ <button @click.stop="showHeaderReprocessMenu = !showHeaderReprocessMenu; showHeaderMoreMenu = false"
+ class="btn btn--icon" :aria-expanded="showHeaderReprocessMenu" aria-haspopup="menu"
+ :style="['PENDING', 'PROCESSING', 'SUMMARIZING'].includes(selectedRecording.status) ? 'color: rgb(249, 115, 22);' : ''"
+ :title="t('headerActions.reprocess')" :aria-label="t('headerActions.reprocess')">
+ <i class="fas fa-redo-alt"></i>
+ <i class="fas fa-caret-down text-[10px] ml-0.5"></i>
+ </button>
+ <div v-if="showHeaderReprocessMenu" role="menu" class="absolute right-0 top-full mt-2 min-w-[15rem] surface-raised z-50 py-1">
+ <button v-if="selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED') && !selectedRecording.audio_deleted_at"
+ role="menuitem" @click="showHeaderReprocessMenu = false; confirmReprocess('transcription', selectedRecording)"
+ class="w-full flex items-center gap-2 px-3 py-2 text-left text-sm hover:bg-[var(--bg-tertiary)] transition-colors whitespace-nowrap">
+ <i class="fas fa-redo-alt w-4 text-center text-[var(--text-muted)]"></i>
+ <span v-text="useAsrEndpoint ? t('tooltips.reprocessWithAsr') : t('tooltips.reprocessTranscription')"></span>
+ </button>
+ <button v-if="selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
+ role="menuitem" @click="showHeaderReprocessMenu = false; confirmReprocess('summary', selectedRecording)"
+ class="w-full flex items-center gap-2 px-3 py-2 text-left text-sm hover:bg-[var(--bg-tertiary)] transition-colors whitespace-nowrap">
+ <i class="fas fa-sync-alt w-4 text-center text-[var(--text-muted)]"></i>
+ <span v-text="t('buttons.reprocessSummary')"></span>
+ </button>
+ <button v-if="['PENDING', 'PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"
+ role="menuitem" @click="showHeaderReprocessMenu = false; confirmReset(selectedRecording)"
+ class="w-full flex items-center gap-2 px-3 py-2 text-left text-sm hover:bg-[var(--bg-tertiary)] transition-colors whitespace-nowrap" style="color: rgb(249, 115, 22);">
+ <i class="fas fa-undo w-4 text-center"></i>
+ <span v-text="t('buttons.resetStuckProcessing')"></span>
+ </button>
+ </div>
+ </div>
<button @click="openSpeakerModal" v-if="processedTranscription.hasDialogue"
- class="btn btn--icon hidden lg:inline-flex"
+ class="btn btn--icon hidden md:inline-flex"
:title="t('buttons.identifySpeakers')">
<i class="fas fa-user-tag"></i>
</button>
+ <div class="hidden md:block w-px h-5 bg-[var(--border-primary)] mx-0.5"></div>
<button v-if="!selectedRecording.is_shared || (selectedRecording.share_info && selectedRecording.share_info.can_reshare)"
@click="openUnifiedShareModal(selectedRecording)"
class="btn btn--icon hidden md:inline-flex"
:title="t('buttons.shareRecording')">
<i class="fas fa-share-alt"></i>
</button>
- <button v-if="canDeleteRecordings && selectedRecording.can_delete !== false" @click="confirmDelete(selectedRecording)"
- class="btn btn--icon hidden md:inline-flex" style="color: var(--text-danger);" :title="t('buttons.delete')">
- <i class="fas fa-trash"></i>
- </button>
+ <!-- More menu: the destructive actions, kept one click further away. -->
+ <div v-if="canDeleteRecordings && selectedRecording.can_delete !== false"
+ class="relative hidden md:inline-flex" data-header-more-menu>
+ <button @click.stop="showHeaderMoreMenu = !showHeaderMoreMenu; showHeaderReprocessMenu = false"
+ class="btn btn--icon" :aria-expanded="showHeaderMoreMenu" aria-haspopup="menu"
+ :title="t('headerActions.more')" :aria-label="t('headerActions.more')">
+ <i class="fas fa-ellipsis-vertical"></i>
+ </button>
+ <div v-if="showHeaderMoreMenu" role="menu" class="absolute right-0 top-full mt-2 min-w-[15rem] surface-raised z-50 py-1">
+ <button v-if="!selectedRecording.audio_deleted_at && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
+ role="menuitem" @click="showHeaderMoreMenu = false; confirmDeleteAudio(selectedRecording)"
+ class="w-full flex items-center gap-2 px-3 py-2 text-left text-sm hover:bg-[var(--bg-tertiary)] transition-colors whitespace-nowrap">
+ <i class="fas fa-volume-xmark w-4 text-center text-[var(--text-muted)]"></i>
+ <span v-text="((selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/')) ? t('deleteAudio.actionVideo') : t('deleteAudio.action'))"></span>
+ </button>
+ <div v-if="!selectedRecording.audio_deleted_at && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
+ class="my-1 border-t border-[var(--border-primary)]"></div>
+ <button role="menuitem" @click="showHeaderMoreMenu = false; confirmDelete(selectedRecording)"
+ class="w-full flex items-center gap-2 px-3 py-2 text-left text-sm hover:bg-[var(--bg-tertiary)] transition-colors whitespace-nowrap" style="color: var(--text-danger);">
+ <i class="fas fa-trash w-4 text-center"></i>
+ <span v-text="t('headerActions.deleteRecording')"></span>
+ </button>
+ </div>
+ </div>
<!-- Vertical divider between action icons and global controls -->
<div class="hidden md:block w-px h-6 bg-[var(--border-primary)] mx-1"></div>
</template>
diff --git a/templates/components/sidebar.html b/templates/components/sidebar.html
index 72f17626..2b0dcf63 100644
--- a/templates/components/sidebar.html
+++ b/templates/components/sidebar.html
@@ -62,16 +62,16 @@
class="flex-1 h-7 flex items-center justify-between pl-2 pr-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-xs hover:bg-[var(--bg-tertiary)] transition-colors">
<span class="flex items-center">
<i class="fas fa-filter mr-1.5 text-[var(--text-muted)] text-[10px]"></i>
- <span v-if="!searchQuery && filterTags.length === 0 && filterSpeakers.length === 0 && !filterDatePreset && !filterDateRange.start && !filterDateRange.end && !filterTextQuery && !filterStarred && !filterInbox && !filterNeedsTranscription && !filterNeedsSummary && !filterNeedsSpeakers"
+ <span v-if="!searchQuery && filterTags.length === 0 && filterSpeakers.length === 0 && !filterDatePreset && !filterDateRange.start && !filterDateRange.end && !filterTextQuery && !filterStarred && !filterInbox && !filterAudioRemoved && !filterNeedsTranscription && !filterNeedsSummary && !filterNeedsSpeakers"
v-text="t('sidebar.searchRecordings')">
</span>
<span v-else class="text-[var(--text-accent)]">
- Active filters (${ (filterTags.length > 0 ? 1 : 0) + (filterSpeakers.length > 0 ? 1 : 0) + (filterDatePreset || filterDateRange.start || filterDateRange.end ? 1 : 0) + (filterTextQuery ? 1 : 0) + (filterStarred ? 1 : 0) + (filterInbox ? 1 : 0) + (filterNeedsTranscription ? 1 : 0) + (filterNeedsSummary ? 1 : 0) + (filterNeedsSpeakers ? 1 : 0) })
+ Active filters (${ (filterTags.length > 0 ? 1 : 0) + (filterSpeakers.length > 0 ? 1 : 0) + (filterDatePreset || filterDateRange.start || filterDateRange.end ? 1 : 0) + (filterTextQuery ? 1 : 0) + (filterStarred ? 1 : 0) + (filterInbox ? 1 : 0) + (filterAudioRemoved ? 1 : 0) + (filterNeedsTranscription ? 1 : 0) + (filterNeedsSummary ? 1 : 0) + (filterNeedsSpeakers ? 1 : 0) })
</span>
</span>
<i :class="['fas fa-chevron-down transition-transform text-[var(--text-muted)] text-[10px]', showAdvancedFilters ? 'rotate-180' : '']"></i>
</button>
- <button v-if="searchQuery || filterTags.length > 0 || filterSpeakers.length > 0 || filterDatePreset || filterDateRange.start || filterDateRange.end || filterTextQuery || filterStarred || filterInbox || filterNeedsTranscription || filterNeedsSummary || filterNeedsSpeakers"
+ <button v-if="searchQuery || filterTags.length > 0 || filterSpeakers.length > 0 || filterDatePreset || filterDateRange.start || filterDateRange.end || filterTextQuery || filterStarred || filterInbox || filterAudioRemoved || filterNeedsTranscription || filterNeedsSummary || filterNeedsSpeakers"
@click="clearAllFilters"
class="w-7 h-7 flex items-center justify-center bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-xs hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)] transition-colors"
:title="t('buttons.clearAllFilters')">
@@ -99,8 +99,9 @@
</div>
</div>
- <!-- Quick Filters (Starred/Inbox) -->
- <div class="flex gap-2">
+ <!-- Quick Filters (Starred/Inbox/Audio removed). Wraps when the
+ sidebar is too narrow for all three labels. -->
+ <div class="flex flex-wrap gap-2">
<button @click="filterStarred = !filterStarred"
:class="[
'flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all border',
@@ -121,6 +122,18 @@
<i class="fas fa-inbox" style="font-size: 10px;"></i>
<span v-text="t('sidebar.inbox')"></span>
</button>
+ <button v-if="enableAudioRemovedFilter" @click="filterAudioRemoved = !filterAudioRemoved"
+ :aria-pressed="filterAudioRemoved"
+ :title="t('audioRemoved.filterHint')"
+ :class="[
+ 'flex-1 min-w-fit flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all border',
+ filterAudioRemoved
+ ? 'bg-slate-500/20 border-slate-500/50 text-slate-300'
+ : 'bg-[var(--bg-input)] border-[var(--border-secondary)] text-[var(--text-muted)] hover:border-slate-500/30 hover:text-slate-300'
+ ]">
+ <i class="fas fa-volume-xmark" style="font-size: 10px;"></i>
+ <span class="whitespace-nowrap" v-text="t('audioRemoved.label')"></span>
+ </button>
</div>
<!-- Needs Filters -->
@@ -276,20 +289,20 @@
<i class="fas fa-exchange-alt text-[var(--text-muted)] text-[10px]"></i>
</button>
- <!-- Archived Toggle (only show when audio-only deletion mode is active) -->
- <button v-if="enableArchiveToggle" @click="showArchivedRecordings = !showArchivedRecordings"
+ <!-- Archived view (#394): the user's archive, always available -->
+ <button @click="showArchivedRecordings = !showArchivedRecordings"
+ :aria-pressed="showArchivedRecordings"
:class="[
'flex-1 min-w-0 flex items-center justify-center gap-1 px-2 py-1.5 border rounded-md text-xs transition-colors',
showArchivedRecordings
? 'bg-[var(--bg-accent)] border-[var(--border-accent)] text-[var(--text-accent)]'
: 'bg-[var(--bg-input)] border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)]'
]"
- :title="t('sidebar.archivedRecordings')">
- <i class="fas fa-archive"></i>
- <span class="hidden sm:inline truncate min-w-0" v-text="t('sidebar.archived')"></span>
+ :title="t('archive.showArchived')">
+ <i class="fas fa-box-archive"></i>
+ <span class="hidden sm:inline truncate min-w-0" v-text="t('archive.archived')"></span>
<i :class="['fas text-[10px]', showArchivedRecordings ? 'fa-toggle-on' : 'fa-toggle-off']"></i>
</button>
-
<!-- Shared Toggle -->
<button v-if="enableInternalSharing" @click="showSharedWithMe = !showSharedWithMe"
:class="[
@@ -446,11 +459,18 @@
<i v-if="!recording.is_shared && recording.public_share_count > 0" class="fas fa-globe text-teal-600 dark:text-teal-400"></i>
</span>
- <!-- Show Audio Deleted badge -->
+ <!-- Audio removed badge -->
<span v-if="recording.audio_deleted_at"
class="inline-flex items-center justify-center h-5 px-1.5 rounded-full text-[9px] leading-none bg-gray-200 dark:bg-gray-700 border border-gray-300 dark:border-gray-600"
- :title="t('sidebar.archived')">
- <i class="fas fa-file-audio text-gray-600 dark:text-gray-400"></i>
+ :title="t('audioRemoved.label')">
+ <i class="fas fa-volume-xmark text-gray-600 dark:text-gray-400"></i>
+ </span>
+
+ <!-- Archived badge, seen in search results and the archive view -->
+ <span v-if="recording.is_archived"
+ class="inline-flex items-center justify-center h-5 px-1.5 rounded-full text-[9px] leading-none bg-gray-200 dark:bg-gray-700 border border-gray-300 dark:border-gray-600"
+ :title="t('archive.archived')">
+ <i class="fas fa-box-archive text-gray-600 dark:text-gray-400"></i>
</span>
<!-- Show Failed status for failed recordings -->
@@ -621,6 +641,12 @@
<i class="fas fa-star text-amber-500"></i>
</button>
+ <button @click="bulkToggleArchive()"
+ class="w-10 h-10 flex items-center justify-center bg-[var(--bg-tertiary)] hover:bg-[var(--bg-input)] rounded-lg transition-colors border border-[var(--border-secondary)]"
+ :title="t('archive.toggleSelected')">
+ <i class="fas fa-box-archive text-[var(--text-muted)]"></i>
+ </button>
+
<button @click="openBulkReprocessModal"
class="w-10 h-10 flex items-center justify-center bg-[var(--bg-tertiary)] hover:bg-[var(--bg-input)] rounded-lg transition-colors border border-[var(--border-secondary)]"
:title="t('bulkActions.reprocess')">
diff --git a/templates/index.html b/templates/index.html
index e864675e..92d56d2e 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -108,7 +108,7 @@
data-speaker-count-mode="{{ current_user.speaker_count_mode or 'range' if current_user.is_authenticated else 'range' }}"
data-connector-supports-hotwords="{{ connector_supports_hotwords }}"
data-connector-supports-initial-prompt="{{ connector_supports_initial_prompt }}"
- data-enable-archive-toggle="{{ enable_archive_toggle }}"
+ data-enable-audio-removed-filter="{{ enable_audio_removed_filter }}"
data-enable-internal-sharing="{{ enable_internal_sharing }}"
data-current-user-name="{{ (current_user.name or current_user.username) if current_user.is_authenticated else '' }}"
data-user-language="{{ user_language }}"
@@ -153,6 +153,7 @@
<!-- Modals -->
{% include 'modals/edit-modal.html' %}
{% include 'modals/delete-modal.html' %}
+ {% include 'modals/delete-audio-modal.html' %}
{% include 'modals/edit-tags-modal.html' %}
{% include 'modals/datetime-picker-modal.html' %}
{% include 'modals/shares-list-modal.html' %}
diff --git a/templates/modals/delete-audio-modal.html b/templates/modals/delete-audio-modal.html
new file mode 100644
index 00000000..abbb0150
--- /dev/null
+++ b/templates/modals/delete-audio-modal.html
@@ -0,0 +1,22 @@
+<!-- Delete audio, keep transcript (#394). Same permission as deleting the
+ recording; the recording stays and shows as "Audio removed". -->
+<div v-if="showDeleteAudioModal" @click.self="cancelDeleteAudio" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm modal-panel--danger">
+ <div class="modal-header">
+ <i class="fas fa-volume-xmark text-2xl text-[var(--text-danger)]"></i>
+ <div class="flex-1">
+ <h3 class="modal-title" v-text="(recordingToDeleteAudio && recordingToDeleteAudio.mime_type && recordingToDeleteAudio.mime_type.startsWith('video/')) ? t('deleteAudio.titleVideo') : t('deleteAudio.title')"></h3>
+ <div class="modal-subtitle" v-text="t('help.thisActionCannotBeUndone')"></div>
+ </div>
+ <button @click="cancelDeleteAudio" class="modal-close" :title="t('buttons.close')" :aria-label="t('buttons.close')"><i class="fas fa-times"></i></button>
+ </div>
+ <div class="modal-body" v-text="t((recordingToDeleteAudio && recordingToDeleteAudio.mime_type && recordingToDeleteAudio.mime_type.startsWith('video/')) ? 'deleteAudio.bodyVideo' : 'deleteAudio.body', { title: (recordingToDeleteAudio && recordingToDeleteAudio.title) || '' })"></div>
+ <div class="modal-footer">
+ <button @click="cancelDeleteAudio" class="btn btn--ghost" v-text="t('buttons.cancel')"></button>
+ <button @click="deleteRecordingAudio" :disabled="isDeletingAudio" class="btn btn--danger">
+ <i v-if="isDeletingAudio" class="fas fa-spinner fa-spin"></i>
+ <span v-text="(recordingToDeleteAudio && recordingToDeleteAudio.mime_type && recordingToDeleteAudio.mime_type.startsWith('video/')) ? t('deleteAudio.confirmVideo') : t('deleteAudio.confirm')"></span>
+ </button>
+ </div>
+ </div>
+</div>
diff --git a/templates/share.html b/templates/share.html
index 2ca71b64..357649a4 100644
--- a/templates/share.html
+++ b/templates/share.html
@@ -105,7 +105,7 @@
<div v-if="recording.audio_deleted_at"
class="bg-[var(--bg-tertiary)] border border-[var(--border-primary)] text-[var(--text-muted)] px-4 py-3 rounded-lg flex items-center gap-2 text-sm">
<i class="fas fa-info-circle"></i>
- <span>Audio file has been archived and is no longer available for playback.</span>
+ <span>The audio file was removed. The transcript and summary remain available.</span>
</div>
<!-- Custom Audio/Video Player -->
<div v-else>
diff --git a/tests/test_archive_and_audio_removal.py b/tests/test_archive_and_audio_removal.py
index 473d4254..5762796a 100644
--- a/tests/test_archive_and_audio_removal.py
+++ b/tests/test_archive_and_audio_removal.py
@@ -254,3 +254,20 @@ def test_api_v1_archive_and_delete_audio(ctx):
with patch("src.services.retention.get_storage_service", return_value=_fake_storage()):
r = c.post(f'/api/v1/recordings/{rec.id}/delete-audio', headers=h)
assert r.status_code == 200 and r.get_json()['audio_deleted_at']
+
+
+
+def test_delete_audio_removes_a_retained_video(ctx):
+ """With video retention the stored media file IS the video; it goes too."""
+ user = _user()
+ rec = _rec(user)
+ rec.audio_path = "local://recordings/meeting.mp4"
+ rec.mime_type = "video/mp4"
+ db.session.commit()
+ storage = _fake_storage()
+ with patch("src.services.retention.get_storage_service", return_value=storage):
+ r = _client(user).post(f'/recording/{rec.id}/delete_audio')
+ assert r.status_code == 200
+ storage.delete.assert_called_once_with("local://recordings/meeting.mp4", missing_ok=True)
+ db.session.expire_all()
+ assert db.session.get(Recording, rec.id).audio_deleted_at is not None