Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Migrate the remaining 8 modals (edit-tags, share, datetime-picker, reprocess, unified-share, speaker, asr-editor + bonus speaker-modal mobile-tab toolbar) to modal-header / modal-title / modal-close / modal-body / modal-footer + btn primitives; gradient + purple custom action buttons replaced with btn--primary / btn--ghost; pill-status--success replaces inline save-flash chrome on asr-editor; speaker-modal warning uses banner--warn primitive; all 27 modal templates now share one design language end-to-end
Murtaza Nasir8e1c0805e382
diff --git a/templates/modals/asr-editor-modal.html b/templates/modals/asr-editor-modal.htmlindex c1349664..b13722b6 100644--- a/templates/modals/asr-editor-modal.html+++ b/templates/modals/asr-editor-modal.html@@ -1,18 +1,13 @@<!-- ASR Editor Modal --><div v-if="showAsrEditorModal" @click.self="closeAsrEditorModal" class="modal-overlay"><div @click="closeAllSpeakerSuggestions" class="modal-panel modal-panel--xl flex flex max-h-[90vh">- <div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0 flex justify-between items-center">- <div class="flex items-center gap-3">- <h3 class="text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.editAsrTranscription')"></h3>- <span v-if="asrEditorSaveFlash"- class="inline-flex items-center gap-1.5 text-xs font-medium text-[var(--text-success-strong)] bg-[var(--bg-success-light)] px-2 py-1 rounded-md transition-opacity">- <i class="fas fa-check-circle"></i>- <span v-text="t('asrEditor.saved')"></span>- </span>- </div>- <button @click="closeAsrEditorModal" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">- <i class="fas fa-times"></i>- </button>+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.editAsrTranscription')"></h3>+ <span v-if="asrEditorSaveFlash" class="pill-status pill-status--success">+ <i class="fas fa-check-circle"></i>+ <span v-text="t('asrEditor.saved')"></span>+ </span>+ <button @click="closeAsrEditorModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div><!-- Audio Player Section -->@@ -158,13 +153,13 @@<i class="fas fa-keyboard text-[10px]"></i><span v-text="t('asrEditor.ctrlSHint')"></span></span>- <div class="flex justify-end space-x-3 ml-auto">- <button @click="closeAsrEditorModal" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)]" v-text="t('common.cancel')"></button>- <button @click="saveAsrTranscription(true)" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] flex items-center gap-2" :title="t('asrEditor.saveWithoutClosing')">+ <div class="flex justify-end gap-2 ml-auto">+ <button @click="closeAsrEditorModal" class="btn btn--ghost" v-text="t('common.cancel')"></button>+ <button @click="saveAsrTranscription(true)" class="btn btn--ghost" :title="t('asrEditor.saveWithoutClosing')"><i class="fas fa-save text-xs"></i><span v-text="t('common.save')"></span></button>- <button @click="saveAsrTranscription(false)" class="px-4 py-2 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-lg hover:bg-[var(--bg-accent-hover)]" v-text="t('buttons.saveChanges')"></button>+ <button @click="saveAsrTranscription(false)" class="btn btn--primary" v-text="t('buttons.saveChanges')"></button></div></div></div>diff --git a/templates/modals/datetime-picker-modal.html b/templates/modals/datetime-picker-modal.htmlindex fb3c5aed..34350c7c 100644--- a/templates/modals/datetime-picker-modal.html+++ b/templates/modals/datetime-picker-modal.html@@ -1,17 +1,10 @@<!-- DateTime Picker Modal --><div v-if="showDateTimePicker" @click.self="closeDateTimePicker" class="modal-overlay"><div class="modal-panel modal-panel--xs overflow-hidden">- <!-- Header -->- <div class="p-4 border-b border-[var(--border-primary)] bg-[var(--bg-tertiary)]">- <div class="flex items-center justify-between">- <h3 class="text-lg font-semibold text-[var(--text-primary)]">- <i class="fas fa-calendar-alt mr-2 text-[var(--text-accent)]"></i>- Select Date & Time- </h3>- <button @click="closeDateTimePicker" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors p-1">- <i class="fas fa-times text-lg"></i>- </button>- </div>+ <div class="modal-header">+ <i class="fas fa-calendar-alt text-2xl text-[var(--text-accent)]"></i>+ <h3 class="modal-title">Select Date & Time</h3>+ <button @click="closeDateTimePicker" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div><!-- Calendar Section -->@@ -109,24 +102,16 @@</div></div>- <!-- Footer -->- <div class="p-4 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)]">- <div class="text-sm text-[var(--text-muted)] mb-3 text-center">- <span v-if="pickerSelectedDate" class="font-medium text-[var(--text-primary)]">- ${formatPickerPreview()}- </span>+ <div class="modal-footer">+ <div class="t-meta flex-1 text-left">+ <span v-if="pickerSelectedDate" class="t-body-strong">${formatPickerPreview()}</span><span v-else class="italic">No date selected</span></div>- <div class="flex gap-2 justify-end">- <button @click="closeDateTimePicker"- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-secondary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="applyDateTime"- class="px-4 py-2 bg-[var(--text-accent)] text-white rounded-lg hover:opacity-90 transition-opacity font-medium whitespace-nowrap">- <i class="fas fa-check mr-1"></i>Apply- </button>- </div>+ <button @click="closeDateTimePicker" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="applyDateTime" class="btn btn--primary">+ <i class="fas fa-check"></i>+ <span>Apply</span>+ </button></div></div></div>diff --git a/templates/modals/edit-tags-modal.html b/templates/modals/edit-tags-modal.htmlindex ebd50f39..260cad7b 100644--- a/templates/modals/edit-tags-modal.html+++ b/templates/modals/edit-tags-modal.html@@ -1,35 +1,27 @@-<!-- Edit Tags Modal -->+<!-- Edit Tags Modal (design system v1) --><div v-if="showEditTagsModal" @click.self="closeEditTagsModal" class="modal-overlay">- <div class="modal-panel modal-panel--sm max-h-[80vh flex flex">- <div class="p-6 border-b border-[var(--border-primary)] flex-shrink-0">- <div class="flex items-center justify-between">- <h3 class="text-lg font-semibold" v-text="t('modal.editTags')"></h3>- <button @click="closeEditTagsModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>- </div>+ <div class="modal-panel modal-panel--sm">+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.editTags')"></h3>+ <button @click="closeEditTagsModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6 overflow-y-auto flex-1">- <!-- Current Tags with Drag Reorder -->+ <div class="modal-body">+ <!-- Current Tags --><div class="mb-4"><label class="block text-sm font-medium text-[var(--text-secondary)] mb-2" v-text="t('tags.currentTags')"></label><div v-if="editingRecording && editingRecording.tags && editingRecording.tags.length > 0"- class="flex flex-wrap gap-2"- @touchmove="handleModalTagTouchMove">+ class="flex flex-wrap gap-2" @touchmove="handleModalTagTouchMove"><span v-for="(tag, index) in editingRecording.tags" :key="tag.id"- :data-modal-tag-index="index"- draggable="true"+ :data-modal-tag-index="index" draggable="true"@dragstart="handleModalTagDragStart(index, $event)"@dragover="handleModalTagDragOver(index, $event)"@drop="handleModalTagDrop(index, $event)"@dragend="handleModalTagDragEnd"@touchstart="handleModalTagTouchStart(index, $event)"@touchend="handleModalTagTouchEnd"- :class="[- 'inline-flex items-center px-3 py-1 rounded-full text-sm font-medium transition-all duration-150',- modalDraggedTagIndex === index ? 'opacity-50 cursor-grabbing' : 'cursor-grab',- modalDragOverTagIndex === index && modalDraggedTagIndex !== index ? 'ring-2 ring-[var(--ring-focus)] ring-offset-1' : ''- ]"+ :class="['inline-flex items-center px-3 py-1 rounded-full text-sm font-medium transition-all duration-150',+ modalDraggedTagIndex === index ? 'opacity-50 cursor-grabbing' : 'cursor-grab',+ modalDragOverTagIndex === index && modalDraggedTagIndex !== index ? 'ring-2 ring-[var(--ring-focus)] ring-offset-1' : '']":style="{ backgroundColor: tag.color, color: getContrastTextColor(tag.color) }":title="(tag.group_id ? ('Group: ' + tag.group_name) : tag.name) + ' (drag to reorder)'"><span class="opacity-75 mr-1 text-xs">${index + 1}.</span>@@ -40,8 +32,8 @@</button></span></div>- <p v-else class="text-sm text-[var(--text-muted)] italic" v-text="t('tags.noTags')"></p>- <p v-if="editingRecording && editingRecording.tags && editingRecording.tags.length > 1" class="text-xs text-[var(--text-muted)] mt-2">+ <p v-else class="t-meta italic" v-text="t('tags.noTags')"></p>+ <p v-if="editingRecording && editingRecording.tags && editingRecording.tags.length > 1" class="t-meta mt-2"><i class="fas fa-grip-vertical mr-1" style="font-size: 10px;"></i>Drag to reorder • First tag's defaults are applied</p>@@ -50,19 +42,14 @@<!-- Add Tags --><div><label class="block text-sm font-medium text-[var(--text-secondary)] mb-2" v-text="t('tags.addTag')"></label>-- <!-- Search --><div class="relative mb-3">- <input v-model="tagSearchFilter" type="text" :placeholder="t('tagsModal.searchTags')"- class="w-full px-3 py-2 pl-9 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">+ <input v-model="tagSearchFilter" type="text" :placeholder="t('tagsModal.searchTags')" class="field pl-9"><i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-[var(--text-muted)]"></i></div>-- <!-- Available Tags -->- <div class="max-h-48 overflow-y-auto space-y-2">+ <div class="max-h-48 overflow-y-auto space-y-1.5"><button v-for="tag in filteredAvailableTagsForModal" :key="tag.id"@click="addTagToRecording(tag.id)"- class="w-full flex items-center justify-between px-3 py-2 rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] transition-colors">+ class="w-full flex items-center justify-between px-3 py-2 rounded-md border border-[var(--border-primary)] hover:bg-[var(--bg-tertiary)] transition-colors"><div class="flex items-center gap-2"><i v-if="tag.group_id" class="fas fa-users text-xs flex-shrink-0" :style="{ color: tag.color }"></i><span v-else class="w-3 h-3 rounded-full flex-shrink-0" :style="{ backgroundColor: tag.color }"></span>@@ -73,13 +60,11 @@<i class="fas fa-plus text-[var(--text-muted)]"></i></button></div>- <p v-if="filteredAvailableTagsForModal.length === 0" class="text-sm text-[var(--text-muted)] text-center py-4" v-text="t('tags.noAvailableTags')"></p>+ <p v-if="filteredAvailableTagsForModal.length === 0" class="t-meta text-center py-4" v-text="t('tags.noAvailableTags')"></p></div></div>- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end">- <button @click="closeEditTagsModal" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">- <span v-text="t('tagsModal.done')"></span>- </button>+ <div class="modal-footer">+ <button @click="closeEditTagsModal" class="btn btn--primary" v-text="t('tagsModal.done')"></button></div></div></div>diff --git a/templates/modals/reprocess-modal.html b/templates/modals/reprocess-modal.htmlindex 0be0ee71..d432f372 100644--- a/templates/modals/reprocess-modal.html+++ b/templates/modals/reprocess-modal.html@@ -1,26 +1,15 @@-<!-- Reprocess Modal -->-<div v-if="showReprocessModal" @click.self="cancelReprocess" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm transition-all duration-300 ease-in-out">- <div class="modal-panel modal-panel--sm max-h-[90vh flex flex transform transition-all duration-300 ease-in-out">- <!-- Header with gradient background -->- <div class="bg-gradient-to-r from-[var(--bg-accent)] to-[var(--bg-secondary)] p-5 rounded-t-xl flex-shrink-0">- <div class="flex items-center justify-between">- <div class="flex items-center">- <div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center mr-4 shadow-lg">- <i class="fas fa-sync-alt text-white text-lg"></i>- </div>- <div>- <h3 class="text-xl font-bold text-[var(--text-primary)] mb-1" v-text="t('help.confirmReprocessingTitle')"></h3>- <p class="text-sm text-[var(--text-muted)] capitalize">${ reprocessType } reprocessing</p>- </div>- </div>- <button @click="cancelReprocess" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>+<!-- Reprocess Modal (design system v1) -->+<div v-if="showReprocessModal" @click.self="cancelReprocess" class="modal-overlay">+ <div class="modal-panel modal-panel--sm">+ <div class="modal-header">+ <i class="fas fa-sync-alt text-2xl text-[var(--text-accent)]"></i>+ <div class="flex-1">+ <h3 class="modal-title" v-text="t('help.confirmReprocessingTitle')"></h3>+ <div class="modal-subtitle capitalize">${ reprocessType } reprocessing</div></div>+ <button @click="cancelReprocess" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>-- <!-- Content -->- <div class="p-6 modal-content overflow-y-auto flex-1">+ <div class="modal-body"><div v-if="reprocessRecording" class="mb-6"><div class="bg-[var(--bg-tertiary)] rounded-lg p-4 border border-[var(--border-primary)]"><div class="flex items-start space-x-3">@@ -257,19 +246,11 @@</div></div>- <!-- Footer with action buttons -->- <div class="bg-[var(--bg-tertiary)] px-6 py-4 rounded-b-xl flex justify-end space-x-3 border-t border-[var(--border-primary)] flex-shrink-0">- <button- @click="cancelReprocess"- class="px-5 py-2.5 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] transition-all duration-200 flex items-center shadow-sm font-medium">- <i class="fas fa-times mr-2"></i>- Cancel- </button>- <button- @click="executeReprocess"- class="px-5 py-2.5 bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-lg hover:from-blue-600 hover:to-purple-700 transition-all duration-200 flex items-center shadow-lg font-medium transform hover:scale-105">- <i class="fas fa-sync-alt mr-2"></i>- Start Reprocessing+ <div class="modal-footer">+ <button @click="cancelReprocess" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="executeReprocess" class="btn btn--primary">+ <i class="fas fa-sync-alt"></i>+ <span>Start Reprocessing</span></button></div></div>diff --git a/templates/modals/share-modal.html b/templates/modals/share-modal.htmlindex 95c10ff1..51dfd82b 100644--- a/templates/modals/share-modal.html+++ b/templates/modals/share-modal.html@@ -1,82 +1,72 @@-<!-- Share Modal -->+<!-- Share Modal (design system v1) --><div v-if="showShareModal" @click.self="closeShareModal" class="modal-overlay">- <div class="modal-panel modal-panel--lg max-h-[80vh flex flex">- <div class="px-6 py-4 border-b border-[var(--border-primary)] flex justify-between items-center">- <h3 class="text-lg font-semibold" v-text="t('modal.shareRecording')"></h3>- <button @click="closeShareModal" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">- <i class="fas fa-times"></i>- </button>+ <div class="modal-panel modal-panel--lg">+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.shareRecording')"></h3>+ <button @click="closeShareModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="px-6 py-4 space-y-3 overflow-y-auto flex-1">- <p class="text-xs text-[var(--text-muted)]" v-text="t('help.createPublicLink')"></p>+ <div class="modal-body space-y-3">+ <p class="t-meta" v-text="t('help.createPublicLink')"></p>- <!-- Share Options -->- <div class="flex items-center gap-3 mb-2">+ <div class="flex items-center gap-3"><label class="flex items-center">- <input type="checkbox" v-model="shareOptions.share_summary" id="share_summary" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">+ <input type="checkbox" v-model="shareOptions.share_summary" id="share_summary" class="h-4 w-4 rounded"><span class="ml-2 text-xs" v-text="t('form.shareSummary')"></span></label><label class="flex items-center">- <input type="checkbox" v-model="shareOptions.share_notes" id="share_notes" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">+ <input type="checkbox" v-model="shareOptions.share_notes" id="share_notes" class="h-4 w-4 rounded"><span class="ml-2 text-xs" v-text="t('form.shareNotes')"></span></label></div>- <!-- Create New Share Button -->- <button @click="createShare(true)" class="w-full px-3 py-2 bg-[var(--bg-accent)] text-white rounded-lg hover:opacity-90 transition-opacity text-sm font-medium">- <i class="fas fa-plus-circle mr-1.5"></i>Create New Share Link+ <button @click="createShare(true)" class="btn btn--primary w-full">+ <i class="fas fa-plus-circle"></i>+ <span>Create New Share Link</span></button>- <!-- Loading State -->- <div v-if="isLoadingPublicShares" class="text-center py-8">- <i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>- <p class="mt-2 text-sm text-[var(--text-muted)]">Loading share links...</p>+ <div v-if="isLoadingPublicShares" class="empty">+ <div class="spinner spinner--lg"></div>+ <div class="t-meta">Loading share links...</div></div>- <!-- Existing Shares List --><div v-else-if="recordingPublicShares.length > 0" class="space-y-2">- <h4 class="text-xs font-medium text-[var(--text-secondary)]">- Existing Share Links (${recordingPublicShares.length})- </h4>- <div v-for="share in recordingPublicShares" :key="share.id" class="bg-[var(--bg-tertiary)] p-2.5 rounded-lg border border-[var(--border-primary)]">+ <h4 class="t-label">Existing Share Links (${recordingPublicShares.length})</h4>+ <div v-for="share in recordingPublicShares" :key="share.id" class="bg-[var(--bg-tertiary)] p-3 rounded-md border border-[var(--border-primary)]"><div class="flex justify-between items-start mb-2">- <div>- <p class="text-xs text-[var(--text-muted)]">${ t('help.sharedOn') }: ${share.created_at}</p>- </div>- <button @click="confirmDeletePublicShare(share)" class="text-red-500 hover:text-red-700 p-1">+ <p class="t-meta">${ t('help.sharedOn') }: ${share.created_at}</p>+ <button @click="confirmDeletePublicShare(share)" class="btn btn--icon btn--sm" style="color: var(--text-danger);"><i class="fas fa-trash text-xs"></i></button></div><div class="flex items-center gap-3 mb-2"><label class="flex items-center text-xs">- <input type="checkbox" v-model="share.share_summary" @change="updateShare(share)" class="h-3.5 w-3.5 rounded border-gray-300 text-blue-600 focus:ring-blue-500">+ <input type="checkbox" v-model="share.share_summary" @change="updateShare(share)" class="h-3.5 w-3.5 rounded"><span class="ml-1.5" v-text="t('form.shareSummary')"></span></label><label class="flex items-center text-xs">- <input type="checkbox" v-model="share.share_notes" @change="updateShare(share)" class="h-3.5 w-3.5 rounded border-gray-300 text-blue-600 focus:ring-blue-500">+ <input type="checkbox" v-model="share.share_notes" @change="updateShare(share)" class="h-3.5 w-3.5 rounded"><span class="ml-1.5" v-text="t('form.shareNotes')"></span></label></div><div class="relative">- <input :value="share.share_url" :id="'share-link-' + share.id" readonly class="w-full px-2 py-1.5 pr-10 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded text-xs font-mono">- <button @click="copyPublicShareLinkWithFeedback(share.share_url, share.id)" class="absolute right-1 top-1/2 -translate-y-1/2 w-8 h-7 flex items-center justify-center rounded bg-[var(--bg-button)] text-[var(--text-button)] hover:bg-[var(--bg-button-hover)] transition-colors" :title="t('buttons.copy')">- <i :class="copiedShareId === share.id ? 'fas fa-check' : 'fas fa-copy'" class="text-xs"></i>+ <input :value="share.share_url" :id="'share-link-' + share.id" readonly class="field pr-10 font-mono" style="font-size: 11px;">+ <button @click="copyPublicShareLinkWithFeedback(share.share_url, share.id)"+ class="absolute right-1 top-1/2 -translate-y-1/2 btn btn--sm btn--primary btn--icon"+ :title="t('buttons.copy')">+ <i :class="copiedShareId === share.id ? 'fas fa-check' : 'fas fa-copy'"></i></button></div></div></div>- <!-- No Shares Yet -->- <div v-else-if="!isLoadingPublicShares" class="text-center py-8 text-[var(--text-muted)]">- <i class="fas fa-link text-3xl mb-2"></i>- <p v-text="t('sharedTranscripts.noSharedTranscripts')"></p>- <p class="text-xs mt-1">Click the button above to create one</p>+ <div v-else-if="!isLoadingPublicShares" class="empty">+ <div class="empty__icon"><i class="fas fa-link"></i></div>+ <div class="empty__title" v-text="t('sharedTranscripts.noSharedTranscripts')"></div>+ <div class="empty__body">Click the button above to create one</div></div></div>- <div class="px-6 py-3 border-t border-[var(--border-primary)] flex justify-end">- <button @click="closeShareModal" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors text-sm font-medium">- Done- </button>+ <div class="modal-footer">+ <button @click="closeShareModal" class="btn btn--primary">Done</button></div></div></div>diff --git a/templates/modals/speaker-modal.html b/templates/modals/speaker-modal.htmlindex 94d3d03a..6d9f0aa5 100644--- a/templates/modals/speaker-modal.html+++ b/templates/modals/speaker-modal.html@@ -1,24 +1,15 @@-<!-- Speaker Identification Modal -->-<div v-if="showSpeakerModal" @click.self="closeSpeakerModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-2 sm:p-4 backdrop-blur-sm">- <div @click="closeSpeakerSuggestionsOnClick" class="modal-panel modal-panel--xl flex flex">- <!-- Header -->- <div class="p-3 sm:p-5 border-b border-[var(--border-primary)] flex-shrink-0">- <div class="flex items-center justify-between">- <h3 class="text-base sm:text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.identifySpeakers')"></h3>- <button @click="closeSpeakerModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>- </div>- <!-- Warning for too many speakers -->- <div v-if="modalSpeakers.length > 16" class="mt-3 p-3 bg-[var(--bg-warn-light)] border border-amber-300 dark:border-amber-800 rounded-lg">- <div class="flex items-start">- <i class="fas fa-exclamation-triangle text-[var(--text-warn-strong)] mt-0.5 mr-2"></i>- <div class="text-sm">- <p class="font-medium text-[var(--text-warn-strong)]" v-text="t('help.moreSpeakersThanColors')"></p>- <p class="text-[var(--text-warn-strong)] mt-1" v-text="t('help.youHaveXSpeakers', { count: modalSpeakers.length })">- </p>- </div>- </div>+<!-- Speaker Identification Modal (design system v1) -->+<div v-if="showSpeakerModal" @click.self="closeSpeakerModal" class="modal-overlay">+ <div @click="closeSpeakerSuggestionsOnClick" class="modal-panel modal-panel--xl">+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.identifySpeakers')"></h3>+ <button @click="closeSpeakerModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>+ </div>+ <div v-if="modalSpeakers.length > 16" class="banner banner--warn" style="display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-3) var(--sp-5) 0;">+ <i class="fas fa-exclamation-triangle" style="margin-top: 2px;"></i>+ <div>+ <div class="t-body-strong" v-text="t('help.moreSpeakersThanColors')"></div>+ <div class="t-meta mt-1" v-text="t('help.youHaveXSpeakers', { count: modalSpeakers.length })"></div></div></div>@@ -302,51 +293,33 @@</label></div>- <!-- Footer Buttons -->- <div class="bg-[var(--bg-tertiary)] px-3 sm:px-6 py-2 sm:py-4 flex flex-row justify-between items-center gap-2 border-t border-[var(--border-primary)] flex-shrink-0 rounded-b-xl">- <!-- Left: Auto Identify Split Button + Apply Suggested -->+ <div class="modal-footer modal-footer--between"><div class="flex items-center gap-2">- <!-- Split Button: Auto Identify --><div class="relative inline-flex" ref="autoIdSplitBtn">- <!-- Main button: identify missing only -->- <button @click="autoIdentifySpeakers(false)" class="px-2 sm:px-3 py-1.5 sm:py-2 bg-purple-600 text-white rounded-l-md hover:bg-purple-700 active:scale-[0.98] transition-all flex items-center justify-center text-xs sm:text-sm font-medium" :disabled="isAutoIdentifying">- <i class="fas fa-magic mr-1 sm:mr-1.5"></i>+ <button @click="autoIdentifySpeakers(false)" class="btn btn--primary" style="border-top-right-radius: 0; border-bottom-right-radius: 0;" :disabled="isAutoIdentifying">+ <i class="fas fa-magic"></i><span v-if="!isAutoIdentifying" class="hidden sm:inline" v-text="t('help.autoIdentify')"></span><span v-if="!isAutoIdentifying" class="sm:hidden" v-text="t('help.autoIdentifyMobile')"></span>- <span v-else>- <i class="fas fa-spinner fa-spin"></i>- </span>+ <span v-else><div class="spinner"></div></span></button>- <!-- Dropdown arrow -->- <button @click="showAutoIdDropdown = !showAutoIdDropdown" class="px-1.5 py-1.5 sm:py-2 bg-purple-600 text-white rounded-r-md border-l border-purple-500 hover:bg-purple-700 active:scale-[0.98] transition-all text-xs sm:text-sm" :disabled="isAutoIdentifying">+ <button @click="showAutoIdDropdown = !showAutoIdDropdown" class="btn btn--primary btn--icon" style="border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(255,255,255,0.2);" :disabled="isAutoIdentifying"><i class="fas fa-caret-down"></i></button>- <!-- Dropdown menu -->- <div v-if="showAutoIdDropdown" class="absolute bottom-full left-0 mb-1 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md shadow-lg z-50 min-w-[180px]">- <button @click="autoIdentifySpeakers(true)" class="w-full px-3 py-2 text-left text-xs sm:text-sm text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors rounded-md">+ <div v-if="showAutoIdDropdown" class="absolute bottom-full left-0 mb-1 surface-raised z-50" style="min-width: 200px;">+ <button @click="autoIdentifySpeakers(true)" class="w-full px-3 py-2 text-left text-sm hover:bg-[var(--bg-tertiary)] transition-colors"><i class="fas fa-users mr-2"></i><span v-text="t('help.identifyAllSpeakers')"></span></button></div></div>- <!-- Apply Suggested Button -->- <button v-if="hasAnySuggestions" @click="applySuggestedNames" class="px-2 sm:px-3 py-1.5 sm:py-2 bg-gradient-to-r from-blue-600 to-purple-600 text-white rounded-md hover:from-blue-700 hover:to-purple-700 active:scale-[0.98] transition-all flex items-center text-xs sm:text-sm font-medium">- <i class="fas fa-lightbulb mr-1 sm:mr-1.5"></i>+ <button v-if="hasAnySuggestions" @click="applySuggestedNames" class="btn btn--primary">+ <i class="fas fa-lightbulb"></i><span class="hidden sm:inline" v-text="t('help.applySuggested')"></span><span class="sm:hidden" v-text="t('help.applySuggestedMobile')"></span></button></div>- <!-- Right: Cancel & Save Buttons --><div class="flex gap-2">- <button @click="closeSpeakerModal" class="px-3 sm:px-4 py-1.5 sm:py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-md border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)] active:scale-[0.98] transition-all text-xs sm:text-sm" v-text="t('common.cancel')"></button>- <button- @click="saveSpeakerNames"- :disabled="!hasSpeakerNames"- class="px-3 sm:px-4 py-1.5 sm:py-2 rounded-md transition-all text-xs sm:text-sm font-medium active:scale-[0.98]"- :class="hasSpeakerNames- ? 'bg-[var(--bg-accent)] text-[var(--text-accent)] hover:bg-[var(--bg-accent-hover)] cursor-pointer'- : 'bg-gray-400 text-gray-200 cursor-not-allowed'"- v-text="t('buttons.saveNames')"- ></button>+ <button @click="closeSpeakerModal" class="btn btn--ghost" v-text="t('common.cancel')"></button>+ <button @click="saveSpeakerNames" :disabled="!hasSpeakerNames" class="btn btn--primary" v-text="t('buttons.saveNames')"></button></div></div></div>diff --git a/templates/modals/unified-share-modal.html b/templates/modals/unified-share-modal.htmlindex 23f797b0..debe0ab6 100644--- a/templates/modals/unified-share-modal.html+++ b/templates/modals/unified-share-modal.html@@ -1,16 +1,12 @@<!-- Unified Share Modal (Public + Internal Sharing) --><div v-if="showUnifiedShareModal" @click.self="closeUnifiedShareModal" class="modal-overlay"><div class="modal-panel modal-panel--lg max-h-[90vh flex flex">- <div class="px-6 py-4 border-b border-[var(--border-primary)] flex-shrink-0">- <div class="flex items-center justify-between">- <div class="flex-1">- <h3 class="text-lg font-semibold" v-text="t('modal.shareRecording')"></h3>- <p class="text-sm text-[var(--text-muted)] mt-0.5">${internalShareRecording?.title}</p>- </div>- <button @click="closeUnifiedShareModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors ml-4">- <i class="fas fa-times text-xl"></i>- </button>+ <div class="modal-header">+ <div class="flex-1">+ <h3 class="modal-title" v-text="t('modal.shareRecording')"></h3>+ <div class="modal-subtitle">${internalShareRecording?.title}</div></div>+ <button @click="closeUnifiedShareModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div><div class="flex-1 overflow-y-auto">@@ -272,8 +268,8 @@</div></div>- <div class="px-6 py-3 border-t border-[var(--border-primary)] flex justify-end flex-shrink-0">- <button @click="closeUnifiedShareModal" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">+ <div class="modal-footer">+ <button @click="closeUnifiedShareModal" class="btn btn--primary"><span v-text="t('tagsModal.done')"></span></button></div>