livepeer / explorer

https://explorer.livepeer.org
9 stars 11 forks source link

fix: fix active treasury proposals indicator #250

Closed rickstaa closed 10 months ago

rickstaa commented 10 months ago

This commit ensures that the active treasury proposals indicator is working correctly. The changes in this proposal are also included in https://github.com/livepeer/explorer/pull/247. This pull request was created so that it can already be merged while we still discuss the exact implementation of the Drawer treasury item in https://github.com/livepeer/explorer/pull/247.

Before

image

After

image

vercel[bot] commented 10 months ago

@rickstaa is attempting to deploy a commit to the Livepeer Team on Vercel.

A member of the Team first needs to authorize it.

rickstaa commented 10 months ago

@dob and @victorges, I've compiled a comprehensive report to bolster confidence in merging this pull request. The critical component of this pull request is derived from existing, peer-reviewed code in our repository:

https://github.com/livepeer/explorer/blob/a16b5343c7209bbe584261dd6b0b242b1c676990/pages/treasury/index.tsx#L20-L25

Utilizing the useTreasuryProposalsQuery hook aligns seamlessly with the already reviewed code, ensuring stable integration. I've shared the detailed testing process for additional code validation below.

Detailed Test Report

Execution Steps for Testing

  1. Cloned the explorer repository for a baseline environment.
  2. I installed all JavaScript dependencies to mirror the production setup.
  3. Configured the necessary environment variables in the .env file for accurate simulation.
  4. Launched the explorer locally using the yarn dev command, creating a representative testing environment.

Comprehensive Testing Checklist

vercel[bot] commented 10 months ago

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

Name Status Preview Comments Updated (UTC)
explorer-arbitrum-one ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2023 8:38pm
rickstaa commented 10 months ago

@victorges, I've implemented the revisions you suggested. Could you take a look at commit b3d868b1f6ffcffc13d20fa723d4d1a482c8b3f7 and let me know if there's anything else that requires modification?