- Add frontend upload page with file selection, drag-and-drop, and preview - Add preview endpoint (POST /api/community/metering-data/preview/xlsx) - Validate FEED_IN only for PRODUCER, CONSUMPTION only for CONSUMER metering points - Optimize deduplication with bulk query (fix N+1 problem) - Eliminate duplicate DB query in validateRecords - Add 4 new tests for data type validation - Add navigation entry for admin users
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
export interface NavItem {
|
|
label: string;
|
|
path: string;
|
|
roles: string[];
|
|
}
|
|
|
|
export const NAV_ITEMS: NavItem[] = [
|
|
{label: 'Übersicht', path: '/dashboard', roles: ['ADMIN', 'MEMBER']},
|
|
{label: 'Zählpunkte', path: '/dashboard/metering-points', roles: ['ADMIN', 'MEMBER']},
|
|
{label: 'Community beitreten', path: '/dashboard/join-community', roles: ['MEMBER']},
|
|
{label: 'Meine Mitgliedschaften', path: '/dashboard/my-memberships', roles: ['MEMBER']},
|
|
{label: 'Verbrauch', path: '/dashboard/consumption', roles: ['MEMBER']},
|
|
{label: 'Mitgliedschaften', path: '/dashboard/admin-memberships', roles: ['ADMIN']},
|
|
{label: 'Mein Profil', path: '/dashboard/profile', roles: ['ADMIN', 'MEMBER']},
|
|
{label: 'Benutzerverwaltung', path: '/dashboard/approvals', roles: ['ADMIN']},
|
|
{label: 'Energiegemeinschaften', path: '/dashboard/energy-communities', roles: ['ADMIN']},
|
|
{label: 'Tarife verwalten', path: '/dashboard/tariffs', roles: ['ADMIN']},
|
|
{label: 'Messdaten-Upload', path: '/dashboard/upload-metering-data', roles: ['ADMIN']},
|
|
{label: 'Meine Tarife', path: '/dashboard/my-tariffs', roles: ['MEMBER']}
|
|
];
|