feat: HA-Entitaeten fuer Push-Erinnerungen und Kanban; neues Feature Sidebar-Sichtbarkeit pro Nutzer V2

This commit is contained in:
2026-07-10 20:49:05 +02:00
parent d372bed860
commit bdc451fb8e

View File

@@ -157,10 +157,11 @@ export const TOOLS = [
// Neues Tool: { id:'...', Icon:..., label:'...', navLabel:'...', group:'...', component:... },
];
export function getGroupedTools(isAdmin = false) {
export function getGroupedTools(isAdmin = false, hiddenTools = []) {
const groups = {};
for (const t of TOOLS) {
if (t.adminOnly && !isAdmin) continue;
if (hiddenTools.includes(t.id)) continue;
const g = t.group || 'Allgemein';
if (!groups[g]) groups[g] = [];
groups[g].push(t);