Mache die Akte zum Sammler und binde Paperless sowie E-Mail an.
Deploy Development / deploy (push) Successful in 22s
Deploy Development / deploy (push) Successful in 22s
Erfassen liegt in Dialogen, Vorgaenge erscheinen als Kacheln in der Akte, und Quellen lassen Dokumente und IMAP-Nachrichten verknuepfen. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
332be8376e
commit
b03f571cd8
16 files changed
+1040
-149
No files matched your search
@@ -151,7 +151,7 @@ function Binding({ binding, context, canEdit, isOwner, onChange }) {
|
||||
<article className="item">
|
||||
<header className="item-head">
|
||||
<div>
|
||||
<p className="eyebrow">{kindLabel(element.kind)}</p>
|
||||
<p className="eyebrow">{kindLabel(element)}</p>
|
||||
<h3>{element.title}</h3>
|
||||
</div>
|
||||
<div className="row">
|
||||
@@ -190,8 +190,14 @@ function Binding({ binding, context, canEdit, isOwner, onChange }) {
|
||||
) : null}
|
||||
{element.kind === "external_ref" && element.external ? (
|
||||
<p className="ref">
|
||||
{element.external.source === "paperless" ? "Paperless" : "Externe Adresse"} {element.external.external_id}
|
||||
<span>Nur eine Referenz, keine Kopie und kein Abruf.</span>
|
||||
{element.external.source === "paperless" ? "Paperless" : element.external.source === "imap" ? "E-Mail" : "Externe Adresse"}
|
||||
{element.external.detail?.correspondent ? ` · ${element.external.detail.correspondent}` : ""}
|
||||
{element.external.detail?.message_from ? ` · ${element.external.detail.message_from}` : ""}
|
||||
{element.external.detail?.open_url ? (
|
||||
<a href={element.external.detail.open_url} target="_blank" rel="noreferrer">In Paperless öffnen</a>
|
||||
) : (
|
||||
<span>Verknüpft, ohne die Quelle zu kopieren.</span>
|
||||
)}
|
||||
</p>
|
||||
) : null}
|
||||
{binding.rights.share && context ? (
|
||||
@@ -268,10 +274,13 @@ function DateLine({ dates }) {
|
||||
);
|
||||
}
|
||||
|
||||
function kindLabel(kind) {
|
||||
function kindLabel(element) {
|
||||
const kind = element.kind;
|
||||
if (kind === "note") return "Notiz";
|
||||
if (kind === "file") return "Datei";
|
||||
if (kind === "external_ref") return "Externe Referenz";
|
||||
if (element.external?.source === "paperless") return "Paperless";
|
||||
if (element.external?.source === "imap") return "E-Mail";
|
||||
if (kind === "external_ref") return "Referenz";
|
||||
return kind;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user