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

Switch profile page when another account selected #493

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

pheuberger
Copy link
Member

@pheuberger pheuberger commented Mar 24, 2025

Without this patch, selecting any other account other than your connected EOA using the account selector doesn't do anything on your profile page. However, we want people to be able to cycle through their accounts, so whenever another account is selected via the account selector, we want the profile page to redirect to that account.

On the other hand we don't want the profile to automatically switch when the user is on a profile page that is not his connected EOA or one of the multisig they're a signer on. In these cases the selector will do nothing when the account selector is used.

ONLY MERGE AFTER #491!

Copy link

vercel bot commented Mar 24, 2025

@pheuberger is attempting to deploy a commit to the Hypercerts Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Mar 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hypercerts-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2025 0:09am

This caches the contract check on the server, so that our users don't
have to run the same checks individually.
Without this patch, selecting any other account other than your
connected EOA using the account selector doesn't do anything on your
profile page. However, we want people to be able to cycle through their
accounts, so whenever another account is selected via the account
selector, we want the profile page to redirect to that account.

On the other hand we don't want the profile to automatically switch when
the user is on a profile page that is not his connected EOA or one of
the multisig they're a signer on. In these cases the selector will do
nothing when the account selector is used.
When switching the accounts on the profile page, the unclaimed
hypercerts tab wasn't reloaded. It was due to caching, so I removed
that. It isn't a lot of data anyway.
@pheuberger pheuberger merged commit 0849cd4 into hypercerts-org:dev Apr 3, 2025
3 checks passed
@pheuberger pheuberger deleted the safe-support-profile-page branch April 3, 2025 14:55
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.

2 participants