From c09fc6c7bc8eb7714a8407d164614dabdbdaab11 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Wed, 29 Apr 2026 13:17:38 +0200 Subject: [PATCH] Add 'Alle zur Unit' button + fix topic display Two buttons on topic cards: - "Anzeigen": Shows words in search results (for review) - "Alle zur Unit": Adds all topic words to the unit builder directly Both buttons load from Kaikki and respect selected language. Co-Authored-By: Claude Opus 4.6 (1M context) --- studio-v2/app/vocabulary/page.tsx | 58 +++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/studio-v2/app/vocabulary/page.tsx b/studio-v2/app/vocabulary/page.tsx index 5bf1e55..eec7366 100644 --- a/studio-v2/app/vocabulary/page.tsx +++ b/studio-v2/app/vocabulary/page.tsx @@ -238,25 +238,47 @@ export default function VocabularyPage() { 💡 {topic.topic} ({topic.word_count}) - + setResults(topicWords) + setIsSearching(false) + }} + className={`text-xs px-3 py-1 rounded-lg ${isDark ? 'bg-white/10 text-white/60 hover:bg-white/20' : 'bg-slate-100 text-slate-600 hover:bg-slate-200'}`} + > + Anzeigen + + +
{(topic.display_words || topic.words).slice(0, 15).map((w: string, i: number) => (