mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #33] [MERGED] Move the staff dashboards into the hub #35
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#35
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/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)
0be2a3bMove 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
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
/hub/team,/hub/mod,/hub/sign-in,/hub/setup#…(the password link Kira DMs) and/hub/staff-help./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./staff→/hub/sign-in,/staff/team|mod|setup→/hub/…,/staff/help→/hub/staff-help. Browsers keep the#tokenacross the redirect, so links already sent keep working./staff/api/*(the proxy) is unchanged.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:
/hubwith no staff tab; the four redirects;/hub/teamwithout a session → sign-in; an old/staff/setup#tokenlink →/hub/setup→ password set →/hub/teamsigned in;/hub#roadmapthen shows the Team tab; sign out → sign-in form and the tab gone.npm run lintandtsc --noEmitclean.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.