Ordne Akten und Vorgaenge nach fachlichem Datum oder eigener Reihenfolge und mache den Inhalt zur Arbeitsansicht.
Deploy Development / deploy (push) Successful in 22s
Test Suite / pytest-backend (push) Successful in 51s
Test Suite / smoke-dev (push) Successful in 1s
Test Suite / frontend-build (push) Successful in 6s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-17 09:36:48 +02:00
1 parent 27925093e2
commit 52bda91aad
22 files changed
+2079 -258

No files matched your search

+11 -10
View File
@@ -2,24 +2,22 @@ import { useContext, useState } from "react";
import { NavLink, Outlet, useNavigate } from "react-router-dom";
import { SessionContext } from "../session.js";
const NAV = [
const WORK = [
{ to: "/", end: true, label: "Übersicht", icon: "home" },
{ to: "/cases", label: "Akten", icon: "folder" },
{ to: "/matters", label: "Vorgänge", icon: "layers" },
{ to: "/rooms", label: "Datenräume", icon: "rooms" },
{ to: "/sources", label: "Quellen", icon: "sources" },
{ to: "/cases", label: "Akten", icon: "folder" },
{ to: "/work", label: "Aufgaben", icon: "check" },
];
function navItems(session) {
if (!session?.account?.is_superadmin) return NAV;
return [...NAV, { to: "/users", label: "Nutzer", icon: "users" }];
}
const ADMIN = [
{ to: "/settings", label: "Verwaltung", icon: "rooms" },
];
export function Shell() {
const { session, logout } = useContext(SessionContext);
const navigate = useNavigate();
const [query, setQuery] = useState("");
const items = navItems(session);
const items = [...WORK, ...ADMIN];
function onSearch(event) {
event.preventDefault();
@@ -73,7 +71,7 @@ export function Shell() {
<Outlet />
</div>
<nav className="bottom-nav" aria-label="Hauptnavigation">
{items.map((item) => (
{[...WORK, ADMIN[0]].map((item) => (
<NavLink key={item.to} to={item.to} end={item.end} className={({ isActive }) => `nav-item${isActive ? " active" : ""}`}>
<NavIcon name={item.icon} />
<span>{item.label}</span>
@@ -102,6 +100,9 @@ function NavIcon({ name }) {
if (name === "users") {
return <svg {...common}><circle cx="12" cy="8" r="3" /><path d="M5 19c1.2-2.4 3.4-3.5 7-3.5s5.8 1.1 7 3.5" /></svg>;
}
if (name === "check") {
return <svg {...common}><path d="M8 12h8" /><path d="M8 7h8" /><path d="M8 17h5" /><path d="M4 7.5 5.2 9 8 6" /></svg>;
}
if (name === "logout") {
return <svg {...common}><path d="M9 6H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h4" /><path d="M14 16l4-4-4-4" /><path d="M18 12H9" /></svg>;
}