package templates import ( "fmt" "bookhoard/internal/services" ) // UnlinkedMatchCards renders the match candidates for one device file's // "find matches" reveal — the /unlinked-books/matches partial response. // Cards are clicked through the delegated data-action handler (rendering // ownership: templ renders, JS only swaps and handles the click). templ UnlinkedMatchCards(progressId string, matches []services.BookMatch) { if len(matches) == 0 {
No matches found. Try manual linking.
} else { for _, match := range matches {by { match.Author }
}Resolve books that couldn't be automatically matched between devices
There are no unlinked books that need manual resolution.
Device: { book.DeviceName } ({ book.DeviceType })
@Icon("folder", "h-3.5 w-3.5")
{ book.FilePath }
{ book.SHA256 }
Click "Find Potential Matches" to search
Search for books to link
1.0 = manual override (highest confidence)