mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #26] [MERGED] Staff dashboards: Kira's cards without a link; each part renders on its own #30
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
6d2f508Staff 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
The null field:
board.columns[].cards[].urlinGET /staff/api/team/overview. Kira's work board sends its own cards (kindcard; live: #20, #23, #24, #27, #30, #32, #37–#41) withurl: null, and the Team dashboard's work board drew every card as<a href="${escape(k.url)}">. With the oldescape()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 inescape(); this fixes the cause and the blast radius.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.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 test62/62 pass;node build.mjsbuilds. 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.