feat(admin): is_admin gate + hash routing + proxy passthroughs #44

Merged
zaelgohary merged 1 commit from development_admin_foundation into development 2026-05-05 14:26:37 +00:00
Member

Summary

PR1 of 3 for the collab admin panel. Foundation only: is_admin gate, hash-route deep links, require_admin! macro, and proxy passthrough scaffolding for roles / claims / org-groups / impersonation / ops. Live methods talk to hero_proxy via hero_proxy_sdk; PR2/PR3 surfaces ship as documented stubs returning MethodNotFound.

#43

Changes

  • Added is_admin to user.me and User schema
  • Added require_admin! macro; proxy-mode denies anonymous calls
  • Added parse_hash_route() for #/admin/<page> deep links + back-to-chat affordance
  • Added 18 admin RPC methods covering roles, claims, org-groups, impersonation, ops
  • Added Playwright bootstrap and curl coverage for the deny path

Test Results

cargo check clean; 121/125 unit tests pass (4 pre-existing flakes); 5/5 Playwright + curl deny-path assertions pass.

## Summary PR1 of 3 for the collab admin panel. Foundation only: `is_admin` gate, hash-route deep links, `require_admin!` macro, and proxy passthrough scaffolding for roles / claims / org-groups / impersonation / ops. Live methods talk to hero_proxy via `hero_proxy_sdk`; PR2/PR3 surfaces ship as documented stubs returning `MethodNotFound`. ## Related Issue https://forge.ourworld.tf/lhumina_code/hero_collab/issues/43 ## Changes - Added `is_admin` to `user.me` and User schema - Added `require_admin!` macro; proxy-mode denies anonymous calls - Added `parse_hash_route()` for `#/admin/<page>` deep links + back-to-chat affordance - Added 18 admin RPC methods covering roles, claims, org-groups, impersonation, ops - Added Playwright bootstrap and curl coverage for the deny path ## Test Results `cargo check` clean; 121/125 unit tests pass (4 pre-existing flakes); 5/5 Playwright + curl deny-path assertions pass.
zaelgohary force-pushed development_admin_foundation from ab850cbc76 to 1d606508ea 2026-05-05 14:08:21 +00:00 Compare
zaelgohary changed title from WIP: feat(admin): is_admin gate + hash routing + proxy passthroughs to feat(admin): is_admin gate + hash routing + proxy passthroughs 2026-05-05 14:10:09 +00:00
zaelgohary force-pushed development_admin_foundation from 1d606508ea to 0f0ba0870f 2026-05-05 14:23:05 +00:00 Compare
zaelgohary merged commit 074a9b7532 into development 2026-05-05 14:26:37 +00:00
zaelgohary deleted branch development_admin_foundation 2026-05-05 14:26:37 +00:00
Sign in to join this conversation.
No reviewers
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
lhumina_code/hero_collab!44
No description provided.