Setup admin site infrastructure and authentication#4
Open
umarluqman wants to merge 10 commits intobackpine:mainfrom
Open
Setup admin site infrastructure and authentication#4umarluqman wants to merge 10 commits intobackpine:mainfrom
umarluqman wants to merge 10 commits intobackpine:mainfrom
Conversation
- Add Amplify webhook trigger to deploy directory site on data changes - Implement invitation-based signup system with automatic center assignment - Add better-auth middleware to restrict signups to invitation links - Create superadmin/delete-superadmin CLI scripts for user management - Update deployment config and trusted origins for production URLs - Switch from client-side auth to server-side signup with invitation flow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added Amplify webhook integration to trigger directory site deployments when admin data changes. Implemented invitation-based signup flow with automatic center assignment and CLI tools for superadmin management.
Key Changes
src/lib/amplify.ts): Fire-and-forget HTTP POST to rebuild directory site onupdateCentermutationssignUpWithInvitation): Combined signup and center assignment in one atomic operationcreate-superadminanddelete-superadminfor user managementTesting
Set
AMPLIFY_WEBHOOK_URLin.dev.vars, then test by editing a center in the admin UI and verifying an Amplify build is triggered.🤖 Generated with Claude Code