Skip to content

feat: show narrator in Library Import match result cards (#552) #692

Open
NourdotSiwar wants to merge 2 commits into
Listenarrs:canaryfrom
NourdotSiwar:552-show-narrator-in-match-results
Open

feat: show narrator in Library Import match result cards (#552) #692
NourdotSiwar wants to merge 2 commits into
Listenarrs:canaryfrom
NourdotSiwar:552-show-narrator-in-match-results

Conversation

@NourdotSiwar

Copy link
Copy Markdown

Summary

Fixes #552. The Library Import match modal showed result cards with title, author, and ASIN but never displayed the narrator, making it impossible to distinguish between multiple recordings of the same title read by different narrators.

Changes

Added

  • Narrator line (Narrated by …) on each result card in LibraryImportSearchModal.vue, rendered via the existing extractNarrators() helper
  • Unit tests for narrator display and protected image routing in LibraryImportSearchModal.spec.ts

Testing

  • cd fe && npm run type-check — no errors
  • cd fe && npm run test:unit — all relevant tests pass
  • Manual: searched in the Library Import match modal; result cards now show "Narrated by [name]" beneath the author line

Notes

No backend changes required — narrator data is already returned by the /search endpoint. Pattern mirrors the existing narrator rendering in AddNewView.vue.

NourdotSiwar added 2 commits June 19, 2026 21:33
Import extractNarrators helper and render narrator line on each result
card in the Library Import match modal. Uses conditional span with
result-narrator CSS class matching the existing meta style.

Fixes Listenarrs#552
…tSearchModal

Adds two unit tests:
- Narrator renders when result includes narrator data
- Result thumbnails route through the protected image helper
@NourdotSiwar NourdotSiwar requested review from a team and Copilot June 20, 2026 04:44
@NourdotSiwar NourdotSiwar changed the title 552 show narrator in match results feat: show narrator in Library Import match result cards (#552) Jun 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #552 by enhancing the Library Import “Find Match” modal so each search result card also displays narrator information, making it easier to distinguish between multiple recordings of the same title.

Changes:

  • Added a “Narrated by …” line to each result card in LibraryImportSearchModal.vue using the existing extractNarrators() helper.
  • Added a unit test asserting narrator display in LibraryImportSearchModal.spec.ts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
fe/src/components/domain/audiobook/LibraryImportSearchModal.vue Renders narrator text on match result cards using extractNarrators(result) and adds scoped styling for the narrator line.
fe/src/__tests__/LibraryImportSearchModal.spec.ts Adds a unit test to verify narrator text is shown when narrator data is present in results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When matching existing audiobooks, search results should show the narrator

2 participants