Skip to content

feat(desktop): add relay access settings#458

Merged
baxen merged 2 commits intomainfrom
baxen/admin-settings
May 4, 2026
Merged

feat(desktop): add relay access settings#458
baxen merged 2 commits intomainfrom
baxen/admin-settings

Conversation

@baxen
Copy link
Copy Markdown
Collaborator

@baxen baxen commented May 2, 2026

Summary

  • add Tauri commands and typed desktop API helpers for relay member reads and role/member updates
  • add relay member React Query hooks and a settings card to invite, remove, promote, and demote relay members
  • show the Relay Access settings section only to relay owners/admins

Testing

  • pre-commit hooks passed during commit
  • push hooks ran full checks and passed (rust-fmt, desktop-tauri-fmt, desktop-check, mobile-check, desktop-build, mobile-test, desktop-tauri-check, rust-clippy, rust-tests)

Note: PLAN.md is intentionally untracked and not included.

@baxen baxen marked this pull request as ready for review May 4, 2026 20:02
@baxen baxen requested a review from wesbillman as a code owner May 4, 2026 20:02
Align the Relay Access settings panel with the visual language used by
Appearance, Mobile, Profile, and Tokens:

- Add a search input + scrollable container so the members list scales
  to large relays. Filters by display name, npub, hex, NIP-05, or role.
- Show ProfileAvatars on each member row and render npubs instead of
  raw hex for friendlier identity display.
- Replace the floating Promote / Demote / Remove buttons with anchored
  icon-only ghost buttons (ArrowUp / ArrowDown / Trash2), matching the
  Tokens panel pattern. Remove gets a destructive hover color.
- Drop the section-heading icon to match every other settings panel.
- Replace the native <select> role picker with a split-button: the
  Invite action shows the chosen role inline, and a chevron opens a
  DropdownMenuRadioGroup with descriptions. The role label has a fixed
  min-width so the button doesn't reflow when toggling Member/Admin.
- Hide the role chooser entirely for admins (who can only invite
  members), avoiding a single-option dropdown.
@baxen baxen force-pushed the baxen/admin-settings branch from c37be92 to efa435e Compare May 4, 2026 20:06
@baxen baxen merged commit 32e97b3 into main May 4, 2026
13 checks passed
@baxen baxen deleted the baxen/admin-settings branch May 4, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant