fix(audit): P2 frontend any→concrete types (181→61), heroicons→lucide-react, missing type exports, toast API, Select options, TaskStatus types; P2-9 hooks.py type annotations

This commit is contained in:
Agent Zero
2026-08-17 22:24:24 +02:00
parent 40fd633917
commit 45ebbee26f
52 changed files with 404 additions and 302 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import { asError } from '@/utils/errorTypes';
import React, { useState, useMemo } from 'react';
// TODO: P2-T19 — Replace hardcoded PermissionLevelBadge/PrincipalTypeBadge with i18n
import { useTranslation } from 'react-i18next';
@@ -140,8 +141,8 @@ function FreigabenTab() {
toast.success('Berechtigung gelöscht');
setConfirmDelete(null);
refetchPerms();
} catch (err: any) {
toast.error(err.message || 'Fehler beim Löschen');
} catch (err: unknown) { const errObj = asError(err);
toast.error(errObj.message || 'Fehler beim Löschen');
} finally {
setDeleting(false);
}