@@ -354,8 +356,8 @@ function AutoImportResultCard({
status: ImportAutoImportStatusPayload | undefined;
onApprove: () => void;
onReject: () => void;
- onToggle: () => void;
- }) {
+ onToggle: () => void;
+}) {
const confidencePercent = Math.round((result.confidence || 0) * 100);
const confidenceClass = getConfidenceClass(confidencePercent);
const statusMeta = getAutoImportStatusMeta(result.status);
@@ -412,11 +414,17 @@ function AutoImportResultCard({
)}
-
{result.album_name || result.folder_name}
-
{result.artist_name || 'Unknown Artist'}
+
+ {result.album_name || result.folder_name}
+
+
+ {result.artist_name || 'Unknown Artist'}
+
{matchSummary}
- {methodLabel ? {methodLabel} : null}
+ {methodLabel ? (
+ {methodLabel}
+ ) : null}
{timeAgo ? {timeAgo} : null}
{result.error_message ? (
@@ -488,13 +496,12 @@ function AutoImportResultCard({
.filter(Boolean)
.join(' ');
return (
-
+
{track.name}
{track.file}
-
+
{track.confidence}%
@@ -573,7 +580,9 @@ function getAutoImportFilterCount(
}
}
-function getAutoImportFilterTone(filter: ImportAutoFilter): 'neutral' | 'warning' | 'success' | 'danger' {
+function getAutoImportFilterTone(
+ filter: ImportAutoFilter,
+): 'neutral' | 'warning' | 'success' | 'danger' {
switch (filter) {
case 'pending':
return 'warning';