Mache die Inhaltsliste zur einen Arbeitsflaeche mit Vorschauzeilen, damit Pfad, Herkunft und eigene Reihenfolge im Alltag erhalten bleiben.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
52bda91aad
commit
3465ed57f6
16 files changed
+1375
-314
No files matched your search
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user