[PR #22] [MERGED] Staff dashboards: Inbox first, a clearer application card, "How this works" #24

Closed
opened 2026-11-03 04:02:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-site/pull/22
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: feat/staff-inbox


📝 Commits (4)

  • 04bc147 Staff dashboards: Inbox first, a clearer application card, "How this works" (proposal)
  • a7497fb Staff Inbox: one-line items, Approve now and Veto inline, decisions that name you
  • 8fc71d7 Merge main into feat/staff-inbox
  • f6d1648 Help: sessions wording

📊 Changes

11 files changed (+417 additions, -106 deletions)

View changed files

📝 Caddyfile (+1 -1)
📝 build.mjs (+1 -1)
📝 serve.mjs (+1 -1)
📝 src/staff-apps.js (+150 -83)
➕ src/staff-inbox.js (+77 -0)
➕ src/staff-inbox.test.js (+40 -0)
📝 src/staff-mod.js (+22 -9)
📝 src/staff-page.js (+11 -2)
📝 src/staff-team.js (+25 -9)
📝 src/staff.html (+37 -0)
📝 src/style.css (+52 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The "clear and complete" brief for both dashboards (/staff/team and /staff/mod).

  • Inbox first. Both dashboards open on an Inbox tab with a count badge. It shows only what needs the signed-in member now, each item one line with its action:
    • votes waiting for your ballot, with the time left;
    • votes you are in that close within 24 h;
    • your cards (Team);
    • decisions of the last week that name you (Team).
    • For Ludovic: votes in his 12 h veto window, with Approve now and Veto right there (same confirmations as the card), and the stalled ones he decides.
    • Empty state: "Nothing needs you right now."
  • The application card. The vote line in plain words ("1 of 2 votes needed · closes in 2 days"), what you're asked to do, the ballot form, and "More" for votes, history and recusal.
    • While a vote runs, Ludovic sees the counts and the Against comments without names (kira#83, merged); names show once it closes.
  • "How this works" (/staff/help), linked from both dashboards:
    • who votes on what, blind ballots, the quorum, ⅔ to pass, 72 h plus 48 h once;
    • the veto window;
    • what is stored and for how long (Kira's real values: sessions 12 h idle / 7 days, links 30 min / 1 day, answers 90 days, counts 120 days);
    • getting or resetting a password with /staff password.
  • Same nav and vocabulary on both dashboards; works on a phone (a vote is 2 taps from the Inbox).

Tests: npm test 56/56 pass (new src/staff-inbox.test.js: the one-line items, the inline owner buttons, decisions that name you, the empty state, the vote line). node build.mjs builds. Screenshots against the fake-data dev API at 1440 and 390 px, no browser errors.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-site/pull/22 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/staff-inbox` --- ### 📝 Commits (4) - [`04bc147`](https://github.com/horizon-rust/horizon-site/commit/04bc14734e57d5d18684e072021edc521c3c593f) Staff dashboards: Inbox first, a clearer application card, "How this works" (proposal) - [`a7497fb`](https://github.com/horizon-rust/horizon-site/commit/a7497fbb841db0eb8e0562e50fca08bfbade8110) Staff Inbox: one-line items, Approve now and Veto inline, decisions that name you - [`8fc71d7`](https://github.com/horizon-rust/horizon-site/commit/8fc71d764b2b39e22e93a62efc4794301fe1b955) Merge main into feat/staff-inbox - [`f6d1648`](https://github.com/horizon-rust/horizon-site/commit/f6d1648e91f4bcf7d1f0992508757992e21e5720) Help: sessions wording ### 📊 Changes **11 files changed** (+417 additions, -106 deletions) <details> <summary>View changed files</summary> 📝 `Caddyfile` (+1 -1) 📝 `build.mjs` (+1 -1) 📝 `serve.mjs` (+1 -1) 📝 `src/staff-apps.js` (+150 -83) ➕ `src/staff-inbox.js` (+77 -0) ➕ `src/staff-inbox.test.js` (+40 -0) 📝 `src/staff-mod.js` (+22 -9) 📝 `src/staff-page.js` (+11 -2) 📝 `src/staff-team.js` (+25 -9) 📝 `src/staff.html` (+37 -0) 📝 `src/style.css` (+52 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The "clear and complete" brief for both dashboards (/staff/team and /staff/mod). - **Inbox first.** Both dashboards open on an Inbox tab with a count badge. It shows only what needs the signed-in member now, each item one line with its action: - votes waiting for your ballot, with the time left; - votes you are in that close within 24 h; - your cards (Team); - decisions of the last week that name you (Team). - For Ludovic: votes in his 12 h veto window, with **Approve now** and **Veto** right there (same confirmations as the card), and the stalled ones he decides. - Empty state: "Nothing needs you right now." - **The application card.** The vote line in plain words ("1 of 2 votes needed · closes in 2 days"), what you're asked to do, the ballot form, and "More" for votes, history and recusal. - While a vote runs, Ludovic sees the counts and the Against comments without names (kira#83, merged); names show once it closes. - **"How this works"** (/staff/help), linked from both dashboards: - who votes on what, blind ballots, the quorum, ⅔ to pass, 72 h plus 48 h once; - the veto window; - what is stored and for how long (Kira's real values: sessions 12 h idle / 7 days, links 30 min / 1 day, answers 90 days, counts 120 days); - getting or resetting a password with `/staff password`. - Same nav and vocabulary on both dashboards; works on a phone (a vote is 2 taps from the Inbox). Tests: `npm test` 56/56 pass (new `src/staff-inbox.test.js`: the one-line items, the inline owner buttons, decisions that name you, the empty state, the vote line). `node build.mjs` builds. Screenshots against the fake-data dev API at 1440 and 390 px, no browser errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:27 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-site#24
No description provided.