Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Mobile bottom-nav shell: tab navigation moves to the bottom with 3 primary tabs (Summary / Transcript / Chat) + More overflow that opens a bottom sheet for Notes / Events; chat tab shows message-count badge; mobile audio-player becomes the persistent mini-player sitting above the bottom nav (border-t instead of border-b, tighter padding); default landing tab is Summary per the design contract; mobileMoreOpen + mobileTab state wired into the app composition
Murtaza Nasirb10f48e39acd
diff --git a/static/js/app.modular.js b/static/js/app.modular.jsindex 2d54ddad..737d06dc 100644--- a/static/js/app.modular.js+++ b/static/js/app.modular.js@@ -295,7 +295,8 @@ document.addEventListener('DOMContentLoaded', async () => {const currentColorScheme = ref('blue');const showColorSchemeModal = ref(false);const windowWidth = ref(window.innerWidth);- const mobileTab = ref('transcript');+ const mobileTab = ref('summary'); // default landing tab post-transcription+ const mobileMoreOpen = ref(false); // bottom-nav More overflow sheetconst isMetadataExpanded = ref(false);const expandedSection = ref('settings'); // 'notes' or 'settings' for recording view accordionconst showSortOptions = ref(false);@@ -803,7 +804,7 @@ document.addEventListener('DOMContentLoaded', async () => {// UIbrowser, isSidebarCollapsed, searchTipsExpanded, isUserMenuOpen, tokenBudget, isDarkMode,- currentColorScheme, showColorSchemeModal, windowWidth, mobileTab, isMetadataExpanded, expandedSection,+ currentColorScheme, showColorSchemeModal, windowWidth, mobileTab, mobileMoreOpen, isMetadataExpanded, expandedSection,showSortOptions, currentLanguage, currentLanguageName, availableLanguages, showLanguageMenu,colorSchemes, isMobileScreen, isMobileDevice,summaryWordCount, notesWordCount,diff --git a/templates/components/detail-view.html b/templates/components/detail-view.htmlindex 246aa030..1eae1596 100644--- a/templates/components/detail-view.html+++ b/templates/components/detail-view.html@@ -25,13 +25,15 @@</div></div>- <!-- Mobile View -->+ <!-- 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' %}- {% include 'components/detail/audio-player.html' %}- {% include 'components/detail/tab-navigation.html' %}- <!-- Mobile Tab Content -->+ <!-- Mobile Tab Content (single panel) --><div class="flex-1 overflow-y-auto p-4">{% include 'components/detail/mobile-transcript-panel.html' %}{% include 'components/detail/mobile-summary-panel.html' %}@@ -39,6 +41,12 @@{% include 'components/detail/mobile-chat-panel.html' %}{% include 'components/detail/mobile-events-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 -->diff --git a/templates/components/detail/audio-player.html b/templates/components/detail/audio-player.htmlindex 27c1b764..b001ebb5 100644--- a/templates/components/detail/audio-player.html+++ b/templates/components/detail/audio-player.html@@ -1,5 +1,8 @@-<!-- Audio Player Component (Mobile) -->-<div class="bg-[var(--bg-secondary)] px-4 py-3 border-b border-[var(--border-primary)] flex-shrink-0">+<!-- Audio Player Component (Mobile) — sits above the bottom nav as a+ persistent mini-player. Top border separates it from the content+ above; padding tightened so it doesn't shove the bottom-nav too+ far up. -->+<div class="bg-[var(--bg-secondary)] px-3 py-2 border-t border-[var(--border-primary)] flex-shrink-0"><!-- Show message if audio has been deleted --><div v-if="selectedRecording.audio_deleted_at"class="text-[var(--text-muted)] text-sm flex items-center gap-2">diff --git a/templates/components/detail/tab-navigation.html b/templates/components/detail/tab-navigation.htmlindex 53a6346e..c3d8388f 100644--- a/templates/components/detail/tab-navigation.html+++ b/templates/components/detail/tab-navigation.html@@ -1,34 +1,70 @@-<!-- Mobile Tab Navigation (design system v1) — uses the same tabs- primitive as desktop so the mobile shell shares the same language. -->-<div class="flex-shrink-0">- <div class="tabs px-2 overflow-x-auto">- <button @click="mobileTab = 'summary'"- class="tab"- :class="{'is-active': mobileTab === 'summary'}">- <span v-text="t('summary.title')"></span>- </button>- <button @click="mobileTab = 'transcript'"- class="tab"- :class="{'is-active': mobileTab === 'transcript'}">- <span v-text="t('transcription.title')"></span>- </button>- <button @click="mobileTab = 'notes'"- class="tab"- :class="{'is-active': mobileTab === 'notes'}">- <span v-text="t('notes.title')"></span>- </button>- <button @click="mobileTab = 'chat'"- class="tab"- :class="{'is-active': mobileTab === 'chat'}">- <span v-text="t('chat.title')"></span>- </button>- <button v-if="selectedRecording.events && selectedRecording.events.length > 0"- @click="mobileTab = 'events'"- class="tab"- :class="{'is-active': mobileTab === 'events'}">- <i class="fas fa-calendar-alt" style="font-size: 11px;"></i>- <span v-text="t('events.title')"></span>- <span class="tab__count">${ selectedRecording.events.length }</span>- </button>- </div>+<!-- Mobile Bottom Tab Navigation (design system v1).+ Three primary tabs (Summary / Transcript / Chat) plus a More overflow+ menu that surfaces Notes / Events / Settings. 56px tall to comfortably+ accommodate icon + label + 44×44 touch target per HIG. -->+<div class="flex-shrink-0 border-t border-[var(--border-primary)] bg-[var(--bg-secondary)] flex items-stretch" style="min-height: 56px;">+ <button @click="mobileTab = 'summary'"+ class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors"+ :class="mobileTab === 'summary' ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'">+ <i class="fas fa-file-alt text-base"></i>+ <span class="text-[10px] font-medium" v-text="t('summary.title')"></span>+ </button>+ <button @click="mobileTab = 'transcript'"+ class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors"+ :class="mobileTab === 'transcript' ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'">+ <i class="fas fa-align-left text-base"></i>+ <span class="text-[10px] font-medium" v-text="t('transcription.title')"></span>+ </button>+ <button @click="mobileTab = 'chat'"+ class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors relative"+ :class="mobileTab === 'chat' ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'">+ <i class="fas fa-comments text-base"></i>+ <span class="text-[10px] font-medium" v-text="t('chat.title')"></span>+ <span v-if="chatMessages && chatMessages.length > 0"+ class="absolute top-1 right-3 inline-flex items-center justify-center w-4 h-4 text-[9px] font-bold rounded-full"+ style="background: var(--text-accent); color: var(--bg-secondary);">+ ${chatMessages.length}+ </span>+ </button>+ <!-- More menu (overflow): houses Notes, Events, etc. -->+ <button @click="mobileMoreOpen = !mobileMoreOpen"+ class="flex-1 flex flex-col items-center justify-center gap-0.5 px-2 transition-colors relative"+ :class="['notes','events'].includes(mobileTab) ? 'text-[var(--text-accent)]' : 'text-[var(--text-muted)]'">+ <i class="fas fa-ellipsis-h text-base"></i>+ <span class="text-[10px] font-medium">More</span>+ <!-- Indicator when an overflow tab is active -->+ <span v-if="['notes','events'].includes(mobileTab)"+ class="absolute top-1 right-3 inline-flex items-center justify-center w-1.5 h-1.5 rounded-full"+ style="background: var(--text-accent);"></span>+ </button>++ <!-- More popup (slides up over the nav). Bottom-sheet feel. -->+ <Teleport to="body">+ <div v-if="mobileMoreOpen" class="fixed inset-0 z-[60] flex flex-col">+ <!-- Backdrop -->+ <div class="flex-1" style="background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px);" @click="mobileMoreOpen = false"></div>+ <!-- Sheet -->+ <div class="surface-raised flex-shrink-0" style="border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: env(safe-area-inset-bottom);">+ <div class="flex justify-center py-2">+ <span style="width: 36px; height: 4px; border-radius: 2px; background: var(--border-primary);"></span>+ </div>+ <div class="px-2 pb-3 space-y-1">+ <button @click="mobileTab = 'notes'; mobileMoreOpen = false"+ class="w-full flex items-center gap-3 px-3 py-3 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors"+ :class="mobileTab === 'notes' ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">+ <i class="fas fa-sticky-note w-5 text-center"></i>+ <span class="font-medium" v-text="t('notes.title')"></span>+ </button>+ <button v-if="selectedRecording && selectedRecording.events && selectedRecording.events.length > 0"+ @click="mobileTab = 'events'; mobileMoreOpen = false"+ class="w-full flex items-center gap-3 px-3 py-3 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors"+ :class="mobileTab === 'events' ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">+ <i class="fas fa-calendar-alt w-5 text-center"></i>+ <span class="font-medium" v-text="t('events.title')"></span>+ <span class="ml-auto pill-status pill-status--info">${selectedRecording.events.length}</span>+ </button>+ </div>+ </div>+ </div>+ </Teleport></div>