feat: add ML indicator badge for recommendation sections
- Change source type from 'user' to 'ml' for ML-powered sections - Add green "ML" badge in settings modal to distinguish from Qobuz content
This commit is contained in:
1 parent
721dc2996c
commit
23e6df6efe
2 files changed
+18
-8
No files matched your search
@@ -127,7 +127,9 @@
|
||||
<span class="section-label">
|
||||
{section.label}
|
||||
{#if section.source === 'qobuz'}
|
||||
<span class="source-badge">Qobuz</span>
|
||||
<span class="source-badge qobuz">Qobuz</span>
|
||||
{:else if section.source === 'ml'}
|
||||
<span class="source-badge ml">ML</span>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
@@ -350,14 +352,22 @@
|
||||
.source-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
color: var(--accent-primary);
|
||||
background: rgba(99, 102, 241, 0.15);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.source-badge.qobuz {
|
||||
color: var(--accent-primary);
|
||||
background: rgba(99, 102, 241, 0.15);
|
||||
}
|
||||
|
||||
.source-badge.ml {
|
||||
color: #10b981;
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
}
|
||||
|
||||
.reset-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface HomeSection {
|
||||
id: HomeSectionId;
|
||||
label: string;
|
||||
visible: boolean;
|
||||
source?: 'qobuz' | 'user'; // qobuz = editorial, user = personal data
|
||||
source?: 'qobuz' | 'ml'; // qobuz = editorial, ml = ML-powered recommendations
|
||||
}
|
||||
|
||||
export interface HomeSettings {
|
||||
@@ -37,10 +37,10 @@ const DEFAULT_SECTIONS: HomeSection[] = [
|
||||
{ id: 'newReleases', label: 'New Releases', visible: true, source: 'qobuz' },
|
||||
{ id: 'pressAwards', label: 'Press Awards', visible: true, source: 'qobuz' },
|
||||
{ id: 'mostStreamed', label: 'Popular Albums', visible: false, source: 'qobuz' },
|
||||
{ id: 'recentAlbums', label: 'Recently Played', visible: true, source: 'user' },
|
||||
{ id: 'continueTracks', label: 'Continue Listening', visible: true, source: 'user' },
|
||||
{ id: 'topArtists', label: 'Your Top Artists', visible: true, source: 'user' },
|
||||
{ id: 'favoriteAlbums', label: 'More From Favorites', visible: true, source: 'user' },
|
||||
{ id: 'recentAlbums', label: 'Recently Played', visible: true, source: 'ml' },
|
||||
{ id: 'continueTracks', label: 'Continue Listening', visible: true, source: 'ml' },
|
||||
{ id: 'topArtists', label: 'Your Top Artists', visible: true, source: 'ml' },
|
||||
{ id: 'favoriteAlbums', label: 'More From Favorites', visible: true, source: 'ml' },
|
||||
];
|
||||
|
||||
const DEFAULT_SETTINGS: HomeSettings = {
|
||||
|
||||
Reference in new issue
Block a user