This PR is bigger than previous ones, due to including the whole feature in a single PR, instead of breaking them down in multiple PR like previously.
This feature introduce the "User" concept for real, with an usable User profile page, as well as editable profile details.
Changes
The profile link in the modal account is now redirecting to the user profile page, instead of etherscan
User profile page now has content. As of now, it only show activities from onchains spaces, as offchain leaderboard is not ready yet
User profile data are now editable (saved to offchain network), via the edit profile modal
The user menu in the page top right is now showing the user's name (as set in the profile) when available
Offchain network is now the only source of truth for user metadata (name, about, avatar, etc ...)
UI wise, it follows the existing layout from Space overview for the header, and Leaderboard for the activity table, instead of following the figma, which is using different font/line weight and spacing, text alignment, etc ... for more consistency
Updating the user profile is done via alias, to avoid signing a transaction each time, similar to follow/unfollow space
Checking for profile will not fail if the user does not exist in the database, as long as the address is valid (since onchain users do not exist in the offchain database)
A new "Copy link" option has been added to the share dropdown, and has been extracted to its own component for reusability
User profile page now have the sidebar from the "My" section (will have the "active" class only if it's your own profile)
"My" section sidebar does not require to be logged in anymore, and will display different content depending on connection status: only show "Explore" for guest user
UiInputStampCover component has been refactored to also support user cover
User cover will default to use the blur avatar when not set, similar to space
How to test
Access your profile via the account modal
It should show your profile
You can edit your profile via the Edit profile modal
Saving should ask for signing an alias if not already done, and just save, and does not ask for a signature.
Your profile should be updated with the newly edited data
Summary
Closes: #387
This feature introduce the "User" concept for real, with an usable User profile page, as well as editable profile details.
Changes
UiInputStampCover
component has been refactored to also support user coverHow to test
TODO
Support starknet user on offchain(will be added in another PR)