adding stuff
Recommender Build and Deploy (internal) / Build Recommender Image (push) Successful in 4m6s
Recommender Build and Deploy (internal) / Deploy Recommender (internal) (push) Successful in 12s

This commit is contained in:
2026-03-31 17:21:50 -03:00
parent be2d8d70cb
commit bb8a5da45e
10 changed files with 106 additions and 9 deletions
+9 -1
View File
@@ -6,6 +6,7 @@ interface SidebarProps {
selectedId: string | null;
onSelect: (id: string) => void;
onNewClick: () => void;
onDelete?: (id: string) => void;
}
function statusIcon(status: RecommendationSummary['status']): string {
@@ -26,7 +27,7 @@ function statusClass(status: RecommendationSummary['status']): string {
}
}
export function Sidebar({ list, selectedId, onSelect, onNewClick }: SidebarProps) {
export function Sidebar({ list, selectedId, onSelect, onNewClick, onDelete }: SidebarProps) {
return (
<aside class="sidebar">
<div class="sidebar-header">
@@ -56,6 +57,13 @@ export function Sidebar({ list, selectedId, onSelect, onNewClick }: SidebarProps
<span class={`sidebar-type-badge sidebar-type-${item.media_type}`}>
{item.media_type === 'movie' ? 'Film' : 'TV'}
</span>
{onDelete && (
<button
class="sidebar-item-delete"
onClick={(e) => { e.stopPropagation(); onDelete(item.id); }}
title="Delete"
>×</button>
)}
</li>
))}
</ul>