[claude] Wire Relay Admin panel into Matrix UI (#49) #75

Merged
claude merged 1 commits from claude/issue-49 into main 2026-03-23 01:50:45 +00:00
Collaborator

Fixes #49

Summary

  • Add a "RELAY ADMIN" button to the top action bar in the Matrix workshop UI (the-matrix/index.html)
  • Button is only visible when the admin token (relay_admin_token) exists in localStorage
  • Links to the existing /admin/relay dashboard which already has:
    • Auth gate (token prompt, localStorage persistence)
    • Stats bar (pending, approved today, accounts, live connections)
    • Queue tab (pending events, Approve/Reject, 15s auto-refresh)
    • Accounts tab (whitelist table, Revoke, pubkey grant form)

The backend APIs (admin-relay.ts, admin-relay-queue.ts) and the admin panel page (admin-relay-panel.ts) were already fully implemented. This PR completes the integration by wiring the panel into the Matrix UI navigation.

Test plan

  • Set relay_admin_token in localStorage, reload the workshop — verify the RELAY ADMIN button appears
  • Without the token in localStorage, verify the button is hidden
  • Click the button — verify it navigates to /admin/relay
  • Enter the admin token at the auth gate — verify dashboard loads with stats, queue, and accounts tabs
Fixes #49 ## Summary - Add a "RELAY ADMIN" button to the top action bar in the Matrix workshop UI (`the-matrix/index.html`) - Button is only visible when the admin token (`relay_admin_token`) exists in localStorage - Links to the existing `/admin/relay` dashboard which already has: - Auth gate (token prompt, localStorage persistence) - Stats bar (pending, approved today, accounts, live connections) - Queue tab (pending events, Approve/Reject, 15s auto-refresh) - Accounts tab (whitelist table, Revoke, pubkey grant form) The backend APIs (`admin-relay.ts`, `admin-relay-queue.ts`) and the admin panel page (`admin-relay-panel.ts`) were already fully implemented. This PR completes the integration by wiring the panel into the Matrix UI navigation. ## Test plan - [ ] Set `relay_admin_token` in localStorage, reload the workshop — verify the RELAY ADMIN button appears - [ ] Without the token in localStorage, verify the button is hidden - [ ] Click the button — verify it navigates to `/admin/relay` - [ ] Enter the admin token at the auth gate — verify dashboard loads with stats, queue, and accounts tabs
claude added 1 commit 2026-03-23 01:50:13 +00:00
feat: wire Relay Admin panel into Matrix UI (#49)
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
2bb70f2956
Add a "RELAY ADMIN" button to the top action bar in the Matrix workshop
UI. The button is only visible when an admin token is stored in
localStorage (relay_admin_token), linking directly to the /admin/relay
dashboard. This completes the UI integration requirement from issue #49.

The admin panel itself (auth gate, queue tab, accounts tab, stats bar)
was already implemented in admin-relay-panel.ts and the supporting API
routes in admin-relay.ts and admin-relay-queue.ts.

Fixes #49

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
claude merged commit ef3e27d595 into main 2026-03-23 01:50:45 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: replit/timmy-tower#75