From 6f43224fdae2e03bc63b096882a08fb3ec4b14db Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Wed, 29 Apr 2026 12:08:13 +0200 Subject: [PATCH] Simplify Sidebar: Remove Woerterbuch, rename to "Lernmodule" Sidebar: Only "Lernmodule" link (no separate Woerterbuch). /learn page: "Neue Lernunit erstellen" button links to /vocabulary for the word selection flow. Teacher stays in one flow. Co-Authored-By: Claude Opus 4.6 (1M context) --- studio-v2/app/learn/page.tsx | 20 ++++++++++++++++++++ studio-v2/components/Sidebar.tsx | 7 +------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/studio-v2/app/learn/page.tsx b/studio-v2/app/learn/page.tsx index 90e80b5..7a9f671 100644 --- a/studio-v2/app/learn/page.tsx +++ b/studio-v2/app/learn/page.tsx @@ -101,6 +101,7 @@ export default function LearnPage() { const [units, setUnits] = useState([]) const [isLoading, setIsLoading] = useState(true) const [error, setError] = useState(null) + const [showCreate, setShowCreate] = useState(false) const glassCard = isDark ? 'bg-white/10 backdrop-blur-xl border border-white/10' @@ -209,6 +210,25 @@ export default function LearnPage() { )} + {/* Create new unit button */} + {!isLoading && ( +
+ + + + + Neue Lernunit erstellen + +
+ )} + {!isLoading && units.length > 0 && (
{units.map(unit => ( diff --git a/studio-v2/components/Sidebar.tsx b/studio-v2/components/Sidebar.tsx index 7285910..ae48c87 100644 --- a/studio-v2/components/Sidebar.tsx +++ b/studio-v2/components/Sidebar.tsx @@ -61,16 +61,11 @@ export function Sidebar({ selectedTab = 'dashboard', onTabChange }: SidebarProps ), showMessagesBadge: true }, - { id: 'woerterbuch', labelKey: 'nav_woerterbuch', href: '/vocabulary', icon: ( + { id: 'lernmodule', labelKey: 'Lernmodule', href: '/learn', icon: ( )}, - { id: 'lernmodule', labelKey: 'nav_lernmodule', href: '/learn', icon: ( - - - - )}, { id: 'eltern', labelKey: 'nav_eltern', href: '/parent', icon: (