From c4958253b155ecbd11dfe1c0dd75a980e068cbe3 Mon Sep 17 00:00:00 2001 From: Dogfather Date: Wed, 4 Nov 2026 00:04:58 +0100 Subject: [PATCH] Reaction perfektioniert: Momente auf der Zeitleiste, Werkstatt-Zustaende, Reihe neben dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plan C6.8: gelbe Moment-Marken auf der Transportleiste; nach dem Beenden 'Nachbericht ansehen' im Cockpit. Werkstatt zeigt Zustand auch fuer Ton, Gaeste, Werbung. Mondsaal: 'Reihe C · 3' und 'neben dir' im Fluestern; bleibt Zusatzansicht (Entscheidung Filipe 04.11.). Durchsicht: Wer raus ist, konnte das Fluestern noch lesen (jetzt 403); Esc schloss die Werkstatt bei offener Mondsaal-Tafel nicht (dialog:modal); der Nachbericht-Link oeffnete im selben Tab und haette die Regie aus der laufenden Sendung geholt (jetzt eigener Tab). Gegenproben je rot. pruef-reaktion 674. Co-Authored-By: Claude Opus 5.5 --- server/pruef-reaktion.mjs | 6 +++ server/workspace-reaktion.js | 18 +++++-- workspace/anleitung.html | 28 +++++------ workspace/anruf-probe.html | 10 ++-- workspace/app.webmanifest | 8 ++-- workspace/assets/css/cockpit.css | 4 ++ workspace/assets/css/mondsaal.css | 1 + workspace/assets/js/cockpit.js | 55 +++++++++++++++++++++- workspace/assets/js/mondsaal.js | 10 ++-- workspace/assets/js/werkstatt.js | 27 +++++++++-- workspace/aufgaben.html | 38 +++++++-------- workspace/automation.html | 32 ++++++------- workspace/befinden.html | 34 +++++++------- workspace/bereich.html | 48 +++++++++---------- workspace/bewerben.html | 38 +++++++-------- workspace/bewerbungen.html | 36 +++++++------- workspace/buehne.html | 6 +-- workspace/calls.html | 34 +++++++------- workspace/chat.html | 48 +++++++++---------- workspace/content.html | 34 +++++++------- workspace/crew-index.html | 12 ++--- workspace/crew.webmanifest | 8 ++-- workspace/dateien.html | 34 +++++++------- workspace/dogtags.html | 38 +++++++-------- workspace/entwicklung.html | 36 +++++++------- workspace/hilfe.html | 30 ++++++------ workspace/index.html | 10 ++-- workspace/kalender.html | 34 +++++++------- workspace/leistung.html | 32 ++++++------- workspace/manager-ziele.html | 30 ++++++------ workspace/material.html | 32 ++++++------- workspace/nachbericht.html | 12 ++--- workspace/notizen.html | 28 +++++------ workspace/personen.html | 32 ++++++------- workspace/probesaal.html | 12 ++--- workspace/profil.html | 36 +++++++------- workspace/reaktion-foyer.html | 34 +++++++------- workspace/reaktion.html | 78 +++++++++++++++---------------- workspace/rechte.html | 34 +++++++------- workspace/report.html | 36 +++++++------- workspace/scouting.html | 32 ++++++------- workspace/start.html | 40 ++++++++-------- workspace/startcheck.html | 34 +++++++------- workspace/steckbrief.html | 36 +++++++------- workspace/support.html | 32 ++++++------- workspace/tafel.html | 10 ++-- workspace/talente.html | 36 +++++++------- workspace/team.html | 32 ++++++------- workspace/teamlage.html | 34 +++++++------- workspace/teilen.html | 30 ++++++------ workspace/treff-moderation.html | 32 ++++++------- workspace/treff-regeln.html | 32 ++++++------- workspace/uebersicht.html | 32 ++++++------- workspace/unsere-seiten.html | 30 ++++++------ workspace/unterstuetzen.html | 32 ++++++------- workspace/werdegang.html | 32 ++++++------- workspace/willkommen.html | 2 +- workspace/wissen.html | 34 +++++++------- 58 files changed, 876 insertions(+), 779 deletions(-) diff --git a/server/pruef-reaktion.mjs b/server/pruef-reaktion.mjs index 8e84f286..899cbdec 100644 --- a/server/pruef-reaktion.mjs +++ b/server/pruef-reaktion.mjs @@ -4433,6 +4433,12 @@ melde(""); const wegT = await roh(CREW, `/workspace/api/reaktion/fluestern/${f1.j?.id}`, { method: "DELETE", keks: k.modi }); const danach = await roh(CREW, "/workspace/api/reaktion/fluestern", { keks: k.gast }); ok(wegG.code === 403 && wegT.code === 200 && danach.j?.beitraege?.length === 0, `nur das Team entfernt (${wegG.code}/${wegT.code})`); + /* Wer raus ist, liest auch nicht mehr mit (Durchsicht 03.11.2026). */ + const rw = await roh(CREW, "/workspace/api/reaktion/massnahme", { method: "POST", keks: k.admin, rumpf: { person_id: IDS.gast2, art: "raus" } }); + const liest = await roh(CREW, "/workspace/api/reaktion/fluestern", { keks: k.gast2 }); + await roh(CREW, `/workspace/api/reaktion/massnahme/${IDS.gast2}`, { method: "DELETE", keks: k.admin }); + const wieder = await roh(CREW, "/workspace/api/reaktion/fluestern", { keks: k.gast2 }); + ok(rw.code < 300 && liest.code === 403 && wieder.code === 200, `rausgeworfen liest niemand das Flüstern, aufgehoben wieder (${rw.code}/${liest.code}/${wieder.code})`); await roh(CREW, "/workspace/api/reaktion/mondsaal/platz", { method: "DELETE", keks: k.gast }); await roh(CREW, "/workspace/api/reaktion/mondsaal/platz", { method: "DELETE", keks: k.gast2 }); } diff --git a/server/workspace-reaktion.js b/server/workspace-reaktion.js index 8c7c0043..d5123550 100644 --- a/server/workspace-reaktion.js +++ b/server/workspace-reaktion.js @@ -1106,15 +1106,27 @@ reaktionRouter.delete("/workspace/api/reaktion/mondsaal/platz", (req, res) => { reaktionRouter.get("/workspace/api/reaktion/fluestern", (req, res) => { try { - const mein = db().prepare("SELECT reihe FROM reaktion_plaetze WHERE person_id = ?").get(req.person.id); + /* WER RAUS IST, LIEST AUCH NICHT MIT (03.11.2026, Durchsicht): Schreiben + sperrte schreibGrund schon; das Lesen stand offen. */ + const raus = massnahmeFuer(req.person.id); + if (raus && raus.art === "raus") return res.status(403).json({ fehler: "aus_der_sendung" }); + const mein = db().prepare("SELECT reihe, platz FROM reaktion_plaetze WHERE person_id = ?").get(req.person.id); const team = MODERIERT.has(req.person.rolle); const reihe = team && MONDSAAL_REIHEN.includes(String(req.query.reihe || "")) ? String(req.query.reihe) : mein?.reihe; res.set("Cache-Control", "no-store"); if (!reihe) return res.json({ reihe: null, beitraege: [], team }); + /* „neben dir“: wer in derselben Reihe einen Platz weiter sitzt (Plan M1). + Verraten wird nur das Wort, nicht der Platz. */ + const plaetze = new Map(db().prepare("SELECT person_id, platz FROM reaktion_plaetze WHERE reihe = ?").all(reihe) + .map((z) => [z.person_id, z.platz])); + const da = new Set(dabeiListe().map((d) => d.id)); const beitraege = db().prepare(`SELECT id, person_id, name, text, erstellt FROM reaktion_fluestern WHERE reihe = ? AND weg_am IS NULL ORDER BY id DESC LIMIT 60`).all(reihe).reverse() - .map((b) => ({ id: b.id, name: b.name, text: b.text, erstellt: b.erstellt, ich: b.person_id === req.person.id })); - res.json({ reihe, beitraege, team }); + .map((b) => ({ id: b.id, name: b.name, text: b.text, erstellt: b.erstellt, ich: b.person_id === req.person.id, + nachbar: !!mein && mein.reihe === reihe && b.person_id !== req.person.id + && Math.abs((plaetze.get(b.person_id) ?? -9) - mein.platz) === 1 })); + const leute = [...plaetze.keys()].filter((id) => da.has(id)).length; + res.json({ reihe, beitraege, team, leute }); } catch (fehler) { console.error("[reaktion] Fluestern lesen:", fehler?.message); res.status(503).json({ fehler: "nicht_verfuegbar" }); diff --git a/workspace/anleitung.html b/workspace/anleitung.html index 45490cb4..a8b4e93d 100644 --- a/workspace/anleitung.html +++ b/workspace/anleitung.html @@ -7,17 +7,17 @@ - - - - - + + + + + - - + + @@ -289,16 +289,16 @@ Und anleitung.js braucht es doppelt: Symbol, Farbe, Name und Adresse jeder Karte kommen von dort, nicht vom Server. --> - + - - - - - - + + + + + + diff --git a/workspace/anruf-probe.html b/workspace/anruf-probe.html index 643cb8e0..b9b3d55e 100644 --- a/workspace/anruf-probe.html +++ b/workspace/anruf-probe.html @@ -16,8 +16,8 @@ verdeckt. Gefunden hat es pruef-struktur. Richtig sind `gate.css` (die Farbwerte des Hauses) und `haus.css`. --> - - + + - +