Skip to content

feat(dashboard): fetch and display user pool count dynamically#78

Merged
Yunusabdul38 merged 2 commits intoWeb3Novalabs:mainfrom
EDOHWARES:feature/get-user-pool-count
Jul 31, 2025
Merged

feat(dashboard): fetch and display user pool count dynamically#78
Yunusabdul38 merged 2 commits intoWeb3Novalabs:mainfrom
EDOHWARES:feature/get-user-pool-count

Conversation

@EDOHWARES
Copy link
Contributor

#This PR implements the get_user_pool_count contract function on the dashboard to display the number of pools a connected user has participated in.

##Changes Made:

  • Integrated the getUserPoolCount utility with the Dashboard page.

  • Replaced the hardcoded ACTIVE POOL value with the dynamic pool count from the contract.

  • Used useAccount to fetch the connected user’s address from Argent wallet.

  • Added error handling and loading state for userPoolCount.

Acceptance Criteria:

  • The ACTIVE POOL stats card now displays the correct number of pools for the connected wallet address.

  • Falls back value, if data is still being fetched or if an error occurs.

Linked Issue:
Resolves #70

@EDOHWARES
Copy link
Contributor Author

@martinvibes , pls review

Copy link
Contributor

@Yunusabdul38 Yunusabdul38 left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks for your contribution on Predifi

@Yunusabdul38 Yunusabdul38 merged commit 1958bc9 into Web3Novalabs:main Jul 31, 2025
1 check passed
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.

[Frontend] Implement Get User Pool Count function

4 participants