[PR #26] [MERGED] Staff dashboards: Kira's cards without a link; each part renders on its own #30

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

📋 Pull Request Information

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

Base: main ← Head: fix/staff-null-fields


📝 Commits (1)

  • 6d2f508 Staff dashboards: Kira's cards without a link; each part renders on its own

📊 Changes

6 files changed (+144 additions, -29 deletions)

View changed files

📝 src/staff-api.js (+11 -0)
📝 src/staff-apps.js (+8 -5)
➕ src/staff-dashboards.test.js (+77 -0)
📝 src/staff-mod.js (+5 -4)
📝 src/staff-team.js (+42 -20)
📝 src/style.css (+1 -0)

📄 Description

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

The null field: board.columns[].cards[].url in GET /staff/api/team/overview. Kira's work board sends its own cards (kind card; live: #20, #23, #24, #27, #30, #32, #37–#41) with url: null, and the Team dashboard's work board drew every card as <a href="${escape(k.url)}">. With the old escape() that threw, and the whole dashboard showed only the error. It wasn't specific to Ludovic: anyone opening /staff/team with the live board hit it. My fake data had only GitHub issue cards, which is why the earlier tests missed it. horizon-site#24 fixed the symptom in escape(); this fixes the cause and the blast radius.

  • Kira's cards without a link render as plain cards ("Card #20"), never href="".
  • section() (staff-api.js) renders each part on its own: the Team kanban and Kira's work board separately, the roadmap, the decisions, the Inbox, the moderation numbers, and each application card. One that fails shows a one-line error in its place; the rest of the dashboard still renders.
  • Lists Kira may send as null (item links, decision history, card people, roadmap areas and items, application questions and history) are read as empty.
  • New src/staff-dashboards.test.js: the Team panels, the Mod numbers, application cards (voter, veto window, stalled) and the Inbox, built from payloads with every optional field null, plus a check that a failing part leaves the others intact.

Tests: npm test 62/62 pass; node build.mjs builds. In a browser against the fake-data dev API: every tab of /staff/team and /staff/mod for ludovic, aurora and dune, with no section error, no empty panel and no page error.

🤖 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/26 **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:** `fix/staff-null-fields` --- ### 📝 Commits (1) - [`6d2f508`](https://github.com/horizon-rust/horizon-site/commit/6d2f5087ad514eb822c6f86771c99e7b57c7fbf9) Staff dashboards: Kira's cards without a link; each part renders on its own ### 📊 Changes **6 files changed** (+144 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `src/staff-api.js` (+11 -0) 📝 `src/staff-apps.js` (+8 -5) ➕ `src/staff-dashboards.test.js` (+77 -0) 📝 `src/staff-mod.js` (+5 -4) 📝 `src/staff-team.js` (+42 -20) 📝 `src/style.css` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **The null field:** `board.columns[].cards[].url` in `GET /staff/api/team/overview`. Kira's work board sends its own cards (kind `card`; live: #20, #23, #24, #27, #30, #32, #37–#41) with `url: null`, and the Team dashboard's work board drew every card as `<a href="${escape(k.url)}">`. With the old `escape()` that threw, and the whole dashboard showed only the error. It wasn't specific to Ludovic: anyone opening /staff/team with the live board hit it. My fake data had only GitHub issue cards, which is why the earlier tests missed it. horizon-site#24 fixed the symptom in `escape()`; this fixes the cause and the blast radius. - Kira's cards without a link render as plain cards ("Card #20"), never `href=""`. - `section()` (staff-api.js) renders each part on its own: the Team kanban and Kira's work board separately, the roadmap, the decisions, the Inbox, the moderation numbers, and each application card. One that fails shows a one-line error in its place; the rest of the dashboard still renders. - Lists Kira may send as null (item links, decision history, card people, roadmap areas and items, application questions and history) are read as empty. - New `src/staff-dashboards.test.js`: the Team panels, the Mod numbers, application cards (voter, veto window, stalled) and the Inbox, built from payloads with every optional field null, plus a check that a failing part leaves the others intact. Tests: `npm test` 62/62 pass; `node build.mjs` builds. In a browser against the fake-data dev API: every tab of /staff/team and /staff/mod for ludovic, aurora and dune, with no section error, no empty panel and no page error. 🤖 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:29 +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#30
No description provided.