fix(context): add DailyQ, WeeklyQ, LabelTop playback context types

DailyQ and WeeklyQ were incorrectly using 'home_list' context type.
LabelTop was defined in frontend but missing from Rust backend.

- Add LabelTop, DailyQ, WeeklyQ variants to Rust ContextType enum
- Add match arms in commands_v2.rs and display_info()
- Update frontend ContextType union and display strings
- DynamicSuggestView now uses 'daily_q' context type
- WeeklySuggestView now uses 'weekly_q' context type
This commit is contained in:
vicrodh committed 2026-02-20 03:55:39 -06:00
1 parent df3b203875
commit 2d2df20c45
5 files changed
+14 -3

No files matched your search

@@ -305,7 +305,7 @@
if (queueIndex < 0) return;
await setPlaybackContext(
'home_list',
'daily_q',
'dailyq',
'DailyQ',
'qobuz',
@@ -309,7 +309,7 @@
if (queueIndex < 0) return;
await setPlaybackContext(
'home_list',
'weekly_q',
'weeklyq',
'WeeklyQ',
'qobuz',
+3 -1
View File
@@ -9,7 +9,7 @@ import { invoke } from '@tauri-apps/api/core';
// ============ Types ============
export type ContextType = 'album' | 'playlist' | 'artist_top' | 'label_top' | 'home_list' | 'favorites' | 'local_library' | 'radio' | 'search';
export type ContextType = 'album' | 'playlist' | 'artist_top' | 'label_top' | 'home_list' | 'daily_q' | 'weekly_q' | 'favorites' | 'local_library' | 'radio' | 'search';
export type ContentSource = 'qobuz' | 'local' | 'plex';
export interface PlaybackContext {
@@ -139,6 +139,8 @@ export function getContextDisplayInfo(): string | null {
artist_top: 'Artist Top Songs',
label_top: 'Label Top Songs',
home_list: 'Home List',
daily_q: 'DailyQ',
weekly_q: 'WeeklyQ',
favorites: 'Favorites',
local_library: 'Local Library',
radio: 'Radio',