Skip to content

fix(ui): hide the Saved Shorts link while Shorts are hidden - #441

Merged
A-EDev merged 5 commits into
Flow-Tube:mainfrom
Spectra47:fix-music-shorts-disabled-surfaces
Nov 10, 2026
Merged

A-EDev merged 5 commits into
Flow-Tube:mainfrom
Spectra47:fix-music-shorts-disabled-surfaces

Conversation

@Spectra47

@Spectra47 Spectra47 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The side rail's Saved Shorts link now hides while Show Shorts is off, matching the Library, which already hides its Saved Shorts shelf then.

Related issue

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Documentation
  • Build, packaging, or CI

Validation

  • pnpm test (393 files, 2322 tests, 0 failures)
  • pnpm build (tsc and vite build pass)
  • cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check
  • cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features
  • cargo test --manifest-path src-tauri/Cargo.toml --all-targets --all-features
  • I smoke-tested the affected desktop behavior.

No Rust files change. A new Sidebar test checks the link with Show Shorts on and off, and fails without the fix.

Screenshots or recordings

Risk and compatibility

  • No new secrets, private data, telemetry, or broad Tauri permissions were introduced.
  • User-facing documentation was updated where needed.
  • Dependency and lockfile changes are intentional and limited to this PR.
  • Breaking changes and upgrade steps are clearly documented.

Spectra47 and others added 5 commits November 7, 2026 03:27
…e disabled

- Gate /albums and /saved-shorts sidebar links behind MUSIC_NAVIGATION_ENABLED and SHORTS_NAVIGATION_ENABLED.
- Hide Albums, Music downloads, and Saved Shorts shelves on LibraryPage when respective nav toggles are off.
- Skip YouTube Music autocomplete and combined search queries/chips when Music navigation is disabled.
- Hide Music/Albums filter chips in History and Downloads, and hide Music category in Settings sidebar when Music is disabled.
# Conflicts:
#	changelog/v0.1.0-beta4.txt
#	src/components/layout/TopbarSearch.tsx
#	src/components/search/SearchControlBar.tsx
#	src/components/settings/SettingsLayout.tsx
#	src/lib/useSearchSuggestions.ts
#	src/pages/History.tsx
#	src/pages/LibraryPage.tsx
Co-authored-by: Spect_Ops <58440212+Spectra47@users.noreply.github.com>
Co-authored-by: Spect_Ops <58440212+Spectra47@users.noreply.github.com>
@A-EDev A-EDev changed the title fix(ui): hide Music and Shorts surfaces consistently when nav tabs are disabled fix(ui): hide the Saved Shorts link while Shorts are hidden Nov 10, 2026
@A-EDev

A-EDev commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this, and for writing a test. I narrowed it to one change before merging.

The Music Tab and Shorts Tab switches are under Navigation tabs, and as on Android they only hide the tab. Turning one off shouldn't also hide history, downloads, search results or the Music settings section. For Shorts, main got a separate Show Shorts switch in Content after you branched, and it already hides Shorts in search, Library, History and Home.

Your PR found one gap that main still had: the side rail kept its Saved Shorts link while Show Shorts was off, even though the Library hides that shelf. The PR now fixes just that, with a test.

A Show Music switch that works like Show Shorts is a good idea, so I'm adding one in a separate PR.

@A-EDev
A-EDev merged commit 39cf194 into Flow-Tube:main Nov 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants