Remove Listen page, tighten Bandcamp matching to 75%+ artist similarity

This commit is contained in:
root
2026-03-31 00:10:15 -05:00
parent 1efa5cd628
commit 789de25c1a
6 changed files with 9 additions and 381 deletions

View File

@@ -1,13 +1,12 @@
import { useState } from 'react'
import { Link, useLocation, useNavigate } from 'react-router-dom'
import { Disc3, LayoutDashboard, ListMusic, Compass, Heart, Crown, Headphones, Menu, X, LogOut, User } from 'lucide-react'
import { Disc3, LayoutDashboard, ListMusic, Compass, Heart, Crown, Menu, X, LogOut, User } from 'lucide-react'
import { useAuth } from '../lib/auth'
const navItems = [
{ path: '/dashboard', label: 'Dashboard', icon: LayoutDashboard },
{ path: '/playlists', label: 'Playlists', icon: ListMusic },
{ path: '/discover', label: 'Discover', icon: Compass },
{ path: '/listen', label: 'Listen', icon: Headphones },
{ path: '/saved', label: 'Saved', icon: Heart },
{ path: '/billing', label: 'Pro', icon: Crown },
]

View File

@@ -1,5 +1,4 @@
import { Heart, ExternalLink, Music, Headphones } from 'lucide-react'
import { Link } from 'react-router-dom'
import { Heart, ExternalLink, Music } from 'lucide-react'
import type { RecommendationItem } from '../lib/api'
interface Props {
@@ -61,7 +60,7 @@ export default function RecommendationCard({ recommendation, onToggleSave, savin
/>
</button>
{recommendation.bandcamp_url ? (
{recommendation.bandcamp_url && (
<a
href={recommendation.bandcamp_url}
target="_blank"
@@ -71,14 +70,6 @@ export default function RecommendationCard({ recommendation, onToggleSave, savin
>
<ExternalLink className="w-4 h-4" />
</a>
) : (
<Link
to={`/listen?q=${encodeURIComponent(`${recommendation.artist} ${recommendation.title}`)}`}
className="p-2 rounded-full bg-purple-50 text-purple-400 hover:bg-purple-100 hover:text-purple transition-colors"
title="Find on Bandcamp"
>
<Headphones className="w-4 h-4" />
</Link>
)}
</div>
</div>