Abstimmung Ja/Nein statt Links/Rechts

Modus-Werte yes/no statt left/right in DB, API und Statistik; Knöpfe
"Ja"/"Nein". Bestehende Stimmen müssen per SQL migriert werden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
irrlicht
2026-09-29 18:14:57 +02:00
co-authored by Claude Opus 5.5
parent 3d2447fe35
commit b6cf8c7fa0
8 changed files with 35 additions and 35 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ export function Votes({ pid }: { pid: number }) {
let counts = "– / –";
if (vote.isError) counts = errMsg(vote.error, "Fehler");
else if (tally.isError) counts = errMsg(tally.error, "Fehler");
else if (t) counts = `${t.left} / ${t.right}`;
else if (t) counts = `${t.yes} / ${t.no}`;
const button = (mode: VoteMode, label: string) => (
<button
@@ -61,9 +61,9 @@ export function Votes({ pid }: { pid: number }) {
return (
<div className="row">
{button("left", "Links")}
{button("yes", "Ja")}
<span className="muted">{counts}</span>
{button("right", "Rechts")}
{button("no", "Nein")}
</div>
);
}