[PR #33] [MERGED] Move the staff dashboards into the hub #35

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-site/pull/33
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: feat/staff-in-hub


📝 Commits (1)

  • 0be2a3b Move the staff dashboards into the hub

📊 Changes

10 files changed (+179 additions, -95 deletions)

View changed files

📝 README.md (+3 -1)
➕ app/hub/[view]/page.tsx (+23 -0)
➖ app/staff/[[...view]]/page.tsx (+0 -21)
📝 components/hub-shell.tsx (+72 -22)
📝 components/staff/api.ts (+30 -0)
📝 components/staff/applications.tsx (+1 -1)
📝 components/staff/mod.tsx (+1 -1)
📝 components/staff/staff-app.tsx (+35 -39)
📝 components/staff/team.tsx (+9 -9)
📝 next.config.ts (+5 -1)

📄 Description

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

Ludovic asked for the staff pages and the hub to be one place. Follows #32 (the Origin fix that made the setup links work again).

What staff get

  • The dashboards live under the hub, with the hub's tab bar: /hub/team, /hub/mod, /hub/sign-in, /hub/setup#… (the password link Kira DMs) and /hub/staff-help.
  • On /hub, a browser that signed in shows the member's Team / Moderation tab after the public tabs. It is a localStorage hint for the links only (no request to Kira on public visits); every dashboard still checks the session.
  • Old addresses redirect (308): /staff → /hub/sign-in, /staff/team|mod|setup → /hub/…, /staff/help → /hub/staff-help. Browsers keep the #token across the redirect, so links already sent keep working. /staff/api/* (the proxy) is unchanged.
  • The new staff pages get the same private headers as before (no-store, noindex, no framing).
  • An expired or used setup link now shows Kira's message instead of "This page needs the link Kira DMs you".

Public look unchanged: for visitors who never signed in, the hub's tab bar renders the same (measured: identical tab and toggle positions at 390 px and 1280 px, live vs this branch). No fonts, colours or tokens touched.

Tested locally against Kira's staff dev API (fake data) in headless Chromium: /hub with no staff tab; the four redirects; /hub/team without a session → sign-in; an old /staff/setup#token link → /hub/setup → password set → /hub/team signed in; /hub#roadmap then shows the Team tab; sign out → sign-in form and the tab gone. npm run lint and tsc --noEmit clean.

Kira's DM text moves to the new addresses in a separate Kira PR.

🤖 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/33 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/staff-in-hub` --- ### 📝 Commits (1) - [`0be2a3b`](https://github.com/horizon-rust/horizon-site/commit/0be2a3bbc05e325a866e49cf05b7af6e056b4a66) Move the staff dashboards into the hub ### 📊 Changes **10 files changed** (+179 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -1) ➕ `app/hub/[view]/page.tsx` (+23 -0) ➖ `app/staff/[[...view]]/page.tsx` (+0 -21) 📝 `components/hub-shell.tsx` (+72 -22) 📝 `components/staff/api.ts` (+30 -0) 📝 `components/staff/applications.tsx` (+1 -1) 📝 `components/staff/mod.tsx` (+1 -1) 📝 `components/staff/staff-app.tsx` (+35 -39) 📝 `components/staff/team.tsx` (+9 -9) 📝 `next.config.ts` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic asked for the staff pages and the hub to be one place. Follows #32 (the Origin fix that made the setup links work again). **What staff get** - The dashboards live under the hub, with the hub's tab bar: `/hub/team`, `/hub/mod`, `/hub/sign-in`, `/hub/setup#…` (the password link Kira DMs) and `/hub/staff-help`. - On `/hub`, a browser that signed in shows the member's **Team** / **Moderation** tab after the public tabs. It is a localStorage hint for the links only (no request to Kira on public visits); every dashboard still checks the session. - Old addresses redirect (308): `/staff` → `/hub/sign-in`, `/staff/team|mod|setup` → `/hub/…`, `/staff/help` → `/hub/staff-help`. Browsers keep the `#token` across the redirect, so links already sent keep working. `/staff/api/*` (the proxy) is unchanged. - The new staff pages get the same private headers as before (no-store, noindex, no framing). - An expired or used setup link now shows Kira's message instead of "This page needs the link Kira DMs you". **Public look unchanged**: for visitors who never signed in, the hub's tab bar renders the same (measured: identical tab and toggle positions at 390 px and 1280 px, live vs this branch). No fonts, colours or tokens touched. **Tested** locally against Kira's staff dev API (fake data) in headless Chromium: `/hub` with no staff tab; the four redirects; `/hub/team` without a session → sign-in; an old `/staff/setup#token` link → `/hub/setup` → password set → `/hub/team` signed in; `/hub#roadmap` then shows the Team tab; sign out → sign-in form and the tab gone. `npm run lint` and `tsc --noEmit` clean. Kira's DM text moves to the new addresses in a separate Kira PR. 🤖 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:32 +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#35
No description provided.