feat: add Agrarmonitor integration to dashboard and stats, and rename accounting permission group
Build and Push Multi-Platform Images / build-and-push (push) Successful in 33s

This commit is contained in:
2026-05-04 11:18:49 +02:00
parent 942c15eef8
commit ca1d371ad4
4 changed files with 35 additions and 2 deletions
+19 -1
View File
@@ -7,6 +7,7 @@ import {
MailOutlined,
EditOutlined,
ArrowRightOutlined,
GlobalOutlined,
} from '@ant-design/icons';
import type { ReactNode } from 'react';
import { useAuth } from '../auth/AuthContext';
@@ -26,6 +27,7 @@ interface DashboardTile {
accent: string;
accentSoft: string;
accentSoftDark: string;
externalUrl?: string;
}
const tiles: DashboardTile[] = [
@@ -73,6 +75,18 @@ const tiles: DashboardTile[] = [
accentSoft: '#f9f0ff',
accentSoftDark: 'rgba(114, 46, 209, 0.18)',
},
{
key: 'agrarmonitor',
path: '',
externalUrl: 'https://admin7.agrarmonitor.de/dateien/eingang#dateien',
title: 'In Agrarmonitor',
description: 'Dokumente im Agrarmonitor-Eingang anzeigen und verwalten.',
icon: <GlobalOutlined />,
permission: Permission.PROCESS_MANUALLY,
accent: '#52c41a',
accentSoft: '#f6ffed',
accentSoftDark: 'rgba(82, 196, 26, 0.16)',
},
];
export default function DashboardPage() {
@@ -158,7 +172,11 @@ export default function DashboardPage() {
<Col key={tile.key} xs={24} sm={12} lg={8} xxl={6}>
<Card
hoverable
onClick={() => navigate(tile.path)}
onClick={() =>
tile.externalUrl
? window.open(tile.externalUrl, '_blank', 'noopener,noreferrer')
: navigate(tile.path)
}
styles={{
body: {
padding: 24,