Mache die Inhaltsliste zur einen Arbeitsflaeche mit Vorschauzeilen, damit Pfad, Herkunft und eigene Reihenfolge im Alltag erhalten bleiben.
Deploy Development / deploy (push) Successful in 23s
Test Suite / pytest-backend (push) Successful in 47s
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 10:25:04 +02:00
1 parent 52bda91aad
commit 3465ed57f6
16 files changed
+1375 -314

No files matched your search

+3 -10
View File
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { api } from "../api.js";
import { ErrorNote, RecordLink } from "./widgets.jsx";
import { formatDate } from "./content.jsx";
import { formatDate, matterOpenHref } from "./content.jsx";
export function Overview() {
const [tasks, setTasks] = useState(null);
@@ -118,18 +118,11 @@ export function Overview() {
{recent?.length ? (
<ul className="work">
{recent.map((item) => {
const context = item.contexts?.find((entry) => entry.kind === "case") || item.contexts?.[0];
const params = new URLSearchParams();
if (context && context.kind !== "direct") {
params.set("context_kind", context.kind);
params.set("context_id", context.id);
}
const suffix = params.toString() ? `?${params}` : "";
return (
<li key={item.id}>
<div>
<strong><Link to={`/matters/${item.id}${suffix}`}>{item.title}</Link></strong>
<span>{item.status === "open" ? "Offen" : "Geschlossen"}</span>
<strong><Link to={matterOpenHref(item)}>{item.title}</Link></strong>
<span>{item.kind_label || "Vorgang"}{item.parent_title ? ` in ${item.parent_title}` : ""} · {item.status === "open" ? "Offen" : "Geschlossen"}</span>
</div>
</li>
);