-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement organizations and invitations #11
Merged
Merged
Conversation
This file contains 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
…-admin-dashboard into connect-invitations-backend
scottchen98
previously approved these changes
Oct 30, 2024
scottchen98
approved these changes
Oct 30, 2024
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.
This pull request introduces several changes to the
src/api.ts
file and various components related to user invitations and member management in the dashboard. The changes include new API functions, updates to the members' columns, and enhancements to the data table functionality. The most important changes include adding new API functions, updating member management logic, and introducing a new alert component.API Enhancements:
src/api.ts
: Added new API functionsdeleteAuthAccount
,updateUserName
,updatePartialProfile
,deleteUser
,listInvitations
, anddeleteInvitation
. These functions enhance the API's capabilities for handling user and invitation management. [1] [2] [3] [4] [5]Member Management Updates:
src/app/dashboard/members/columns.tsx
: Updated theTableData
interface andcolumns
to include new fields and actions for handling user invitations and deletions. Added mutations forresendUserInvitation
,deleteInvitation
,deleteAuthAccount
, anddeleteUser
. [1] [2] [3] [4] [5]src/app/dashboard/members/data-table.tsx
: Enhanced the data table to handle multiple email invitations, error handling, and role selection. Added new states and mutations for sending and deleting user invitations. [1] [2] [3] [4] [5] [6] [7]New Alert Component:
src/components/ui/alert.tsx
: Introduced a newAlert
component with variants for default and destructive alerts, along withAlertTitle
andAlertDescription
subcomponents. This component is used for displaying error messages in the data table.Page and Action Updates:
src/app/dashboard/members/page.tsx
: Replaced static data with dynamic data fetched using the newlistInvitations
API function.src/app/verify-member/actions.ts
: Added a new server-side functionacceptInvitation
to handle invitation acceptance.src/app/verify-member/page.tsx
: Updated the page to use the newacceptInvitation
function and handle errors appropriately.