Move the hack to fetch completed cards to the insight command logic

We need to rework this as part of the filters revamp. "indexed_by" being
a mix of filters keeps biting us.
This commit is contained in:
Jorge Manrubia
2025-07-24 15:52:57 +02:00
parent fc26329daf
commit 5ad2d09eae
13 changed files with 131645 additions and 41 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class Command::Parser
when "/do"
Command::Do.new(card_ids: cards.ids)
when "/insight"
Command::GetInsight.new(query: combined_arguments, card_ids: cards.ids)
Command::GetInsight.new(query: combined_arguments, card_ids: cards.ids, params: filter.as_params)
when "/add"
Command::AddCard.new(card_title: combined_arguments, collection_id: guess_collection&.id)
when "/search"