Skip to content

feat: improve domain user membership UX#754

Merged
bokelley merged 1 commit into
mainfrom
bokelley/scope3-invite-fix
Jan 13, 2026
Merged

feat: improve domain user membership UX#754
bokelley merged 1 commit into
mainfrom
bokelley/scope3-invite-fix

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Filter domain users endpoint to exclude pending join requests and invitations (no more duplicate users in UI)
  • Add direct member addition for verified domain users via POST /api/organizations/:orgId/domain-users/add
  • Auto-join users from verified domains when they create join requests
  • Add admin backfill endpoints for mass-adding domain users as members
  • Update team.html UI with Add/Invite buttons and "Add All" functionality
  • Update admin domain health page with member backfill UI

Test plan

  • Create an org with verified domain
  • Navigate to team page, verify "Potential Members" shows users without pending requests/invites
  • Click "Add" for a user with account - should create membership directly
  • Click "Invite" for a user without account - should send invitation
  • Verify "Add All" button works for multiple users
  • Test auto-join: have a user from verified domain create join request
  • Test admin backfill from domain health page

🤖 Generated with Claude Code

- Filter domain users endpoint to exclude pending join requests and invitations
- Add direct member addition for verified domain users (POST /api/organizations/:orgId/domain-users/add)
- Auto-join users from verified domains when they create join requests
- Add admin backfill endpoints for mass-adding domain users as members
- Add email validation and input sanitization
- Fix event listener accumulation in team.html
- Update team.html UI with Add/Invite buttons and "Add All" functionality
- Update admin domain health page with member backfill UI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 09c415d into main Jan 13, 2026
6 checks passed
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