Skip to content

Add admin UI for manual Stripe customer linking#445

Merged
bokelley merged 3 commits into
mainfrom
bokelley/stripe-cleanup
Jan 1, 2026
Merged

Add admin UI for manual Stripe customer linking#445
bokelley merged 3 commits into
mainfrom
bokelley/stripe-cleanup

Conversation

@bokelley

@bokelley bokelley commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds /admin/billing page for manually linking Stripe customers to organizations
  • Shows all Stripe customers with payment totals, link status, and autocomplete org search
  • Removes the auto-matching script and API endpoint (produced false positives like "Rachel Glickman" → "LG")
  • Added to admin sidebar under Billing section

Test plan

  • Navigate to /admin/billing and verify page loads
  • Verify unlinked customers with payments appear
  • Test organization search autocomplete
  • Link a customer and verify it updates

🤖 Generated with Claude Code

bokelley and others added 3 commits January 1, 2026 07:28
The fuzzy matching produced too many false positives.
Manual linking via /admin/billing is the intended workflow.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add GET /api/admin/stripe-customers to list all customers with payment totals
- Add POST /api/admin/stripe-customers/:id/link for manual linking
- Add GET /api/admin/organizations/search for org autocomplete
- Create /admin/billing page with customer list and linking UI
- Add "Stripe Linking" to admin sidebar under Billing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changed /api/admin/organizations/search to /api/admin/org-search
to avoid route conflict with /api/admin/organizations/:orgId in admin.ts

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

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