This PR implements the "My Activity" page to enhance user personalization and tracking of platform activities. Additionally, it introduces Ethereum sign-in functionality using @web3modal/siwe, siwe, and nextauth.
Changes Made:
Sign-In with Ethereum:
Integrated Sign-In with Ethereum functionality.
Implemented authentication using @web3modal/siwe, siwe, and nextauth.
Users receive a signed JWT cookie as a session token upon successful sign-in.
Here is the sign in flow:
Database Updates:
Added a User table to store user information.
Linked existing tables (Spaces, FundingVaults, Proposals) to the new User table to track user activities.
ER Diagram for the database schema:
Implement the functionality to join space.
Create a new component with a join space button.
Link it with a server action to link user account to a space as a member.
Add join space button to the space details page.
"My Activity" Page:
Created a profile page to display user interactions.
Users can view joined/created spaces, created vaults, and proposals in one place.
Closes #41
Overview:
This PR implements the "My Activity" page to enhance user personalization and tracking of platform activities. Additionally, it introduces Ethereum sign-in functionality using @web3modal/siwe, siwe, and nextauth.
Changes Made:
@web3modal/siwe
,siwe
, andnextauth
.Here is the sign in flow:
User
table to store user information.User
table to track user activities.ER Diagram for the database schema:
Implement the functionality to join space.
"My Activity" Page: