Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
<!-- Detail View Container -->
<div v-if="currentView === 'detail' && selectedRecording" class="flex-1 flex flex-col overflow-hidden">
<!-- Incognito Mode Indicator Bar (theme-safe tint via --tint-incognito) -->
<div v-if="selectedRecording.incognito"
class="border-b px-4 py-2 flex-shrink-0"
style="background: var(--tint-incognito); border-color: var(--tint-incognito-border);">
<div class="flex items-center justify-between gap-4 max-w-4xl mx-auto">
<div class="flex items-center gap-3">
<div class="w-7 h-7 rounded-full flex items-center justify-center" style="background: var(--tint-incognito-fg); opacity: 0.85;">
<i class="fas fa-user-secret text-white text-xs"></i>
</div>
<div class="flex items-center gap-2 flex-wrap">
<span class="text-sm font-medium" style="color: var(--tint-incognito-fg);">${ t('incognito.badge') }</span>
<span class="text-xs" style="color: var(--tint-incognito-fg); opacity: 0.75;">
• ${ t('incognito.sessionOnly') } • ${ t('incognito.notSavedToAccount') }
</span>
</div>
</div>
<button @click="clearIncognitoRecordingWithConfirm"
class="btn btn--icon btn--sm"
style="color: var(--tint-incognito-fg);"
:title="t('tooltips.discardIncognito')">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<!-- Mobile View — bottom-nav shell.
Top: compact header (mobile-header.html)
Middle: tab content (single panel visible)
Above bottom nav: persistent mini-player (compact audio strip)
Bottom: tab navigation (Summary / Transcript / Chat / More) -->
<div v-if="isMobile" class="flex flex-col h-full overflow-hidden">
{% include 'components/detail/mobile-header.html' %}
<!-- Mobile Tab Content. No outer padding — each panel owns
its own edges so the content goes full-width to the
screen edges instead of sitting inside a 16 px gutter
that read as a "box within a box". -->
<div class="flex-1 overflow-y-auto">
{% include 'components/detail/mobile-transcript-panel.html' %}
{% include 'components/detail/mobile-summary-panel.html' %}
{% include 'components/detail/mobile-notes-panel.html' %}
{% include 'components/detail/mobile-chat-panel.html' %}
{% include 'components/detail/mobile-events-panel.html' %}
{% include 'components/detail/mobile-stats-panel.html' %}
</div>
<!-- Persistent mini-player (compact strip) -->
{% include 'components/detail/audio-player.html' %}
<!-- Bottom nav -->
{% include 'components/detail/tab-navigation.html' %}
</div>
<!-- Desktop View -->
<div v-else class="flex-1 flex flex-col overflow-hidden">
<!-- Recording title + meta + action icons live in the single
adaptive top header (components/header.html). This compact
strip is the secondary metadata row.
TWO GROUPS, not one flat row: the chips (folder + tags) live
in their own tight-gap container so adjacent tags sit close
together exactly like the sidebar (gap-1 = 4px), and the
text metadata (participants / date / file info) lives in a
second container. When the row wraps, each group stays
coherent — tablets together, "other stuff" together —
instead of tags being flung apart by the wide inter-item
gap the text group needs. -->
<!-- Coloured chips (folder + tags) sit in a tight group like the
sidebar; metadata facts are neutral .chip-meta tablets like
the mobile expanded panel. The colour difference separates
the two groups so no divider is needed even when they wrap
onto separate lines. gap-y-2 gives a little vertical air
between wrapped rows. -->
<div class="bg-[var(--bg-secondary)] border-b border-[var(--border-primary)] px-5 py-2.5 flex-shrink-0 flex flex-wrap items-center gap-x-2.5 gap-y-2 text-xs text-[var(--text-muted)]">
<!-- Chip group (folder + tags), tight 4px gap like the sidebar -->
<div v-if="(foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito) || (selectedRecording.tags && selectedRecording.tags.length > 0)"
class="flex flex-wrap items-center gap-1">
<span v-if="foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito"
class="chip"
:style="{ backgroundColor: getFolderColor(selectedRecording.folder_id), color: getContrastTextColor(getFolderColor(selectedRecording.folder_id)) }"
:title="t('tooltips.folderLabel', { name: getFolderName(selectedRecording.folder_id) })">
<i class="fas fa-folder"></i>
<span class="chip__label">${ getFolderName(selectedRecording.folder_id) }</span>
</span>
<span v-for="tag in selectedRecording.tags" :key="tag.id"
class="chip"
:style="{ backgroundColor: tag.color || '#6B7280', color: getContrastTextColor(tag.color || '#6B7280') }"
:title="tag.group_id ? t('tooltips.groupLabel', { name: tag.group_name }) : tag.name">
<i v-if="tag.group_id" class="fas fa-users"></i>
<span class="chip__label">${tag.name}</span>
</span>
</div>
<!-- Participants -->
<span class="chip-meta chip-meta--clickable" @click="openParticipantsModal"
:title="selectedRecording.participants || t('help.noParticipants')">
<i class="fas fa-users"></i>
<span class="chip-meta__label">${selectedRecording.participants || t('help.noParticipants')}</span>
</span>
<!-- Meeting date -->
<span class="chip-meta chip-meta--clickable" @click="openMeetingDatePicker">
<i class="fas fa-calendar"></i>
<span class="chip-meta__label">${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : t('help.noDateSet')}</span>
</span>
<!-- File metadata facts -->
<span v-for="(item, index) in (activeRecordingMetadata || [])" :key="`meta-${index}`"
class="chip-meta" :title="item.fullText || item.text">
<i :class="item.icon"></i>
<span class="chip-meta__label">${item.text}</span>
</span>
<!-- Duplicate indicator -->
<button v-if="selectedRecording.duplicate_info"
@click="openDuplicatesModal(selectedRecording.duplicate_info)"
class="chip-meta chip-meta--warn chip-meta--clickable">
<i class="fas fa-copy"></i>
<span>${ selectedRecording.duplicate_info.total_copies } ${ t('upload.copies') || 'copies' }</span>
</button>
<!-- Transcription hints used (#309): click to see the effective
hotwords / initial prompt that steered this transcription. -->
<div v-if="selectedRecording.resolved_hotwords || selectedRecording.resolved_initial_prompt" class="relative">
<button @click="toggleHintsPopover($event)"
class="chip-meta chip-meta--clickable"
:title="t('detail.hintsUsed')">
<i class="fas fa-wand-magic-sparkles"></i>
<span>${ t('detail.hints') }</span>
</button>
<div v-if="showHintsPopover" @click="showHintsPopover = false" class="fixed inset-0 z-40"></div>
<div v-if="showHintsPopover" :style="hintsPopoverStyle"
class="hints-popover absolute left-0 top-full mt-1 z-50 w-72 max-w-[80vw] p-3 bg-[var(--bg-primary)] border border-[var(--border-primary)] rounded-md shadow-lg text-left space-y-2">
<div v-if="selectedRecording.resolved_hotwords">
<p class="text-[10px] font-semibold uppercase tracking-wide text-[var(--text-muted)]">${ t('form.hotwords') }</p>
<p class="text-xs text-[var(--text-primary)] whitespace-pre-wrap break-words">${ selectedRecording.resolved_hotwords }</p>
</div>
<div v-if="selectedRecording.resolved_initial_prompt">
<p class="text-[10px] font-semibold uppercase tracking-wide text-[var(--text-muted)]">${ t('form.initialPrompt') }</p>
<p class="text-xs text-[var(--text-primary)] whitespace-pre-wrap break-words">${ selectedRecording.resolved_initial_prompt }</p>
</div>
</div>
</div>
</div>
<!-- Persistent audio player. By default sits at the BOTTOM of
the recording-detail screen, but the user can flip it to
the TOP from the Display tab in settings (preference
stored in user.audio_player_position; mirrored to the
reactive audioPlayerPosition ref). When 'top', the same
component renders ABOVE the main content split view so
it sits just under the title-meta strip. -->
<template v-if="audioPlayerPosition === 'top'">
{% include 'components/detail/desktop-bottom-player.html' %}
</template>
<!-- Main Content Split View -->
<div id="mainContentColumns" class="flex-1 flex overflow-hidden">
{% include 'components/detail/desktop-transcription-panel.html' %}
<!-- Resizable Divider. Carries a persistent themed seam
(::before) for always-on visual separation between the
transcript and summary columns; on hover / while
dragging it thickens into an accent grab-handle. -->
<div id="mainColumnResizer" :class="{ 'is-resizing': isResizing }" @mousedown="startColumnResize"></div>
{% include 'components/detail/desktop-right-panel.html' %}
</div>
<template v-if="audioPlayerPosition !== 'top'">
{% include 'components/detail/desktop-bottom-player.html' %}
</template>
</div>
<!-- Floating dockable chat (teleported to body; desktop-only). -->
{% include 'components/detail/floating-chat.html' %}
</div>
{% include 'components/detail/empty-state.html' %}