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

Proposal Details Page #54

Merged
merged 37 commits into from
Feb 19, 2024
Merged

Proposal Details Page #54

merged 37 commits into from
Feb 19, 2024

Conversation

chapati23
Copy link
Contributor

@chapati23 chapati23 commented Feb 9, 2024

Fixes #22

How to review

  • Check latest deployment
  • There should be a few proposals in different statuses
  • Go through acceptance criteria
  • Check code

Done

  • Hook up mocked out elements to subgraph
    • Proposal status
    • Proposal title
    • Proposer's wallet address
    • Date when it was submitted on chain
    • Date when voting ends
    • Countdown till the voting end
    • Proposal description
    • Execution code
  • Hide "Cast Votes" section when voting isn't active

Extras

  • Fixed husky setup (never worked AFAICT) and added pre-commit and pre-push hooks
  • Added .prettierrc (otherwise it'd fallback to possible varying local editor configs)
  • Fixed eslint
  • Updated wagmi & viem
  • Added yarn todo script to parse out TODO comments

Resources

Copy link

vercel bot commented Feb 9, 2024

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

Name Status Preview Comments Updated (UTC)
governance-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 0:16am

bowd and others added 19 commits February 16, 2024 12:50
there was a wagmi bug in useBlock that ignored the
blockNumber argument which was recently fixed:
wevm/wagmi@3f8203b
wagmi and viem types were misaligned after version
updates, needed to update viem and PublicClient type
usage
we guarantee it's at least an empty array in the proposal policy
- now using graphql fragments to share logic
- added calldata to GetProposal query
introduction of fragments led to some issues with the
auto-generated types for the GetProposal query types
better readability for numbers, adds thousand separators
also refactored voting start/end logic + some cleanup
@baroooo
Copy link
Contributor

baroooo commented Feb 16, 2024

I also noticed the countdown text is not visible on dark theme, caused by this line:

@chapati23
Copy link
Contributor Author

I also noticed the countdown text is not visible on dark theme, caused by this line:

nice catch, fixed

@chapati23 chapati23 merged commit e34d520 into develop Feb 19, 2024
3 checks passed
@chapati23 chapati23 deleted the feat/proposal-details branch February 19, 2024 12:30
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.

4 participants