Runde 8: ruhige Freistell-Kante, KI-Zusammenfassung nur mit Einwilligung, Nachschauen im Foyer, Handy-Schwelle 20 B/s

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-05 15:46:33 +01:00
co-authored by Claude Opus 5.5
parent 11f16ac0ca
commit 49183366ef
9 changed files with 138 additions and 22 deletions
+33
View File
@@ -0,0 +1,33 @@
/* =====================================================================
NACHSCHAUEN IM FOYER (05.11.2026, Perfektionsplan Runde 8)
„Zuletzt“ im Foyer öffnet den Nachbericht – und der hat seit heute
„Nachschauen“. Diese Datei sagt es an der Karte: „▶ Nachschauen“, und
„mit Chat von damals“, wenn die Regie ihn aufgehoben hat. Gelesen wird
die Liste, die der Nachbericht selbst benutzt.
===================================================================== */
(() => {
'use strict';
let liste = null;
const el = (tag, cls, text) => { const e = document.createElement(tag); if (cls) e.className = cls; if (text != null) e.textContent = text; return e; };
async function laden() {
try {
const a = await fetch('/workspace/api/reaktion/nachschauen', { credentials: 'same-origin', cache: 'no-store' });
const j = await a.json().catch(() => null);
liste = a.ok && Array.isArray(j?.liste) ? j.liste : [];
} catch { liste = []; }
zeichnen();
}
function zeichnen() {
if (!liste) return;
for (const s of liste) {
const li = document.querySelector(`#zuletzt-liste [data-sendung="${CSS.escape(String(s.id))}"]`);
if (!li || li.querySelector('.fy-ns')) continue;
const z = el('span', 'fy-ns', s.chat ? '▶ Nachschauen · mit Chat von damals' : '▶ Nachschauen');
(li.querySelector('a') || li).append(z);
}
}
const ziel = document.getElementById('zuletzt-liste');
if (ziel) new MutationObserver(zeichnen).observe(ziel, { childList: true });
laden();
})();