Skip to content
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 invitations #106

Merged
merged 24 commits into from
Oct 30, 2024
Merged

Implement invitations #106

merged 24 commits into from
Oct 30, 2024

Conversation

michaeleii
Copy link
Contributor

@michaeleii michaeleii commented Oct 30, 2024

This pull request includes significant updates to both the SignIn component and the convex backend, focusing on improving user experience and enhancing security checks. The changes include adding error handling and loading states in the SignIn component, and implementing comprehensive user and organization validation in the backend mutations and queries.

Frontend Changes:

  • Error Handling and Loading States in SignIn Component:
    • Added error state and loading indicators to provide better user feedback during sign-in attempts. (app/sign-in.tsx) [1] [2] [3] [4]

Backend Changes:

  • Enhanced User and Organization Validation:
    • Added checks to ensure users are authenticated and belong to the correct organization before performing actions such as creating, updating, or deleting challenges. (convex/challenges.ts) [1] [2] [3] [4] [5] [6] [7] [8]
    • Improved invitation handling by adding user role checks and updating invitation statuses. (convex/invitations.tsx) [1] [2] [3]

Email Components:

  • Updated Email Links and Styles:
    • Modified email components to include dynamic links and enhanced styles for better user experience. (convex/emails/LTUserInvitation.tsx, convex/emails/LTWelcome.tsx, convex/emails/LTLoginOTP.tsx) [1] [2] [3] [4] [5] [6]

These changes aim to improve the overall user experience and ensure better security and data integrity in the application.

@michaeleii michaeleii linked an issue Oct 30, 2024 that may be closed by this pull request
@michaeleii michaeleii enabled auto-merge October 30, 2024 01:20
@michaeleii michaeleii merged commit d7803a2 into main Oct 30, 2024
4 checks passed
@michaeleii michaeleii deleted the 99-implement-invitations branch October 30, 2024 01:20
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.

Implement Invitations
2 participants