Closed rickstaa closed 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.
@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:
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.
.env
file for accurate simulation.yarn dev
command, creating a representative testing environment.currentRound?.id
: Validated that the code remains stable when currentRound?.id
is undefined
.proposalsData?.treasuryProposals
: Assured that undefined proposalsData?.treasuryProposals
doesn't cause crashes.p.voteEnd
Handling: Tested for the scenario where p.voteEnd
is missing. Confirmed that in such cases, it defaults to 0
, leading to totalActiveProposals
being 0
without causing system instability.totalActiveProposals
Undefined Scenario: Verified the code's robustness in instances where totalActiveProposals
is undefined.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 |
@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?
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
After