Zeige Eingang und Ausgang als gefuellte Dreiecke vor dem Typ und tausche die Notiz gegen die gelieferte Sprechblase.
Deploy Development / deploy (push) Successful in 29s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-17 19:34:28 +02:00
1 parent f6f8d5980c
commit f0c8981e22
10 files changed
+64 -35

No files matched your search

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#9FE1CB" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Eingang</title><path d="M17 7 7 17"/><path d="M17 17H7V7"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#9FE1CB" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Eingang</title><g transform="rotate(90 12 12)" fill="#9FE1CB" stroke="none"><path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/></g></svg>

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 366 B

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#9FE1CB" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Ausgang</title><path d="M7 7h10v10"/><path d="M7 17 17 7"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#9FE1CB" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Ausgang</title><g transform="rotate(-90 12 12)" fill="#9FE1CB" stroke="none"><path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/></g></svg>

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 367 B

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#9FE1CB" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Notiz</title><path d="M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z"/><path d="M15 3v4a2 2 0 0 0 2 2h4"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#9FE1CB" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Gesprächs- / Gedankennotiz</title><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/><g transform="translate(6 6) scale(.5)" stroke-width="3.2"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></g></svg>

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 413 B

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#085041" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Eingang</title><path d="M17 7 7 17"/><path d="M17 17H7V7"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#085041" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Eingang</title><g transform="rotate(90 12 12)" fill="#085041" stroke="none"><path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/></g></svg>

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 366 B

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#085041" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Ausgang</title><path d="M7 7h10v10"/><path d="M7 17 17 7"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#085041" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Kommunikation: Ausgang</title><g transform="rotate(-90 12 12)" fill="#085041" stroke="none"><path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/></g></svg>

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 367 B

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#085041" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Notiz</title><path d="M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z"/><path d="M15 3v4a2 2 0 0 0 2 2h4"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#085041" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><title>Gesprächs- / Gedankennotiz</title><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/><g transform="translate(6 6) scale(.5)" stroke-width="3.2"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></g></svg>

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 413 B

