Let suggestion filtering narrow to a specific archetype or tribe
Filtering by category alone wasn't granular enough: a deck usually matches several archetypes and tribes at once, so "show me Archetype suggestions" still returns most of the list. SynergyReason now carries the matched thing itself (`subject`) alongside the human-readable `detail`, populated at all four match sites. The modal adds a second chip row listing every subject present in the current suggestions, sorted by how many cards each explains and labelled with that count, so the most useful narrowing is obvious before clicking.
This commit is contained in:
@@ -70,6 +70,10 @@ export interface LibraryImportResult {
|
||||
|
||||
export interface SynergyReason {
|
||||
category: string; // "Tribal" | "Mechanic" | "Archetype" | "Mana base"
|
||||
/** The specific thing matched — "Dragon", "Flying", "Landfall". Separate from
|
||||
* `detail` so the UI can filter on it: a deck usually has several archetypes
|
||||
* and you want one of them, not all. */
|
||||
subject: string;
|
||||
detail: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user