From 0678f5caafc491cc2324868a6bef3aa992e46cc8 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 13 Jul 2026 17:35:27 +0000 Subject: [PATCH] Show module code instead of name in the sidebar when set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modules already have an optional "code" field (e.g. "M12", labeled "Kürzel" in German). The sidebar module list showed the full name regardless; it now prefers the code when present, falling back to the name otherwise. The full name stays available via a tooltip and is still used for the context menu label and aria-labels. --- src/components/layout/app-sidebar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/layout/app-sidebar.tsx b/src/components/layout/app-sidebar.tsx index 51b2ee5..23b5a0b 100644 --- a/src/components/layout/app-sidebar.tsx +++ b/src/components/layout/app-sidebar.tsx @@ -132,7 +132,9 @@ function SidebarModule({ )} /> - {mod.name} + + {mod.code || mod.name} +