Skip to content

Sync organization name changes to WorkOS in admin panel#616

Merged
bokelley merged 1 commit into
mainfrom
bokelley/edit-org-name
Jan 5, 2026
Merged

Sync organization name changes to WorkOS in admin panel#616
bokelley merged 1 commit into
mainfrom
bokelley/edit-org-name

Conversation

@bokelley

@bokelley bokelley commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enables editing organization names via the admin panel edit form
  • Organization name changes now sync to WorkOS before updating the local database
  • Ensures names stay consistent between WorkOS and local DB

Changes

  • Pass WorkOS client to setupProspectRoutes in admin routes
  • Update PUT /api/admin/prospects/:orgId to sync name to WorkOS first
  • Add warning log when WorkOS is not configured (for local dev)
  • Include error details in failure responses for easier debugging

Test plan

  • TypeScript compiles successfully
  • All tests pass
  • Admin pages load correctly
  • Manual test: Edit organization name in admin panel and verify it syncs to WorkOS

🤖 Generated with Claude Code

When admins edit an organization's name via the admin panel edit form,
the change now syncs to WorkOS before updating the local database.
This ensures the name stays consistent between WorkOS and the local DB.

Changes:
- Pass WorkOS client to setupProspectRoutes
- Update PUT /api/admin/prospects/:orgId to sync name to WorkOS
- Add warning log when WorkOS is not configured
- Include error details in failure responses

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

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