Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Upload modal: progressive disclosure — wrap Folder / Tags / Prompt-variables / Advanced ASR in a single collapsible Options group with chip summary — addresses item 2 of the upload-modal plan; the four configuration sections that most uploads don't actively edit (folder pick, tag selection grid, prompt template variables, advanced ASR options like language / min-max speakers / hotwords / model) used to stack vertically and made the modal feel dense even when the user was using last-session defaults; now wrapped in a <details class='upload-options-group'> with the summary row showing chips of whatever's currently set: folder chip in the folder's colour, tags chip with count, language chip if a non-default language is set, speakers chip if min/max are set; default state is collapsed so the first thing the user sees after the recording buttons is just the Options row with a clear at-a-glance read of current state via chips; clicking expands the full editor (existing markup unchanged inside) so power users can still edit everything; chevron-down hint rotates 180deg when expanded via a new .upload-options-group[open] .upload-options-chevron rule in primitives.css; no logic / Vue state changes — purely a markup wrap + CSS rule
Murtaza Nasirf6258ac0c6c9
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex cc9a5518..dfedad22 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -1410,3 +1410,12 @@ textarea:focus-visible {.tab-footer { padding: var(--sp-2) var(--sp-4); }.tab-footer::before { font-size: 10px; }}+++/* ---- Upload modal: progressive-disclosure Options group ------------------+ The .upload-options-group <details> wraps Folder / Tags / Prompt vars /+ Advanced ASR. The chevron-down icon inside flips up when the group is+ expanded so users have a clear visual indicator. */+.upload-options-group[open] .upload-options-chevron {+ transform: rotate(180deg);+}diff --git a/templates/components/upload-view.html b/templates/components/upload-view.htmlindex bcdebab6..637b7de7 100644--- a/templates/components/upload-view.html+++ b/templates/components/upload-view.html@@ -382,6 +382,58 @@</div></div>+ <!-- Progressive disclosure: Folder + Tags + Prompt+ variables + Advanced ASR all live behind a single+ collapsible "Options" group. The summary line shows+ chips for whatever the user has selected so they can+ verify state without expanding; clicking opens the+ full editor. Defaults to collapsed because most+ uploads use whatever was last set and the chips+ already communicate that. -->+ <details class="mt-4 upload-options-group">+ <summary class="cursor-pointer flex items-center gap-2 px-3 py-2 rounded-md hover:bg-[var(--bg-tertiary)] transition-colors"+ style="list-style: none; background: var(--bg-tertiary);">+ <i class="fas fa-sliders-h text-[var(--text-muted)]"></i>+ <span class="text-sm font-medium" style="color: var(--text-secondary);">Options</span>++ <!-- Chip summary of currently-set values. Each+ chip is conditionally rendered. -->+ <div class="flex items-center gap-1 ml-2 flex-wrap min-w-0">+ <!-- Folder chip -->+ <span v-if="foldersEnabled && selectedFolderId && getFolderById(selectedFolderId)"+ class="inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] rounded-full"+ :style="{ background: getFolderColor(selectedFolderId) + '22', color: getFolderColor(selectedFolderId) }">+ <i class="fas fa-folder"></i>+ <span class="truncate max-w-[120px]" v-text="getFolderById(selectedFolderId).name"></span>+ </span>+ <!-- Tag count chip -->+ <span v-if="selectedTags.length > 0"+ class="inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] rounded-full"+ style="background: var(--bg-accent); color: var(--text-accent);">+ <i class="fas fa-tag"></i>+ <span>${ selectedTags.length } ${ selectedTags.length === 1 ? 'tag' : 'tags' }</span>+ </span>+ <!-- Language chip (only if non-default) -->+ <span v-if="uploadLanguage"+ class="inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] rounded-full"+ style="background: var(--bg-accent); color: var(--text-accent);">+ <i class="fas fa-language"></i>+ <span v-text="uploadLanguage"></span>+ </span>+ <!-- Speakers chip (only if non-default) -->+ <span v-if="uploadMinSpeakers || uploadMaxSpeakers"+ class="inline-flex items-center gap-1 px-1.5 py-0.5 text-[10px] rounded-full"+ style="background: var(--bg-accent); color: var(--text-accent);">+ <i class="fas fa-users"></i>+ <span>${ uploadMinSpeakers || '?' }${ uploadMinSpeakers != uploadMaxSpeakers ? '-' + (uploadMaxSpeakers || '?') : '' }</span>+ </span>+ </div>++ <i class="fas fa-chevron-down ml-auto text-xs text-[var(--text-muted)] transition-transform upload-options-chevron"></i>+ </summary>++ <div class="mt-2">+<!-- Folder Selection (only shown if folders are enabled) --><div v-if="foldersEnabled" class="mt-4"><label class="block text-sm font-medium text-[var(--text-secondary)] mb-2">@@ -672,6 +724,9 @@</p></div></div>++ </div><!-- end .mt-2 wrapper inside details -->+ </details><!-- end Options progressive-disclosure group --></div></div></div>