Skip to content

fix: domain health linking and add domain health to account detail#690

Merged
bokelley merged 1 commit into
mainfrom
bokelley/domain-health-linking
Jan 10, 2026
Merged

fix: domain health linking and add domain health to account detail#690
bokelley merged 1 commit into
mainfrom
bokelley/domain-health-linking

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Fix "link user" button on domain health page - SQL now excludes users already in the target org, so users won't keep appearing after being linked
  • Add "Link All" button - Batch-link all misaligned users to their corporate accounts with one click
  • Fix 409 error for unverified orgs - Filter out domains already claimed by other organizations
  • Add "Similar Organization Names" section - Identify potential duplicate organizations for merging (using normalized name matching)
  • Restore "Unlinked Corporate Domains" section - Now filtered to only show domains where users are in actual corporate orgs (not just personal workspaces)
  • Add Domain Health section to account detail page showing:
    • Users with this org's domain who aren't in this org (with Add/Add All buttons)
    • Potential duplicate organizations with similar names
    • Unverified domain warnings
  • Security fixes:
    • Replace inline onclick handlers with event delegation
    • Add input validation for user/org IDs

Test plan

  • Build passes
  • All tests pass
  • Browser testing with Vibium: verified domain health page loads correctly with all sections
  • Manual testing on staging: verify "Link" button works correctly
  • Manual testing on staging: verify "Link All" button batch links users
  • Manual testing on staging: verify account detail shows domain health issues when applicable

🤖 Generated with Claude Code

- Fix "link user" button on domain health page - SQL now excludes users
  already in the target org
- Add "Link All" button to batch-link all misaligned users to their
  corporate accounts
- Fix 409 error for unverified orgs by filtering out domains already
  claimed by other organizations
- Add "Similar Organization Names" section to identify potential
  duplicate orgs for merging
- Restore "Unlinked Corporate Domains" section but filter to only show
  domains where users are in actual corporate orgs (not just personal
  workspaces)
- Add Domain Health section to account detail page showing:
  - Users with this org's domain who aren't in this org
  - Potential duplicate organizations with similar names
  - Unverified domain warnings
- Security fixes: Replace inline onclick handlers with event delegation
  and add input validation for user/org IDs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 1a67f54 into main Jan 10, 2026
5 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