Add Synvya-themed support-admin user detail view#15
Merged
alejandro-runner merged 1 commit intosynvya-stagingfrom Apr 14, 2026
Merged
Add Synvya-themed support-admin user detail view#15alejandro-runner merged 1 commit intosynvya-stagingfrom
alejandro-runner merged 1 commit intosynvya-stagingfrom
Conversation
Adds a light Synvya theme variant to /support-admin and surfaces per-user team memberships with their team-owned restaurant keys and NIP-46 authorizations. The theme activates only on auth.synvya.com / auth.staging.synvya.com via the existing getLoginUrl() switch, so diVine deployments are unchanged. Backend: - New GET /api/admin/user-teams?pubkey=<hex> (support-admin only, tenant-scoped) returning teams → restaurant_keys → authorizations with label, bunker pubkey, relays, connected/expires/created timestamps. Frontend: - Support-admin page dual-modes via isSynvyaManaged; Synvya variant uses a white admin surface with Synvya logo header. - New "Teams & Restaurants" section (Synvya-only) lazy-loads user-teams on expand and groups authorizations under their restaurant key, with visual accents for Synvya Server (24/7) vs Synvya Client (interactive) labels and a "shared across the team" hint reflecting the Keycast boundary: authorizations are team-scoped, not user-scoped. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/support-admin, activated only onauth.synvya.com/auth.staging.synvya.comvia the existinggetLoginUrl()switch. diVine deployments render unchanged.Synvya Server (24/7)vsSynvya Client (interactive)accents).GET /api/admin/user-teams?pubkey=<hex>(support-admin only, tenant-scoped), lazy-loaded from the frontend on row expand.Access
Same URL as today:
https://auth.staging.synvya.com/support-admin. Gated by the existingis_support_adminUCAN check.Test plan
auth.staging.synvya.com/support-adminand confirm the white Synvya theme rendersSynvya Server (staging)auth shows the green24/7pill;Synvya Client (staging)shows the blueinteractivepillGET /api/admin/user-teamsreturns 403 for non-admin tokens🤖 Generated with Claude Code