Merge pull request #25 from horizon-rust/feat/staff-inbox-wording

Staff: "Needs your decision"; the moderation counts say they are counts only
This commit is contained in:
Ludovic Marie authored and GitHub committed 2026-10-30 14:48:55 +01:00
commit 6e2b339f23
3 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ export function inboxHtml({ apps, cards = null, decisions = null, me, names = []
{ id: "veto", title: "In your veto window", short: "in your veto window", items: apps.filter((a) => a.owner && a.status === "veto-window")
.map((a) => item(`${app(a)} passed${a.tally ? `, ${a.tally.for} to ${a.tally.against}` : ""} · goes through in ${left(a.veto.until, now)}`, "Approve it now, veto it, or let it go through.",
owner(a, "approve", "Approve now", true) + owner(a, "veto", "Veto") + link(goTo(a), "Read"))) },
{ id: "decide", title: "Waiting for your decision", short: "to decide", items: apps.filter((a) => a.owner && ["stalled", "owner"].includes(a.status))
{ id: "decide", title: "Needs your decision", short: "need your decision", items: apps.filter((a) => a.owner && ["stalled", "owner"].includes(a.status))
.map((a) => item(`Decide on ${app(a)}`, a.status === "stalled" ? "Not enough votes, even after 48 more hours." : "Too few active voters to hold a vote.", link(goTo(a), "Decide", true))) },
{ id: "vote", title: "Waiting for your vote", short: "to vote on", items: open.filter((a) => a.vote.canVote && !a.vote.mine).sort((a, b) => a.vote.closesAt - b.vote.closesAt)
.map((a) => item(`Vote on ${app(a)} · closes in ${left(a.vote.closesAt, now)}`, votes(a.vote), link(goTo(a), "Vote", true))) },
+1
View File
@@ -22,6 +22,7 @@ function statsHtml(s) {
${tile(fmt(s.last7.automod), "AutoMod actions, last 7 days", `${fmt(s.last30.automod)} in 30 days`)}
${tile(`${fmt(a.open.mod)} / ${fmt(a.open.support)}`, "Mod / Support applications waiting", `${fmt(a.accepted30)} accepted, ${fmt(a.declined30)} declined in 30 days`)}
</div>
<p class="meta stat-note">Counts only: Kira stores no list of who or what.</p>
<div class="chart-grid">
${barChart("Reports and mod-mail per week", w, [{ name: "Reports", values: col("reports") }, { name: "Mod-mail", values: col("modmail") }])}
${barChart("Warnings and timeouts per week", w, [{ name: "Warnings", values: col("warns") }, { name: "Timeouts", values: col("timeouts") }])}
+1
View File
@@ -1017,6 +1017,7 @@ code { border-radius: 0; background: var(--well); box-shadow: 0 0 0 1px var(--ou
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-1: #8a72f8; --chart-2: #d9702a; } }
:root[data-theme="dark"] { --chart-1: #8a72f8; --chart-2: #d9702a; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 8px; margin-bottom: 24px; }
.stat-note { margin: -16px 0 24px; }
.stat-tile { display: grid; gap: 4px; padding: 16px 18px; background: var(--panel); border: var(--block-outline) solid var(--outline); box-shadow: var(--panel-edges); }
.stat-value { font: 500 calc(var(--text-title) * 0.6) / 1.1 var(--pixel); color: var(--ink); }
.stat-label { font-size: var(--text-label); color: var(--ink-soft); }