Shorten the File menu with submenus for Download as / Export / Import - #429
Merged
Conversation
…/ Export / Import (#428) The File menu had grown into a long flat list. Group the two largest sections — "Download as" (VTT/word-level VTT/SRT/HTML/Interactive/Media) and "Export / Import" (JSON/Ionosphere/Deepgram/SRT/VTT) — into DaisyUI <details> submenus that expand inline, so the top level collapses to Upload & Transcribe, Add Transcript, and the two submenus. Mirrors the Glider native File menu. All item ids, download hrefs, modal toggles, and custom elements (<export-json> etc.) are preserved — only the nesting changes — so every action still works and editor-file-menu.js keeps appending the Local Storage section at the end. Menu width is set inline (not a Tailwind w-* class): the prebuilt/purged tailwind-min.css only ships width utilities used at build time, so an unbuilt class silently collapses the menu to content width and every item wraps. Adds e2e tests: submenus present and collapsed by default with every action still reachable, a submenu expands on click and its nested label→modal wiring fires, and the menu keeps a real rendered width.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #428.
Problem
The File menu had grown into a long flat list — Upload & Transcribe, Add Transcript, six Download as entries, and six Export / Import entries (plus the appended Local Storage section).
Change
Group the two largest sections into DaisyUI
<details>submenus that expand inline (touch-friendly, keyboard-accessible), so the top level collapses to:Mirrors the Glider native File menu for cross-product consistency. All item ids, download hrefs, modal toggles, and custom elements (
<export-json>etc.) are preserved — only the nesting changes — so every action still works andeditor-file-menu.jskeeps appending Local Storage at the end. Both submenus can be open at once (no exclusive accordion).Menu width is set inline rather than a Tailwind
w-*class: the prebuilt/purgedtailwind-min.cssonly ships width utilities used at build time, so an unbuilt class silently collapses the menu to content width and every item wraps.Tests
__TEST__/e2e/file-menu-submenus.spec.mjs:Full suite green; a11y and dom-hygiene specs unaffected.