+15
View File
@@ -1,3 +1,18 @@
/** Short content hashes so a replaced symbol is loaded without clearing the browser cache. */
const SYMBOL_REV = {
"light/note": "5A420BDCA465",
"dark/note": "A4CB08EFE0CE",
"light/communication-in": "E0EA4BDC8906",
"dark/communication-in": "96DD8CF1D6B0",
"light/communication-out": "700E710A12CB",
"dark/communication-out": "761536F9818E",
};
export function symbolUrl(tone, name) {
const rev = SYMBOL_REV[`${tone}/${name}`] || "symbols-1-3";
return `/ui/content-symbols-v1/${tone}/${name}.svg?v=${rev}`;
}
/** UI classification only. The server's element kind and access rules are unchanged. */
export function contentSymbol(element = {}) {
if (element.kind === "note") return "note";
+9 -5
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from "react";
import { documentToText, downloadMailPart, fetchFile, fetchPaperless, markDirty, textToDocument, api } from "../api.js";
import { ErrorNote } from "./widgets.jsx";
import { dateCaption, DirectionChoice, DirectionMark, formatDate, mailFacts, MarkdownEditor, sourceLabel } from "./content.jsx";
import { dateCaption, DirectionChoice, DirectionColumn, directionWord, formatDate, mailFacts, MarkdownEditor, sourceLabel } from "./content.jsx";
import { NavIcon } from "./icons.jsx";
import workerSrc from "pdfjs-dist/build/pdf.worker.min.mjs?url";
@@ -53,9 +53,10 @@ function Correspondence({ element, onOpenRelated }) {
disabled={item.current || !onOpenRelated}
onClick={() => onOpenRelated?.(item.id)}
>
<DirectionColumn direction={item.direction} />
<span>{formatDate(item.document_on)}</span>
<strong>{item.current ? `${item.title} · diese Unterlage` : item.title}</strong>
<DirectionMark direction={item.direction} />
{directionWord(item.direction) ? <span>{directionWord(item.direction)}</span> : <span />}
</button>
))}
</section>
@@ -367,10 +368,13 @@ export function ReadingPane({ binding, context, backLabel, onClose, onReload, ca
<span aria-hidden="true">‹</span> {backLabel || "Inhalte"}
</button>
<div className="reader-pane__heading">
<h2>{element.title}</h2>
<div className="reader-title">
<DirectionColumn direction={shownDirection} />
<h2>{element.title}</h2>
</div>
<p className="reader-facts">
<span>{formatDate(element.dates?.document_on)} · {sourceLabel(element)}</span>
<DirectionMark direction={shownDirection} />
{directionWord(shownDirection) ? <span>{directionWord(shownDirection)}</span> : null}
{mailFacts(element) ? <span>{mailFacts(element)}</span> : null}
{dateCaption(element, shownDirection) ? <span>{dateCaption(element, shownDirection)}</span> : null}
</p>
@@ -391,7 +395,7 @@ export function ReadingPane({ binding, context, backLabel, onClose, onReload, ca
<Correspondence element={element} onOpenRelated={onOpenRelated} />
{isMail ? (
<article className="mail-letter">
<p><DirectionMark direction={shownDirection} /></p>
<p className="mail-letter__way"><DirectionColumn direction={shownDirection} />{directionWord(shownDirection) ? <span>{directionWord(shownDirection)}</span> : null}</p>
<p><span>Von</span> {mailDetail.message_from || "Ohne Absender"}</p>
<p><span>An</span> {mailDetail.message_to || "Ohne Empfänger"}</p>
{mailDetail.message_cc ? <p><span>Kopie</span> {mailDetail.message_cc}</p> : null}
+22 -17
View File
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from "react";
import { Link } from "react-router-dom";
import { api, fetchFile, fetchPaperless } from "../api.js";
import { contentSourceSymbol, contentSymbol } from "../content-symbol.mjs";
import { contentSourceSymbol, contentSymbol, symbolUrl } from "../content-symbol.mjs";
import { MarkdownView } from "../markdown.jsx";
import { IconButton, NavIcon } from "./icons.jsx";
import { Modal } from "./Modal.jsx";
@@ -276,15 +276,24 @@ export function elementFacts(element, communication) {
return [sourceLabel(element), way, mailFacts(element), dateCaption(element, direction)].filter(Boolean).join(" · ");
}
export function DirectionMark({ direction }) {
if (direction !== "in" && direction !== "out") return null;
export function directionWord(direction) {
if (direction === "out") return "Ausgang";
if (direction === "in") return "Eingang";
return "";
}
export function DirectionColumn({ direction }) {
const known = direction === "in" || direction === "out";
const name = direction === "out" ? "communication-out" : "communication-in";
const label = direction === "out" ? "Ausgang" : "Eingang";
const label = directionWord(direction);
return (
<span className="direction-mark">
<img className="direction-mark__icon direction-mark__icon--light" src={`/ui/content-symbols-v1/light/${name}.svg`} width="16" height="16" alt="" />
<img className="direction-mark__icon direction-mark__icon--dark" src={`/ui/content-symbols-v1/dark/${name}.svg`} width="16" height="16" alt="" />
<span>{label}</span>
<span className="direction-column" role={known ? "img" : undefined} aria-label={known ? label : undefined} aria-hidden={known ? undefined : true}>
{known ? (
<>
<img className="direction-column__icon direction-column__icon--light" src={symbolUrl("light", name)} width="28" height="28" alt="" />
<img className="direction-column__icon direction-column__icon--dark" src={symbolUrl("dark", name)} width="28" height="28" alt="" />
</>
) : null}
</span>
);
}
@@ -316,12 +325,6 @@ export function MarkdownEditor({ value, onChange, disabled, rows = 12 }) {
);
}
function directionMark(direction) {
if (direction === "out") return "Ausgang";
if (direction === "in") return "Eingang";
return "";
}
function blurb(element) {
const raw = element.summary || element.excerpt || "";
return raw.replace(/^#{1,3}\s+/gm, "").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/[*`]/g, "").replace(/\s+/g, " ").trim();
@@ -349,9 +352,10 @@ function BezugLink({ item, label, source, onOpen, itemHref, reply = false }) {
const className = reply ? "bezug__link bezug__link--reply" : "bezug__link";
const body = (
<>
<DirectionColumn direction={item.direction} />
<span>{label}</span>
<strong>{formatDate(item.document_on)} · {item.title}</strong>
<DirectionMark direction={item.direction} />
{directionWord(item.direction) ? <span>{directionWord(item.direction)}</span> : null}
</>
);
if (found && onOpen) {
@@ -369,7 +373,7 @@ function TypeGlyph({ name, tone, size = 28 }) {
return (
<img
className={tone === "dark" ? "type-glyph type-glyph--dark" : "type-glyph type-glyph--light"}
src={`/ui/content-symbols-v1/${tone}/${name}.svg`}
src={symbolUrl(tone, name)}
width={size}
height={size}
alt=""
@@ -973,6 +977,7 @@ export function ContentBoard({
return (
<li key={binding.id} data-binding={binding.id} className={`preview-row${linked ? " preview-row--linked" : ""}${draggingId === binding.id ? " is-dragging" : ""}${selectedId === binding.id ? " is-selected" : ""}`}>
{indicator?.sectionId === section.id && indicator?.kind !== "chapter" && indicator.index === index ? <div className="insert-line" /> : null}
<DirectionColumn direction={binding.communication?.direction} />
{canSort && custom ? (
<button
type="button"
@@ -1012,7 +1017,7 @@ export function ContentBoard({
</span>
) : null}
{formatDate(fachDate(element))} · {sourceLabel(element)}
<DirectionMark direction={binding.communication?.direction} />
{directionWord(binding.communication?.direction) ? <span>{directionWord(binding.communication?.direction)}</span> : null}
{mailFacts(element) ? <span>{mailFacts(element)}</span> : null}
{dateCaption(element, binding.communication?.direction) ? <span>{dateCaption(element, binding.communication?.direction)}</span> : null}
</span>
+12 -7
View File
@@ -467,12 +467,15 @@ label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(-
.icon-button--compact { width: 32px; min-width: 32px; height: 32px; }
.icon-button--compact svg { width: 16px; height: 16px; }
.icon-button--compact:hover, .icon-button--compact:focus-visible { background: var(--surface2); color: var(--text1); }
.direction-mark { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.direction-mark__icon { display: block; }
.direction-mark__icon--dark { display: none; }
.direction-column { flex: 0 0 36px; width: 36px; height: 40px; display: grid; place-items: center; }
.direction-column__icon { width: 28px; height: 28px; display: block; }
.direction-column__icon--dark { display: none; }
@media (prefers-color-scheme: dark) {
.direction-mark__icon--light { display: none; }
.direction-mark__icon--dark { display: block; }
.direction-column__icon--light { display: none; }
.direction-column__icon--dark { display: block; }
}
@media (max-width: 720px) {
.direction-column__icon { width: 24px; height: 24px; }
}
.markdown-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.markdown-editor__preview { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 8rem; overflow: auto; }
@@ -754,7 +757,7 @@ p.bezug__link { cursor: default; }
.schriftwechsel > p { margin: 0 0 8px; color: var(--text3); font-size: 12px; line-height: 1.4; }
.schriftwechsel__item {
display: grid;
grid-template-columns: 6.4rem minmax(0, 1fr) auto;
grid-template-columns: 36px 6.4rem minmax(0, 1fr) auto;
gap: 8px;
align-items: baseline;
justify-content: start;
@@ -1096,7 +1099,9 @@ p.bezug__link { cursor: default; }
.reader-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; width: 100%; }
.reader-pane__bar { padding: 16px 16px 8px; align-items: center; }
.reader-pane__heading { flex: 1 1 12rem; min-width: 0; }
.reader-pane__heading h2 { font-size: 22px; overflow-wrap: anywhere; }
.reader-title { display: flex; align-items: center; gap: 8px; }
.reader-pane__heading h2 { font-size: 22px; overflow-wrap: anywhere; margin: 0; }
.mail-letter__way { display: flex; align-items: center; gap: 8px; }
.reader-pane__heading p, .reader-back { color: var(--text2); font-size: 14px; }
.reader-back { background: transparent; color: var(--brand); padding-inline: 0; }
.reader-pane__tools { display: flex; gap: 4px; }