refactor(ui): Verwaltung-Dropdown aufgelöst – Berichte flach, Rest in /settings
Verwaltung-Dropdown entfernt. Berichte wandert flach in die Topbar (HR+). Mitarbeiter/Sondervertretungen/Auszahlung als Gruppe "Personal" und Mandanten als Gruppe "Mandant" auf der /settings-Kachelseite. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -20,15 +20,7 @@ export const PRIMARY_NAV: NavItem[] = [
|
||||
{ path: '/time', label: 'Zeiterfassung' },
|
||||
{ path: '/absences', label: 'Abwesenheiten' },
|
||||
{ path: '/calendar', label: 'Kalender' },
|
||||
]
|
||||
|
||||
// HR/Admin-Funktionen – gebündelt im "Verwaltung"-Dropdown
|
||||
export const MANAGEMENT_NAV: NavItem[] = [
|
||||
{ path: '/reports', label: 'Berichte', roles: HR_PLUS },
|
||||
{ path: '/users', label: 'Mitarbeiter', roles: HR_ADMIN },
|
||||
{ path: '/hr/special-assignments', label: 'Sondervertretungen', roles: HR_PLUS },
|
||||
{ path: '/hr/payouts', label: 'Stunden-Auszahlung', roles: HR_ADMIN },
|
||||
{ path: '/admin/tenants', label: 'Mandanten', roles: ['SUPER_ADMIN'] },
|
||||
{ path: '/reports', label: 'Berichte', roles: HR_PLUS },
|
||||
]
|
||||
|
||||
export interface SettingsGroup {
|
||||
@@ -36,8 +28,17 @@ export interface SettingsGroup {
|
||||
items: NavItem[]
|
||||
}
|
||||
|
||||
// Einstellungs-Seite (/settings): nach Kategorien gruppierte Kacheln
|
||||
// Einstellungs-Seite (/settings): nach Kategorien gruppierte Kacheln.
|
||||
// Enthält auch die HR/Admin-Verwaltung (Personal, Mandant).
|
||||
export const SETTINGS_GROUPS: SettingsGroup[] = [
|
||||
{
|
||||
title: 'Personal',
|
||||
items: [
|
||||
{ path: '/users', label: 'Mitarbeiter', roles: HR_ADMIN, description: 'Mitarbeiter anlegen & bearbeiten' },
|
||||
{ path: '/hr/special-assignments', label: 'Sondervertretungen', roles: HR_PLUS, description: 'Sondervertretungen verwalten' },
|
||||
{ path: '/hr/payouts', label: 'Stunden-Auszahlung', roles: HR_ADMIN, description: 'Überstunden auszahlen' },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Stammdaten',
|
||||
items: [
|
||||
@@ -68,6 +69,12 @@ export const SETTINGS_GROUPS: SettingsGroup[] = [
|
||||
{ path: '/settings/smtp', label: 'SMTP', roles: ADMIN, description: 'E-Mail-Versand konfigurieren' },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Mandant',
|
||||
items: [
|
||||
{ path: '/admin/tenants', label: 'Mandanten', roles: ['SUPER_ADMIN'], description: 'Firmen & Reseller verwalten' },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'System',
|
||||
items: [
|
||||
|
||||
Reference in New Issue
Block a user