mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-28 21:19:42 +00:00
1.5 KiB
1.5 KiB
Match Default Behavior Update
Problem Description
Previously, selecting a match in the Edit Modal's Match tab would open a detailed review screen allowing the user to cherry-pick which specific metadata fields to update. When users know a match is correct, they usually want to apply everything quickly, which took extra clicks.
Implementation Details
Updated Components
-
BookMatchCard.vue:- The card itself now acts as an immediate trigger to apply the match.
- The
selectevent emitted when clicking the card itself represents this "Direct Apply" action. - Added a new
Review & Editbutton that appears when hovering over the card. This button emits a newreviewevent to preserve the old cherry-picking functionality.
-
Match.vue(Edit Modal Tab):- Contains new mapping logic
applyMatchtriggered by the@selectevent on the card. - Extracts parsing logic into
parseMatchDatafor shared mapping of properties like series, tags, and narrators safely. applyMatchforcefully sets allselectedMatchUsagecheckbox fields totrueand triggerssubmitMatchUpdate.submitMatchUpdatenow takes an optional boolean flagcloseOnSuccesswhich resolves to closing the modal (emitting@closeto the parentEditModal.vue) entirely instead of redirecting the user back to the 'details' tab.
- Contains new mapping logic
Future Considerations
- Allow configuring the default apply behavior in the settings, giving users the choice to swap the direct click action to "Review & Edit" if they prefer being cautious.