Skip to content

feat: formalise wallet connection as a site-wide feature#53

Merged
rebeccafitzpatr merged 6 commits into
mainfrom
feature/wallet-connector
May 10, 2026
Merged

feat: formalise wallet connection as a site-wide feature#53
rebeccafitzpatr merged 6 commits into
mainfrom
feature/wallet-connector

Conversation

@Laz061
Copy link
Copy Markdown

@Laz061 Laz061 commented May 5, 2026

update wallet connector

- Add useWallet hook centralising wagmi/AppKit state with SSR mount guard
- Add WalletButton component with connected/disconnected/loading states
- Add /profile page showing wallet address, network, and disconnect
- Add WalletButton to desktop navbar (was missing) and mobile menu
- Update navbar to use fixed+backdrop on non-home pages; fix anchor links to /#section
- Refactor ens-claim and admin to use useWallet, removing duplicated boilerplate
- Replace deprecated useAccount with useConnection, disconnect with mutate
- Add docs/wallet-connection.md for team reference
Copilot AI review requested due to automatic review settings May 5, 2026 12:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR formalizes wallet connectivity as a shared site-wide feature by introducing a central wallet hook, a reusable wallet button, and a new /profile page, then wiring those pieces into existing wallet-gated flows.

Changes:

  • Add a shared useWallet hook plus a reusable WalletButton component for connection state/UI.
  • Replace direct wallet connector usage in the navbar, ENS claim flow, and admin page with the shared abstractions.
  • Add a new /profile page for connected-wallet details and document the intended wallet architecture.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/hooks/use-wallet.ts Adds the shared wallet state hook used across the app.
src/components/wallet-button.tsx Introduces the reusable connect/profile button UI.
src/components/navbar.tsx Replaces navbar wallet controls and updates nav behavior for site-wide usage.
src/components/ens-claim.tsx Migrates ENS claim flow to the shared wallet abstractions.
src/app/profile/page.tsx Adds the new wallet profile page.
src/app/admin/page.tsx Switches admin access flow to the shared wallet button/hook.
docs/wallet-connection.md Documents the wallet architecture and usage conventions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/hooks/use-wallet.ts
Comment thread src/components/wallet-button.tsx Outdated
Comment thread src/components/wallet-button.tsx Outdated
Comment thread src/components/navbar.tsx Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 12:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/wallet-button.tsx Outdated
Comment thread src/components/navbar.tsx
Andy Huang and others added 2 commits May 6, 2026 00:20
Replace focusable placeholder button with a non-interactive div to prevent keyboard users from tabbing onto an invisible control. Use Button's asChild mode for the connected state to eliminate the invalid nested <a><button> markup.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 12:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/profile/page.tsx
Comment thread docs/wallet-connection.md
Comment thread docs/wallet-connection.md
@FuRankLy FuRankLy added this to the User Profile System milestone May 6, 2026
Copilot AI review requested due to automatic review settings May 6, 2026 05:46
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@rebeccafitzpatr
Copy link
Copy Markdown
Collaborator

Good work !
Rather than showing empty badges , can you add a message to handle when user has no badges / events ?

image

@rebeccafitzpatr rebeccafitzpatr merged commit ea58158 into main May 10, 2026
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.

5 participants