Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Migrate 10 modals to use modal-header / modal-title / modal-close / modal-body / modal-footer + btn primitives (add-speaker, bulk-reprocess, bulk-tag, text-editor, edit-text, duplicates, shares-list, color-scheme, edit-participants, edit-speakers, customize-summary-prompt) — each gets the unified header pattern (icon + title + subtitle + close), consistent body padding, footer with btn--ghost cancel + btn--primary action; gradient buttons replaced with btn--primary; ad-hoc input classes replaced with .field; banner/empty/spinner primitives used where appropriate
Murtaza Nasir1dd82964efe5
diff --git a/templates/modals/add-speaker-modal.html b/templates/modals/add-speaker-modal.htmlindex d287f5ca..4608d6a1 100644--- a/templates/modals/add-speaker-modal.html+++ b/templates/modals/add-speaker-modal.html@@ -1,77 +1,61 @@-<!-- Add Speaker Modal -->+<!-- Add Speaker Modal (design system v1) --><div v-if="showAddSpeakerModal" @click.self="closeAddSpeakerModal" class="modal-overlay"><div class="modal-panel modal-panel--sm">- <div class="p-6 border-b border-[var(--border-primary)]">- <div class="flex items-center justify-between mb-4">- <h3 class="text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.addSpeaker')"></h3>- <button @click="closeAddSpeakerModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>- </div>- </div>- <div class="p-6">-- <!-- "This is Me" checkbox -->- <div class="mb-4">- <label class="flex items-center text-sm text-[var(--text-muted)] cursor-pointer hover:text-[var(--text-primary)] transition-colors">- <input type="checkbox" v-model="newSpeakerIsMe" class="speaker-checkbox">- <span class="ml-2 select-none" v-text="t('help.me')"></span>- </label>+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.addSpeaker')"></h3>+ <button @click="closeAddSpeakerModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>+ <div class="modal-body">+ <!-- "This is Me" checkbox -->+ <div class="mb-4">+ <label class="flex items-center text-sm text-[var(--text-muted)] cursor-pointer hover:text-[var(--text-primary)] transition-colors">+ <input type="checkbox" v-model="newSpeakerIsMe" class="speaker-checkbox">+ <span class="ml-2 select-none" v-text="t('help.me')"></span>+ </label>+ </div>- <!-- Speaker name input with autocomplete (disabled if "This is Me" is checked) -->- <div class="mb-6 relative">- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2" v-text="t('help.speakerName')">- </label>- <input- type="text"- v-model="newSpeakerName"- @input="searchNewSpeaker"- @focus="showNewSpeakerSuggestions = true"- @blur="hideNewSpeakerSuggestionsDelayed"- :disabled="newSpeakerIsMe"- :placeholder="newSpeakerIsMe ? currentUserName : t('help.enterSpeakerName')"- class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)] disabled:bg-[var(--bg-tertiary)] disabled:text-[var(--text-muted)] disabled:cursor-not-allowed"- @keyup.enter="addNewSpeaker"- autocomplete="off"- >+ <!-- Speaker name input -->+ <div class="mb-2 relative">+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2" v-text="t('help.speakerName')"></label>+ <input+ type="text"+ v-model="newSpeakerName"+ @input="searchNewSpeaker"+ @focus="showNewSpeakerSuggestions = true"+ @blur="hideNewSpeakerSuggestionsDelayed"+ :disabled="newSpeakerIsMe"+ :placeholder="newSpeakerIsMe ? currentUserName : t('help.enterSpeakerName')"+ class="field"+ @keyup.enter="addNewSpeaker"+ autocomplete="off">- <!-- Loading indicator -->- <div v-if="loadingNewSpeakerSuggestions && !newSpeakerIsMe" class="absolute right-3 top-[42px] transform -translate-y-1/2">- <i class="fas fa-spinner fa-spin text-[var(--text-muted)] text-sm"></i>- </div>+ <div v-if="loadingNewSpeakerSuggestions && !newSpeakerIsMe" class="absolute right-3 top-[42px] transform -translate-y-1/2">+ <div class="spinner"></div>+ </div>- <!-- Suggestions dropdown -->- <div v-if="showNewSpeakerSuggestions && newSpeakerSuggestions.length > 0 && !newSpeakerIsMe"- @click.stop- class="absolute z-10 w-full mt-1 bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-md shadow-lg max-h-48 overflow-y-auto">- <div class="py-1">- <div v-for="suggestion in newSpeakerSuggestions"- :key="suggestion.id"- @click="selectNewSpeakerSuggestion(suggestion)"- class="px-3 py-2 cursor-pointer hover:bg-[var(--bg-tertiary)] flex items-center justify-between">- <div class="flex-grow">- <div class="text-sm font-medium text-[var(--text-primary)]">${ suggestion.name }</div>- <div class="text-xs text-[var(--text-muted)]">- Used ${ suggestion.use_count } time${ suggestion.use_count !== 1 ? 's' : '' }- <span v-if="suggestion.last_used">- • Last: ${ new Date(suggestion.last_used).toLocaleDateString() }- </span>+ <div v-if="showNewSpeakerSuggestions && newSpeakerSuggestions.length > 0 && !newSpeakerIsMe"+ @click.stop+ class="absolute z-10 w-full mt-1 surface-raised max-h-48 overflow-y-auto">+ <div class="py-1">+ <div v-for="suggestion in newSpeakerSuggestions" :key="suggestion.id"+ @click="selectNewSpeakerSuggestion(suggestion)"+ class="px-3 py-2 cursor-pointer hover:bg-[var(--bg-tertiary)] flex items-center justify-between">+ <div class="flex-grow">+ <div class="t-body-strong">${ suggestion.name }</div>+ <div class="t-meta">+ Used ${ suggestion.use_count } time${ suggestion.use_count !== 1 ? 's' : '' }+ <span v-if="suggestion.last_used"> • Last: ${ new Date(suggestion.last_used).toLocaleDateString() }</span>+ </div></div>+ <i class="fas fa-user text-[var(--text-muted)] ml-2"></i></div>- <i class="fas fa-user text-[var(--text-muted)] ml-2"></i></div></div></div></div>-- <!-- Action buttons -->- <div class="flex justify-end space-x-3">- <button @click="closeAddSpeakerModal" 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)] transition-colors" v-text="t('common.cancel')">- </button>- <button @click="addNewSpeaker" class="px-4 py-2 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors" v-text="t('buttons.addSpeaker')">- </button>- </div>+ <div class="modal-footer">+ <button @click="closeAddSpeakerModal" class="btn btn--ghost" v-text="t('common.cancel')"></button>+ <button @click="addNewSpeaker" class="btn btn--primary" v-text="t('buttons.addSpeaker')"></button></div></div></div>diff --git a/templates/modals/bulk-delete-modal.html b/templates/modals/bulk-delete-modal.htmlindex ed631822..c7c7eba1 100644--- a/templates/modals/bulk-delete-modal.html+++ b/templates/modals/bulk-delete-modal.html@@ -1,48 +1,32 @@-<!-- Bulk Delete Confirmation Modal -->+<!-- Bulk Delete Confirmation Modal (design system v1) --><div v-if="showBulkDeleteModal" @click.self="closeBulkDeleteModal" class="modal-overlay">- <div class="modal-panel modal-panel--sm">- <div class="p-6">- <div class="flex items-center justify-between mb-4">- <div class="flex items-center gap-4">- <div class="w-12 h-12 bg-red-100 dark:bg-red-900/30 rounded-full flex items-center justify-center">- <i class="fas fa-exclamation-triangle text-xl text-red-600 dark:text-red-400"></i>- </div>- <div>- <h3 class="text-lg font-semibold text-[var(--text-primary)]">Delete ${ selectedCount } Recording${ selectedCount !== 1 ? 's' : '' }</h3>- <p class="text-sm text-[var(--text-muted)]">This action cannot be undone</p>- </div>- </div>- <button @click="closeBulkDeleteModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>- </div>-- <div class="bg-[var(--bg-tertiary)] rounded-lg p-4 mb-6">- <p class="text-sm text-[var(--text-secondary)] mb-3">- You are about to permanently delete:- </p>- <ul class="space-y-1 max-h-32 overflow-y-auto">- <li v-for="recording in selectedRecordings.slice(0, 5)" :key="recording.id" class="text-sm text-[var(--text-primary)] flex items-center gap-2">- <i class="fas fa-file-audio text-[var(--text-muted)] text-xs"></i>- <span class="truncate">${ recording.title || 'Untitled' }</span>- </li>- <li v-if="selectedRecordings.length > 5" class="text-sm text-[var(--text-muted)] italic">- ...and ${ selectedRecordings.length - 5 } more- </li>- </ul>- </div>-- <div class="flex justify-end gap-3">- <button @click="closeBulkDeleteModal"- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="executeBulkDelete"- class="px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-lg transition-colors flex items-center gap-2">- <i class="fas fa-trash"></i>- Delete All- </button>+ <div class="modal-panel modal-panel--sm modal-panel--danger">+ <div class="modal-header">+ <i class="fas fa-exclamation-triangle text-2xl text-[var(--text-danger)]"></i>+ <div class="flex-1">+ <h3 class="modal-title">Delete ${ selectedCount } Recording${ selectedCount !== 1 ? 's' : '' }</h3>+ <div class="modal-subtitle">This action cannot be undone</div></div>+ <button @click="closeBulkDeleteModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>+ </div>+ <div class="modal-body">+ <p class="t-body mb-3">You are about to permanently delete:</p>+ <ul class="space-y-1 max-h-32 overflow-y-auto t-body">+ <li v-for="recording in selectedRecordings.slice(0, 5)" :key="recording.id" class="flex items-center gap-2">+ <i class="fas fa-file-audio text-[var(--text-muted)] text-xs"></i>+ <span class="truncate">${ recording.title || 'Untitled' }</span>+ </li>+ <li v-if="selectedRecordings.length > 5" class="t-meta italic">+ ...and ${ selectedRecordings.length - 5 } more+ </li>+ </ul>+ </div>+ <div class="modal-footer">+ <button @click="closeBulkDeleteModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="executeBulkDelete" class="btn btn--danger">+ <i class="fas fa-trash"></i>+ <span>Delete All</span>+ </button></div></div></div>diff --git a/templates/modals/bulk-reprocess-modal.html b/templates/modals/bulk-reprocess-modal.htmlindex 1250fd23..fddeda9c 100644--- a/templates/modals/bulk-reprocess-modal.html+++ b/templates/modals/bulk-reprocess-modal.html@@ -1,88 +1,57 @@-<!-- Bulk Reprocess Modal -->+<!-- Bulk Reprocess Modal (design system v1) --><div v-if="showBulkReprocessModal" @click.self="closeBulkReprocessModal" class="modal-overlay"><div class="modal-panel modal-panel--sm">- <div class="p-6 border-b border-[var(--border-primary)]">- <div class="flex items-center justify-between">- <div class="flex items-center gap-3">- <div class="w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-full flex items-center justify-center">- <i class="fas fa-sync-alt text-white"></i>- </div>- <div>- <h3 class="text-lg font-semibold text-[var(--text-primary)]">Bulk Reprocess</h3>- <p class="text-sm text-[var(--text-muted)]">${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } selected</p>- </div>- </div>- <button @click="closeBulkReprocessModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>+ <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">Bulk Reprocess</h3>+ <div class="modal-subtitle">${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } selected</div></div>+ <button @click="closeBulkReprocessModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>-- <div class="p-6">- <!-- Reprocess Type Selection -->- <div class="mb-6">+ <div class="modal-body">+ <div class="mb-5"><label class="block text-sm font-medium text-[var(--text-secondary)] mb-3">What do you want to reprocess?</label><div class="space-y-2">- <label class="flex items-start gap-3 p-3 rounded-lg border border-[var(--border-secondary)] cursor-pointer hover:bg-[var(--bg-tertiary)] transition-colors"- :class="{ 'border-[var(--border-accent)] bg-[var(--bg-accent)]': bulkReprocessType === 'summary' }">+ <label class="flex items-start gap-3 p-3 rounded-md border border-[var(--border-primary)] cursor-pointer hover:bg-[var(--bg-tertiary)] transition-colors"+ :class="{ 'border-[var(--text-accent)]': bulkReprocessType === 'summary' }"><input type="radio" v-model="bulkReprocessType" value="summary" class="mt-1"><div>- <span class="font-medium text-[var(--text-primary)]">Summary Only</span>- <p class="text-sm text-[var(--text-muted)] mt-0.5">- Regenerate title and summary from existing transcription. Faster option.- </p>+ <span class="t-body-strong">Summary Only</span>+ <p class="t-meta mt-0.5">Regenerate title and summary from existing transcription. Faster option.</p></div></label>- <label class="flex items-start gap-3 p-3 rounded-lg border border-[var(--border-secondary)] cursor-pointer hover:bg-[var(--bg-tertiary)] transition-colors"- :class="{ 'border-[var(--border-accent)] bg-[var(--bg-accent)]': bulkReprocessType === 'transcription' }">+ <label class="flex items-start gap-3 p-3 rounded-md border border-[var(--border-primary)] cursor-pointer hover:bg-[var(--bg-tertiary)] transition-colors"+ :class="{ 'border-[var(--text-accent)]': bulkReprocessType === 'transcription' }"><input type="radio" v-model="bulkReprocessType" value="transcription" class="mt-1"><div>- <span class="font-medium text-[var(--text-primary)]">Full Transcription</span>- <p class="text-sm text-[var(--text-muted)] mt-0.5">- Re-transcribe audio and regenerate everything. Takes longer.- </p>+ <span class="t-body-strong">Full Transcription</span>+ <p class="t-meta mt-0.5">Re-transcribe audio and regenerate everything. Takes longer.</p></div></label></div></div>- <!-- Warning -->- <div class="p-3 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-700 rounded-lg mb-6">- <div class="flex items-start gap-2">- <i class="fas fa-exclamation-triangle text-amber-600 dark:text-amber-400 mt-0.5"></i>- <div class="text-sm">- <p class="font-medium text-amber-800 dark:text-amber-200">Note</p>- <p class="text-amber-700 dark:text-amber-300 mt-0.5" v-if="bulkReprocessType === 'summary'">- This will overwrite any manual edits to titles and summaries.- </p>- <p class="text-amber-700 dark:text-amber-300 mt-0.5" v-else>- This will overwrite all transcriptions, titles, and summaries. Manual edits will be lost.- </p>- </div>+ <div class="banner banner--warn mb-3" style="display: flex; align-items: flex-start; gap: var(--sp-2);">+ <i class="fas fa-exclamation-triangle" style="margin-top: 2px;"></i>+ <div>+ <div class="t-body-strong">Note</div>+ <div class="t-meta mt-0.5" v-if="bulkReprocessType === 'summary'">This will overwrite any manual edits to titles and summaries.</div>+ <div class="t-meta mt-0.5" v-else>This will overwrite all transcriptions, titles, and summaries. Manual edits will be lost.</div></div></div>- <!-- Recording count info -->- <div class="text-sm text-[var(--text-muted)] mb-4">+ <div class="t-meta"><i class="fas fa-info-circle mr-1"></i>- <span v-if="bulkReprocessType === 'summary'">- ${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } will be queued for summary regeneration.- </span>- <span v-else>- ${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } will be queued for full reprocessing.- </span>+ <span v-if="bulkReprocessType === 'summary'">${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } will be queued for summary regeneration.</span>+ <span v-else>${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } will be queued for full reprocessing.</span></div></div>-- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3">- <button @click="closeBulkReprocessModal"- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="executeBulkReprocess"- class="px-4 py-2 bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700 text-white rounded-lg transition-colors flex items-center gap-2">+ <div class="modal-footer">+ <button @click="closeBulkReprocessModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="executeBulkReprocess" class="btn btn--primary"><i class="fas fa-sync-alt"></i>- Start Reprocessing+ <span>Start Reprocessing</span></button></div></div>diff --git a/templates/modals/bulk-tag-modal.html b/templates/modals/bulk-tag-modal.htmlindex 8c7b65d3..44889f37 100644--- a/templates/modals/bulk-tag-modal.html+++ b/templates/modals/bulk-tag-modal.html@@ -1,100 +1,58 @@-<!-- Bulk Tag Modal -->+<!-- Bulk Tag Modal (design system v1) --><div v-if="showBulkTagModal" @click.self="closeBulkTagModal" 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">- <div class="flex items-center gap-3">- <div class="w-10 h-10 bg-[var(--bg-accent)] rounded-full flex items-center justify-center">- <i class="fas fa-tags text-[var(--text-accent)]"></i>- </div>- <div>- <h3 class="text-lg font-semibold text-[var(--text-primary)]">Bulk Tag Update</h3>- <p class="text-sm text-[var(--text-muted)]">${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } selected</p>- </div>- </div>- <button @click="closeBulkTagModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>+ <div class="modal-panel modal-panel--sm">+ <div class="modal-header">+ <i class="fas fa-tags text-2xl text-[var(--text-accent)]"></i>+ <div class="flex-1">+ <h3 class="modal-title">Bulk Tag Update</h3>+ <div class="modal-subtitle">${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } selected</div></div>+ <button @click="closeBulkTagModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>-- <div class="p-6 overflow-y-auto flex-1">- <!-- Action Toggle -->- <div class="flex rounded-lg bg-[var(--bg-tertiary)] p-1 mb-4">+ <div class="modal-body">+ <!-- Action toggle: segmented control -->+ <div class="flex rounded-md bg-[var(--bg-tertiary)] p-1 mb-4"><button @click="bulkTagAction = 'add'"- :class="[- 'flex-1 px-4 py-2 text-sm font-medium rounded-md transition-colors',- bulkTagAction === 'add'- ? 'bg-[var(--bg-button)] text-[var(--text-button)]'- : 'text-[var(--text-muted)] hover:text-[var(--text-primary)]'- ]">+ :class="['flex-1 px-4 py-2 text-sm font-medium rounded-sm transition-colors',+ bulkTagAction === 'add' ? 'bg-[var(--bg-button)] text-[var(--text-button)]' : 'text-[var(--text-muted)] hover:text-[var(--text-primary)]']"><i class="fas fa-plus mr-2"></i>Add Tag</button><button @click="bulkTagAction = 'remove'"- :class="[- 'flex-1 px-4 py-2 text-sm font-medium rounded-md transition-colors',- bulkTagAction === 'remove'- ? 'bg-[var(--bg-button)] text-[var(--text-button)]'- : 'text-[var(--text-muted)] hover:text-[var(--text-primary)]'- ]">+ :class="['flex-1 px-4 py-2 text-sm font-medium rounded-sm transition-colors',+ bulkTagAction === 'remove' ? 'bg-[var(--bg-button)] text-[var(--text-button)]' : 'text-[var(--text-muted)] hover:text-[var(--text-primary)]']"><i class="fas fa-minus mr-2"></i>Remove Tag</button></div>- <!-- Tag Selection --><div>- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">- Select a tag to ${ bulkTagAction }- </label>- <div class="max-h-64 overflow-y-auto space-y-2 border border-[var(--border-secondary)] rounded-lg p-3 bg-[var(--bg-input)]">+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">Select a tag to ${ bulkTagAction }</label>+ <div class="max-h-64 overflow-y-auto space-y-1 border border-[var(--border-primary)] rounded-md p-2 bg-[var(--bg-input)]"><button v-for="tag in availableTags" :key="tag.id"@click="bulkTagSelectedId = tag.id"- :class="[- 'w-full flex items-center justify-between px-3 py-2 rounded-lg transition-colors',- bulkTagSelectedId == tag.id- ? 'bg-[var(--bg-accent)] ring-2 ring-[var(--border-accent)]'- : 'hover:bg-[var(--bg-tertiary)]'- ]">+ :class="['w-full flex items-center justify-between px-3 py-2 rounded-sm transition-colors',+ bulkTagSelectedId == tag.id ? 'bg-[var(--bg-accent)] ring-1 ring-[var(--border-accent)]' : 'hover:bg-[var(--bg-tertiary)]']"><div class="flex items-center gap-2"><span class="w-3 h-3 rounded-full flex-shrink-0" :style="{ backgroundColor: tag.color }"></span>- <span class="text-sm text-[var(--text-primary)]">${ tag.name }</span>+ <span class="t-body">${ tag.name }</span><i v-if="tag.group_id" class="fas fa-users text-xs text-[var(--text-muted)]" title="Group tag"></i></div><i v-if="bulkTagSelectedId == tag.id" class="fas fa-check text-[var(--text-accent)]"></i></button>- <p v-if="availableTags.length === 0" class="text-sm text-[var(--text-muted)] text-center py-4">- No tags available. Create tags in settings.- </p>+ <p v-if="availableTags.length === 0" class="t-meta text-center py-4">No tags available. Create tags in settings.</p></div></div>- <!-- Info message -->- <div class="mt-4 p-3 bg-[var(--bg-tertiary)] rounded-lg text-sm text-[var(--text-muted)]">- <i class="fas fa-info-circle mr-2"></i>- <span v-if="bulkTagAction === 'add'">- The selected tag will be added to all ${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' }.- </span>- <span v-else>- The selected tag will be removed from all ${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } that have it.- </span>+ <div class="mt-4 banner">+ <i class="fas fa-info-circle"></i>+ <span v-if="bulkTagAction === 'add'">The selected tag will be added to all ${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' }.</span>+ <span v-else>The selected tag will be removed from all ${ selectedCount } recording${ selectedCount !== 1 ? 's' : '' } that have it.</span></div></div>-- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3 flex-shrink-0">- <button @click="closeBulkTagModal"- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="executeBulkTag"- :disabled="!bulkTagSelectedId"- :class="[- 'px-4 py-2 rounded-lg transition-colors flex items-center gap-2',- bulkTagSelectedId- ? 'bg-[var(--bg-button)] text-[var(--text-button)] hover:bg-[var(--bg-button-hover)]'- : 'bg-[var(--bg-tertiary)] text-[var(--text-muted)] cursor-not-allowed'- ]">+ <div class="modal-footer">+ <button @click="closeBulkTagModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="executeBulkTag" :disabled="!bulkTagSelectedId" class="btn btn--primary"><i :class="['fas', bulkTagAction === 'add' ? 'fa-plus' : 'fa-minus']"></i>- ${ bulkTagAction === 'add' ? 'Add' : 'Remove' } Tag+ <span>${ bulkTagAction === 'add' ? 'Add' : 'Remove' } Tag</span></button></div></div>diff --git a/templates/modals/color-scheme-modal.html b/templates/modals/color-scheme-modal.htmlindex 82dded7c..d7f726c5 100644--- a/templates/modals/color-scheme-modal.html+++ b/templates/modals/color-scheme-modal.html@@ -1,22 +1,17 @@-<!-- Color Scheme Modal -->-<div v-if="showColorSchemeModal" class="color-scheme-modal" @click.self="closeColorSchemeModal">- <div class="color-scheme-modal-content">- <div class="color-scheme-header">- <div class="flex items-center justify-between mb-2">- <h2 class="color-scheme-title">- <i class="fas fa-palette"></i>- <span v-text="t('colorScheme.title')"></span>- </h2>- <button @click="closeColorSchemeModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>+<!-- Color Scheme Modal (design system v1) -->+<div v-if="showColorSchemeModal" @click.self="closeColorSchemeModal" class="modal-overlay">+ <div class="modal-panel modal-panel--lg">+ <div class="modal-header">+ <i class="fas fa-palette text-xl text-[var(--text-accent)]"></i>+ <div class="flex-1">+ <h3 class="modal-title" v-text="t('colorScheme.title')"></h3>+ <div class="modal-subtitle" v-text="t('colorScheme.subtitle')"></div></div>- <p class="color-scheme-subtitle" v-text="t('colorScheme.subtitle')"></p>+ <button @click="closeColorSchemeModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>-- <div class="color-scheme-body">+ <div class="modal-body"><div class="color-scheme-section">- <h3 class="color-scheme-section-title">+ <h3 class="t-label flex items-center gap-2" style="margin-bottom: var(--sp-3);"><i :class="isDarkMode ? 'fas fa-moon' : 'fas fa-sun'"></i><span v-text="isDarkMode ? t('colorScheme.darkThemes') : t('colorScheme.lightThemes')"></span></h3>@@ -39,13 +34,12 @@</div></div></div>-- <div class="color-scheme-footer">- <button @click="resetColorScheme" class="color-scheme-reset-btn">- <i class="fas fa-undo mr-2"></i><span v-text="t('colorScheme.resetToDefault')"></span>- </button>- <button @click="closeColorSchemeModal" class="color-scheme-close-btn" v-text="t('common.close')">+ <div class="modal-footer modal-footer--between">+ <button @click="resetColorScheme" class="btn btn--ghost">+ <i class="fas fa-undo"></i>+ <span v-text="t('colorScheme.resetToDefault')"></span></button>+ <button @click="closeColorSchemeModal" class="btn btn--primary" v-text="t('common.close')"></button></div></div></div>diff --git a/templates/modals/customize-summary-prompt-modal.html b/templates/modals/customize-summary-prompt-modal.htmlindex 3bf182dc..267d6d11 100644--- a/templates/modals/customize-summary-prompt-modal.html+++ b/templates/modals/customize-summary-prompt-modal.html@@ -1,62 +1,47 @@-<!-- Customise Summary Prompt Modal -->+<!-- Customise Summary Prompt Modal (design system v1) --><div v-if="showCustomizeSummaryModal" @click.self="closeCustomizeSummaryModal" class="modal-overlay">- <div class="modal-panel modal-panel--lg flex flex max-h-[85vh">- <div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0 flex justify-between items-center">- <div class="flex items-center gap-2">- <i class="fas fa-magic text-[var(--text-accent)]"></i>- <h3 class="text-lg font-semibold text-[var(--text-primary)]">${ t('customizeSummary.title') }</h3>- </div>- <button @click="closeCustomizeSummaryModal" 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">+ <i class="fas fa-magic text-2xl text-[var(--text-accent)]"></i>+ <h3 class="modal-title">${ t('customizeSummary.title') }</h3>+ <button @click="closeCustomizeSummaryModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>+ <div class="modal-body space-y-4">+ <p class="t-meta">${ t('customizeSummary.body') }</p>- <div class="px-6 py-5 overflow-y-auto flex-1 space-y-4">- <p class="text-sm text-[var(--text-muted)]">- ${ t('customizeSummary.body') }- </p>-- <div class="grid grid-cols-2 gap-2 p-1 bg-[var(--bg-tertiary)] border border-[var(--border-secondary)] rounded-lg">- <label- :class="['flex items-start gap-2 p-3 rounded-md cursor-pointer transition-colors', customizeSummaryMode === 'append' ? 'bg-[var(--bg-secondary)] border border-[var(--border-accent)] shadow-sm' : 'border border-transparent hover:bg-[var(--bg-secondary)]']">- <input type="radio" value="append" v-model="customizeSummaryMode" class="mt-1 h-4 w-4 text-[var(--text-accent)] border-[var(--border-secondary)] focus:ring-[var(--border-focus)]">+ <div class="grid grid-cols-2 gap-2 p-1 bg-[var(--bg-tertiary)] border border-[var(--border-primary)] rounded-md">+ <label :class="['flex items-start gap-2 p-3 rounded-sm cursor-pointer transition-colors',+ customizeSummaryMode === 'append' ? 'bg-[var(--bg-secondary)] ring-1 ring-[var(--border-accent)]' : 'hover:bg-[var(--bg-secondary)]']">+ <input type="radio" value="append" v-model="customizeSummaryMode" class="mt-1 h-4 w-4"><span class="flex-1">- <span class="block text-sm font-medium text-[var(--text-primary)]">${ t('summaryMode.append') }</span>- <span class="block text-xs text-[var(--text-muted)] mt-0.5">${ t('summaryMode.appendHelp') }</span>+ <span class="block t-body-strong">${ t('summaryMode.append') }</span>+ <span class="block t-meta mt-0.5">${ t('summaryMode.appendHelp') }</span></span></label>- <label- :class="['flex items-start gap-2 p-3 rounded-md cursor-pointer transition-colors', customizeSummaryMode === 'replace' ? 'bg-[var(--bg-secondary)] border border-[var(--border-accent)] shadow-sm' : 'border border-transparent hover:bg-[var(--bg-secondary)]']">- <input type="radio" value="replace" v-model="customizeSummaryMode" class="mt-1 h-4 w-4 text-[var(--text-accent)] border-[var(--border-secondary)] focus:ring-[var(--border-focus)]">+ <label :class="['flex items-start gap-2 p-3 rounded-sm cursor-pointer transition-colors',+ customizeSummaryMode === 'replace' ? 'bg-[var(--bg-secondary)] ring-1 ring-[var(--border-accent)]' : 'hover:bg-[var(--bg-secondary)]']">+ <input type="radio" value="replace" v-model="customizeSummaryMode" class="mt-1 h-4 w-4"><span class="flex-1">- <span class="block text-sm font-medium text-[var(--text-primary)]">${ t('summaryMode.replace') }</span>- <span class="block text-xs text-[var(--text-muted)] mt-0.5">${ t('summaryMode.replaceHelp') }</span>+ <span class="block t-body-strong">${ t('summaryMode.replace') }</span>+ <span class="block t-meta mt-0.5">${ t('summaryMode.replaceHelp') }</span></span></label></div><div>- <label class="block text-xs font-medium text-[var(--text-secondary)] mb-1.5 uppercase tracking-wide">+ <label class="block t-label mb-2"><span v-if="customizeSummaryMode === 'append'">${ t('customizeSummary.additionalContext') }</span><span v-else>${ t('customizeSummary.customPrompt') }</span></label>- <textarea- v-model="customizeSummaryPrompt"- rows="10"- :placeholder="customizeSummaryMode === 'append' ? t('customizeSummary.appendPlaceholder') : t('customizeSummary.replacePlaceholder')"- class="w-full px-3 py-2 text-sm bg-[var(--bg-input)] text-[var(--text-primary)] border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] resize-y font-mono"></textarea>+ <textarea v-model="customizeSummaryPrompt" rows="10"+ :placeholder="customizeSummaryMode === 'append' ? t('customizeSummary.appendPlaceholder') : t('customizeSummary.replacePlaceholder')"+ class="field font-mono" style="resize: vertical; min-height: 240px;"></textarea></div></div>-- <div class="bg-[var(--bg-tertiary)] px-6 py-4 flex justify-end gap-3 border-t border-[var(--border-primary)] flex-shrink-0 rounded-b-xl">- <button @click="closeCustomizeSummaryModal"- 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)] transition-colors">- ${ t('buttons.cancel') }- </button>- <button @click="submitCustomizeSummaryModal"- :disabled="!customizeSummaryPrompt.trim()"- :class="['px-4 py-2 rounded-lg flex items-center gap-2 transition-all', customizeSummaryPrompt.trim() ? 'bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:shadow-md hover:from-blue-700 hover:to-purple-700' : 'bg-[var(--bg-secondary)] text-[var(--text-muted)] border border-[var(--border-secondary)] cursor-not-allowed']">- <i class="fas fa-magic text-xs"></i>+ <div class="modal-footer">+ <button @click="closeCustomizeSummaryModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="submitCustomizeSummaryModal" :disabled="!customizeSummaryPrompt.trim()" class="btn btn--primary">+ <i class="fas fa-magic"></i><span>${ t('customizeSummary.generateSummary') }</span></button></div>diff --git a/templates/modals/duplicates-modal.html b/templates/modals/duplicates-modal.htmlindex 951efc6f..e3955022 100644--- a/templates/modals/duplicates-modal.html+++ b/templates/modals/duplicates-modal.html@@ -1,36 +1,26 @@-<!-- Duplicates List Modal -->+<!-- Duplicates List Modal (design system v1) --><div v-if="showDuplicatesModal && duplicatesModalData" @click.self="showDuplicatesModal = false" class="modal-overlay"><div class="modal-panel modal-panel--xs">- <div class="p-5">- <div class="flex items-center justify-between mb-4">- <div class="flex items-center gap-2.5">- <div class="flex items-center justify-center h-9 w-9 rounded-full bg-amber-100 dark:bg-amber-900/50">- <i class="fas fa-copy text-amber-500 dark:text-amber-400"></i>- </div>- <h3 class="text-base font-semibold text-[var(--text-primary)]">- ${ duplicatesModalData.total_copies } ${ t('upload.copies') || 'copies' }- </h3>- </div>- <button @click="showDuplicatesModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times"></i>- </button>- </div>+ <div class="modal-header">+ <i class="fas fa-copy text-2xl" style="color: var(--tint-warn-fg);"></i>+ <h3 class="modal-title">${ duplicatesModalData.total_copies } ${ t('upload.copies') || 'copies' }</h3>+ <button @click="showDuplicatesModal = false" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>+ </div>+ <div class="modal-body" style="padding: var(--sp-2);"><div class="space-y-1"><button v-for="copy in duplicatesModalData.copies" :key="copy.id"@click="navigateToDuplicate(copy.id)"- class="w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-left transition-colors"- :class="copy.is_self- ? 'bg-[var(--bg-accent-light)] border border-[var(--border-focus)]'- : 'hover:bg-[var(--bg-tertiary)]'">+ class="w-full flex items-center gap-3 px-3 py-2 rounded-md text-left transition-colors"+ :class="copy.is_self ? 'bg-[var(--bg-accent)]' : 'hover:bg-[var(--bg-tertiary)]'"><i class="fas fa-file-audio text-sm flex-shrink-0":class="copy.is_self ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'"></i><div class="min-w-0 flex-1">- <div class="text-sm font-medium truncate"- :class="copy.is_self ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">+ <div class="t-body-strong truncate"+ :class="copy.is_self ? 'text-[var(--text-accent)]' : ''">${ copy.title }- <span v-if="copy.is_self" class="text-xs font-normal text-[var(--text-muted)] ml-1">(current)</span>+ <span v-if="copy.is_self" class="t-meta ml-1">(current)</span></div>- <div class="text-xs text-[var(--text-muted)]">${ copy.created_at }</div>+ <div class="t-meta">${ copy.created_at }</div></div><i v-if="!copy.is_self" class="fas fa-chevron-right text-xs text-[var(--text-muted)]"></i></button>diff --git a/templates/modals/edit-modal.html b/templates/modals/edit-modal.htmlindex 9a083387..4ad14f01 100644--- a/templates/modals/edit-modal.html+++ b/templates/modals/edit-modal.html@@ -1,27 +1,23 @@-<!-- Edit Modal -->+<!-- Edit Recording Modal (design system v1) --><div v-if="showEditModal" @click.self="cancelEdit" class="modal-overlay"><div class="modal-panel modal-panel--md">- <div class="p-6 border-b border-[var(--border-primary)] flex items-center justify-between">- <h3 class="text-lg font-semibold" v-text="t('modal.editRecording')"></h3>- <button @click="cancelEdit" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.editRecording')"></h3>+ <button @click="cancelEdit" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6 space-y-4">+ <div class="modal-body space-y-4"><div><label class="block text-sm font-medium mb-2" v-text="t('form.title')"></label>- <input v-model="editingRecording.title"- class="w-full px-3 py-2 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="editingRecording.title" class="field"></div><div><label class="block text-sm font-medium mb-2" v-text="t('form.participants')"></label>- <input v-model="editingRecording.participants"- class="w-full px-3 py-2 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="editingRecording.participants" class="field"></div><div><label class="block text-sm font-medium mb-2" v-text="t('form.meetingDate')"></label><div @click="openDateTimePicker('edit_modal_meeting_date', editingRecording.meeting_date, (isoString) => { editingRecording.meeting_date = isoString; })"- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg cursor-pointer hover:border-[var(--border-focus)] transition-colors flex items-center justify-between">+ class="field cursor-pointer hover:border-[var(--border-focus)] flex items-center justify-between"><span :class="editingRecording.meeting_date ? 'text-[var(--text-primary)]' : 'text-[var(--text-muted)]'">${editingRecording.meeting_date ? formatDisplayDate(editingRecording.meeting_date) : 'Select date and time...'}</span>@@ -30,21 +26,12 @@</div><div><label class="block text-sm font-medium mb-2" v-text="t('form.notes')"></label>- <textarea v-model="editingRecording.notes"- rows="4"- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]">- </textarea>+ <textarea v-model="editingRecording.notes" rows="4" class="field" style="min-height: 96px;"></textarea></div></div>- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3">- <button @click="cancelEdit"- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="saveEdit"- class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">- Save Changes- </button>+ <div class="modal-footer">+ <button @click="cancelEdit" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="saveEdit" class="btn btn--primary">${ t('buttons.save') || 'Save Changes' }</button></div></div></div>diff --git a/templates/modals/edit-participants-modal.html b/templates/modals/edit-participants-modal.htmlindex 5617aba6..b0bf8076 100644--- a/templates/modals/edit-participants-modal.html+++ b/templates/modals/edit-participants-modal.html@@ -1,17 +1,12 @@-<!-- Edit Participants Modal -->+<!-- Edit Participants Modal (design system v1) --><div v-if="showEditParticipantsModal" @click.self="closeEditParticipantsModal" class="modal-overlay">- <div @click="closeAllParticipantSuggestions" 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.editParticipants')"></h3>- <button @click="closeEditParticipantsModal" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">- <i class="fas fa-times text-xl"></i>- </button>- </div>+ <div @click="closeAllParticipantSuggestions" class="modal-panel modal-panel--sm">+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.editParticipants')"></h3>+ <button @click="closeEditParticipantsModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6 overflow-y-auto flex-1" @scroll="closeAllParticipantSuggestions">- <p class="text-sm text-[var(--text-muted)] mb-4">Manage participants for this recording.</p>-+ <div class="modal-body" @scroll="closeAllParticipantSuggestions">+ <p class="t-meta mb-3">Manage participants for this recording.</p><div class="space-y-2"><div v-for="(participant, index) in editingParticipantsList" :key="index" class="relative"><div class="flex items-center gap-2">@@ -20,14 +15,11 @@@input="filterParticipantSuggestions(index)"@focus="filterParticipantSuggestions(index)"@blur="closeParticipantSuggestionsDelayed(index)"- type="text"- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] text-sm"- placeholder="Participant name...">+ type="text" class="field" placeholder="Participant name..."></div>- <!-- Teleported Suggestions dropdown --><teleport to="body"><div v-if="editingParticipantSuggestions[index]?.length > 0"- class="fixed z-[100] bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-lg shadow-lg max-h-32 overflow-y-auto"+ class="fixed z-[100] surface-raised max-h-32 overflow-y-auto":style="getParticipantDropdownPosition(index)"><button v-for="suggestion in editingParticipantSuggestions[index]" :key="suggestion"@mousedown="selectParticipantSuggestion(index, suggestion)"@@ -36,26 +28,20 @@</button></div></teleport>- <button @click="removeParticipant(index)"- class="p-1 text-[var(--text-muted)] hover:text-red-500 transition-colors">+ <button @click="removeParticipant(index)" class="btn btn--icon btn--sm" style="color: var(--text-muted);"><i class="fas fa-times"></i></button></div></div></div>-<button @click="addParticipant"- class="mt-4 w-full px-3 py-2 border border-dashed border-[var(--border-secondary)] rounded-lg text-sm text-[var(--text-muted)] hover:border-[var(--border-accent)] hover:text-[var(--text-accent)] transition-colors">+ class="mt-3 w-full py-2 border border-dashed border-[var(--border-primary)] rounded-md text-sm text-[var(--text-muted)] hover:border-[var(--text-accent)] hover:text-[var(--text-accent)] transition-colors"><i class="fas fa-plus mr-2"></i>Add Participant</button></div>- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3">- <button @click="closeEditParticipantsModal" class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="saveParticipants" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">- Save Changes- </button>+ <div class="modal-footer">+ <button @click="closeEditParticipantsModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="saveParticipants" class="btn btn--primary">${ t('buttons.save') || 'Save Changes' }</button></div></div></div>diff --git a/templates/modals/edit-speakers-modal.html b/templates/modals/edit-speakers-modal.htmlindex 7cb04e3e..0e9cdcf5 100644--- a/templates/modals/edit-speakers-modal.html+++ b/templates/modals/edit-speakers-modal.html@@ -1,35 +1,27 @@-<!-- Edit Speakers Modal -->+<!-- Edit Speakers Modal (design system v1) --><div v-if="showEditSpeakersModal" @click.self="closeEditSpeakersModal" 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.editSpeakers')"></h3>- <button @click="closeEditSpeakersModal" 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.editSpeakers')"></h3>+ <button @click="closeEditSpeakersModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6 overflow-y-auto flex-1">- <p class="text-sm text-[var(--text-muted)] mb-4">Rename speakers in the transcript.</p>-- <div class="space-y-3">+ <div class="modal-body">+ <p class="t-meta mb-3">Rename speakers in the transcript.</p>+ <div class="space-y-2"><div v-for="(speaker, index) in editingSpeakersList" :key="index" class="relative"><div class="flex items-center gap-2">- <span class="w-24 text-sm text-[var(--text-muted)] truncate">${speaker.original || 'New'}</span>+ <span class="w-24 t-meta truncate">${speaker.original || 'New'}</span><i class="fas fa-arrow-right text-[var(--text-muted)]"></i><div class="flex-1 relative" :ref="'editSpeakerInput' + index"><input v-model="speaker.current"@input="filterEditingSpeakerSuggestions(index)"@focus="filterEditingSpeakerSuggestions(index)"@blur="onEditSpeakerBlur(index)"- type="text"- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] text-sm"- placeholder="New name...">+ type="text" class="field" placeholder="New name..."></div>- <!-- Teleported Suggestions dropdown --><teleport to="body"><div v-if="editingSpeakerSuggestions[index]?.length > 0"- class="fixed z-[100] bg-[var(--bg-secondary)] border border-[var(--border-primary)] rounded-lg shadow-lg max-h-32 overflow-y-auto"+ class="fixed z-[100] surface-raised max-h-32 overflow-y-auto":style="getEditSpeakerDropdownPosition(index)"><button v-for="suggestion in editingSpeakerSuggestions[index]" :key="suggestion.id"@mousedown="selectEditingSpeakerSuggestion(index, suggestion.name)"@@ -38,26 +30,20 @@</button></div></teleport>- <button @click="removeEditingSpeaker(index)"- class="p-1 text-[var(--text-muted)] hover:text-red-500 transition-colors">+ <button @click="removeEditingSpeaker(index)" class="btn btn--icon btn--sm" style="color: var(--text-muted);"><i class="fas fa-times"></i></button></div></div></div>-<button @click="addEditingSpeaker"- class="mt-4 w-full px-3 py-2 border border-dashed border-[var(--border-secondary)] rounded-lg text-sm text-[var(--text-muted)] hover:border-[var(--border-accent)] hover:text-[var(--text-accent)] transition-colors">+ class="mt-3 w-full py-2 border border-dashed border-[var(--border-primary)] rounded-md text-sm text-[var(--text-muted)] hover:border-[var(--text-accent)] hover:text-[var(--text-accent)] transition-colors"><i class="fas fa-plus mr-2"></i>Add Speaker</button></div>- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3">- <button @click="closeEditSpeakersModal" class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="saveEditingSpeakers" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">- Save Changes- </button>+ <div class="modal-footer">+ <button @click="closeEditSpeakersModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="saveEditingSpeakers" class="btn btn--primary">${ t('buttons.save') || 'Save Changes' }</button></div></div></div>diff --git a/templates/modals/edit-text-modal.html b/templates/modals/edit-text-modal.htmlindex b02bb384..b2530bb0 100644--- a/templates/modals/edit-text-modal.html+++ b/templates/modals/edit-text-modal.html@@ -1,38 +1,17 @@-<!-- Edit Text Modal -->+<!-- Edit Text Modal (design system v1) --><div v-if="showEditTextModal" @click.self="closeEditTextModal" class="modal-overlay"><div class="modal-panel modal-panel--lg">- <div class="p-6 border-b border-[var(--border-primary)]">- <div class="flex items-center justify-between">- <h3 class="text-xl font-bold text-[var(--text-primary)]">Edit Transcript Text</h3>- <button @click="closeEditTextModal" 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-header">+ <h3 class="modal-title">Edit Transcript Text</h3>+ <button @click="closeEditTextModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6">-- <!-- Text editor -->- <div class="mb-6">- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">- Text Content- </label>- <textarea- v-model="editedText"- rows="6"- class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md shadow-sm focus:outline-none focus:ring-[var(--border-focus)] focus:border-[var(--border-focus)] sm:text-sm bg-[var(--bg-input)] text-[var(--text-primary)] resize-y"- placeholder="Enter transcript text..."- ></textarea>- </div>-- <!-- Action buttons -->- <div class="flex justify-end space-x-3">- <button @click="closeEditTextModal" 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)] transition-colors">- Cancel- </button>- <button @click="saveEditedText" class="px-4 py-2 bg-[var(--bg-accent)] text-[var(--text-accent)] rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors">- Save Changes- </button>+ <div class="modal-body">+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">Text Content</label>+ <textarea v-model="editedText" rows="6" class="field" style="resize: vertical; min-height: 144px;" placeholder="Enter transcript text..."></textarea></div>+ <div class="modal-footer">+ <button @click="closeEditTextModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="saveEditedText" class="btn btn--primary">${ t('buttons.save') || 'Save Changes' }</button></div></div></div>diff --git a/templates/modals/shares-list-modal.html b/templates/modals/shares-list-modal.htmlindex d32dc430..b51eacb0 100644--- a/templates/modals/shares-list-modal.html+++ b/templates/modals/shares-list-modal.html@@ -1,42 +1,44 @@-<!-- Shares List Modal -->+<!-- Shares List Modal (design system v1) --><div v-if="showSharesListModal" @click.self="closeSharesList" class="modal-overlay">- <div class="modal-panel modal-panel--lg max-h-[80vh flex flex">- <div class="p-6 border-b border-[var(--border-primary)] flex justify-between items-center">- <h3 class="text-lg font-semibold" v-text="t('modal.sharedTranscripts')"></h3>- <button @click="closeSharesList" 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.sharedTranscripts')"></h3>+ <button @click="closeSharesList" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6 space-y-4 overflow-y-auto">- <div v-if="isLoadingShares" class="text-center">- <i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>+ <div class="modal-body">+ <div v-if="isLoadingShares" class="empty">+ <div class="spinner spinner--lg"></div></div>- <div v-else-if="userShares.length === 0" class="text-center text-[var(--text-muted)]">- <span v-text="t('sharedTranscripts.noSharedTranscripts')"></span>+ <div v-else-if="userShares.length === 0" class="empty">+ <div class="empty__icon"><i class="fas fa-share-alt"></i></div>+ <div class="empty__title" v-text="t('sharedTranscripts.noSharedTranscripts')"></div></div><div v-else class="space-y-3">- <div v-for="share in userShares" :key="share.id" class="bg-[var(--bg-tertiary)] p-4 rounded-lg border border-[var(--border-primary)]">+ <div v-for="share in userShares" :key="share.id"+ class="p-4 rounded-md border border-[var(--border-primary)] bg-[var(--bg-tertiary)]"><div class="flex justify-between items-start"><div>- <p class="font-semibold">${share.recording_title}</p>- <p class="text-sm text-[var(--text-muted)]">${ t('help.sharedOn') }: ${share.created_at}</p>+ <p class="t-body-strong">${share.recording_title}</p>+ <p class="t-meta">${ t('help.sharedOn') }: ${share.created_at}</p></div>- <button @click="confirmDeleteShare(share)" class="text-red-500 hover:text-red-700 p-1"><i class="fas fa-trash"></i></button>+ <button @click="confirmDeleteShare(share)" class="btn btn--icon btn--sm" style="color: var(--text-danger);"><i class="fas fa-trash"></i></button></div>- <div class="mt-4 flex items-center gap-4">+ <div class="mt-3 flex items-center gap-4"><label class="flex items-center text-sm">- <input type="checkbox" v-model="share.share_summary" @change="updateShare(share)" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">+ <input type="checkbox" v-model="share.share_summary" @change="updateShare(share)" class="h-4 w-4 rounded"><span class="ml-2" v-text="t('form.shareSummary')"></span></label><label class="flex items-center text-sm">- <input type="checkbox" v-model="share.share_notes" @change="updateShare(share)" class="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500">+ <input type="checkbox" v-model="share.share_notes" @change="updateShare(share)" class="h-4 w-4 rounded"><span class="ml-2" v-text="t('form.shareNotes')"></span></label></div>- <div class="mt-4 relative">- <input :value="'{{ request.url_root }}share/' + share.public_id" :id="'share-link-' + share.id" readonly class="w-full px-3 py-2 pr-12 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-[var(--border-accent)]">- <button @click="copyIndividualShareLink(share.id)" class="absolute right-1.5 top-1/2 -translate-y-1/2 w-7 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>+ <div class="mt-3 relative">+ <input :value="'{{ request.url_root }}share/' + share.public_id" :id="'share-link-' + share.id" readonly class="field pr-12">+ <button @click="copyIndividualShareLink(share.id)"+ class="absolute right-1.5 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>diff --git a/templates/modals/text-editor-modal.html b/templates/modals/text-editor-modal.htmlindex 48b3f6be..50ad589a 100644--- a/templates/modals/text-editor-modal.html+++ b/templates/modals/text-editor-modal.html@@ -1,32 +1,19 @@-<!-- Simple Transcription Editor Modal -->+<!-- Simple Transcription Editor Modal (design system v1) --><div v-if="showTextEditorModal" @click.self="closeTextEditorModal" class="modal-overlay">- <div class="modal-panel modal-panel--lg max-h-[90vh flex flex">- <div class="p-6 border-b border-[var(--border-primary)]">- <div class="flex items-center justify-between">- <h3 class="text-lg font-semibold" v-text="t('modal.editTranscription')"></h3>- <button @click="closeTextEditorModal" 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--lg">+ <div class="modal-header">+ <h3 class="modal-title" v-text="t('modal.editTranscription')"></h3>+ <button @click="closeTextEditorModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button></div>- <div class="p-6 space-y-4 overflow-y-auto flex-1">+ <div class="modal-body"><div><label class="block text-sm font-medium mb-2" v-text="t('transcription.title')"></label>- <textarea v-model="editingTranscriptionContent"- rows="15"- class="w-full px-3 py-2 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] font-mono text-sm">- </textarea>+ <textarea v-model="editingTranscriptionContent" rows="15" class="field font-mono" style="min-height: 320px;"></textarea></div></div>- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end gap-3">- <button @click="closeTextEditorModal"- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">- Cancel- </button>- <button @click="saveTranscription"- class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">- Save Changes- </button>+ <div class="modal-footer">+ <button @click="closeTextEditorModal" class="btn btn--ghost">${ t('buttons.cancel') }</button>+ <button @click="saveTranscription" class="btn btn--primary">${ t('buttons.save') || 'Save Changes' }</button></div></div></div>