Skip to content

feat: data connection administration UI#248

Open
alukach wants to merge 9 commits intomainfrom
feat/data-connection-admin
Open

feat: data connection administration UI#248
alukach wants to merge 9 commits intomainfrom
feat/data-connection-admin

Conversation

@alukach
Copy link
Copy Markdown
Contributor

@alukach alukach commented Mar 25, 2026

Summary

  • Admin CRUD pages for system data connections at /admin/data-connections/
  • Product settings tab for managing data connection mirrors at /edit/product/.../data-connections
  • Admins: full create/edit/delete data connections + associate connections with products
  • Product owners: read-only view of product mirrors
  • Admin dropdown menu link for quick access

Closes #178

Changes

  • src/lib/clients/database/data-connections.ts — added delete method
  • src/lib/actions/data-connections.ts — server actions for CRUD
  • src/lib/actions/product-mirrors.ts — server actions for mirror management
  • src/components/features/data-connections/ — DataConnectionForm, DeleteDataConnectionButton, ProductMirrorsManager
  • src/app/(app)/admin/ — admin layout + data connections pages (list, create, edit)
  • src/app/(app)/edit/product/.../data-connections/ — product mirror settings page
  • src/components/layout/AccountDropdown.tsx — admin section with link
  • src/lib/urls.ts — new URL helpers

Test plan

  • Verify admin can list, create, edit, and delete data connections
  • Verify non-admin users cannot access admin pages (redirects to 404)
  • Verify admin can add/remove mirrors and set primary on product settings
  • Verify product owners see read-only mirror list (no add/remove/set primary)
  • Verify admin dropdown shows "Data Connections" link only for admins
  • Verify provider switching (S3/Azure) shows correct fields in form
  • Verify auth type switching shows correct credential fields

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
source-cooperative Ready Ready Preview, Comment Mar 31, 2026 10:16pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposed Feature] Data Connection administration

1 participant