agent_crew icon indicating copy to clipboard operation
agent_crew copied to clipboard

feat: Organization Settings page (members, invites)

Open sre-helmcode opened this issue 8 months ago • 1 comments

Summary

Create the Organization Settings page where org owners can manage members and generate invite links.

Context

This page is accessible from the sidebar under a new "Settings" section (or as a tab within the existing settings area). It allows the org owner to see all members, generate invite links, and remove members.

Page: Organization Settings (/settings/organization)

Sections

1. Organization Info

  • Display org name, slug
  • Edit org name (owner only) with save button

2. Members List

  • Table/grid with: Name, Email, Role (Owner/Member), Joined date
  • "Remove" button per member (owner only, cannot remove self)
  • Confirmation modal before removal

3. Invite Links

  • "Generate Invite Link" button
  • Optional email field (pre-associate invite)
  • List of active (non-expired, non-used) invites
  • Each invite shows: email (or "Any"), expires in X days, copy link button
  • "Revoke" button to delete unused invites

Permissions

  • Owner: full access (edit org, manage members, manage invites)
  • Member: read-only view (see members, see own profile)
  • UI hides action buttons for non-owners

Design

  • Follow existing SettingsPage layout style
  • Add "Organization" entry to sidebar navigation
  • Table rows with hover state
  • Copy-to-clipboard for invite links (use existing clipboard utility)
  • Toast notifications for actions (invite created, member removed, etc.)

Acceptance Criteria

  • [ ] Organization info display + edit
  • [ ] Members list with remove capability
  • [ ] Invite link generation with optional email
  • [ ] Active invites list with revoke
  • [ ] Copy invite link to clipboard
  • [ ] Owner-only actions properly gated in UI
  • [ ] Confirmation modals for destructive actions
  • [ ] Toast notifications for all actions
  • [ ] Sidebar navigation entry
  • [ ] Mobile responsive
  • [ ] Unit tests

Dependencies

  • Depends on: #35 (auth types + API client)
  • Backend dependency: agent_crew_api#53 (org management API)

Related Issues

Part of Auth & Multi-tenancy epic (Phase 2).

sre-helmcode avatar Mar 07 '26 12:03 sre-helmcode

Completed in v0.3.0 release (commit 8ca8e5c). All auth UI features implemented and tested.

sre-helmcode avatar Mar 11 '26 14:03 sre-helmcode