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

Fix singaling not loading by ignoring token & update chart to match visual total support #457

Merged
merged 7 commits into from
Oct 9, 2024

Conversation

Corantin
Copy link
Contributor

@Corantin Corantin commented Oct 7, 2024

  • Refactor proposal type handling and pool token enabling logic to include conditional checks based on the proposal type.
  • Updated the ConvictionBarChart component to remove redundant maximum value calculation and adjusted the y-axis maximum to improve chart clarity.
  • Made the poolToken property optional in the Props type definition.
  • The changes update the poolToken prop to be optional and modify a conditional rendering logic in the ProposalCard component.
  • Made the poolToken prop optional in the Proposals component's interface.
  • Updated the testnet version to 0.0.5 in the configuration.
  • Updated the useHandleAllowance function to allow tokenAddr to be undefined and adjusted the enabling condition accordingly.

- Refactor proposal type handling and pool token enabling logic to include conditional checks based on the proposal type.
- Updated the ConvictionBarChart component to remove redundant maximum value calculation and adjusted the y-axis maximum to improve chart clarity.
- Made the poolToken property optional in the Props type definition.
- The changes update the `poolToken` prop to be optional and modify a conditional rendering logic in the `ProposalCard` component.
- Made the `poolToken` prop optional in the Proposals component's interface.
- Updated the testnet version to 0.0.5 in the configuration.
- Updated the `useHandleAllowance` function to allow `tokenAddr` to be undefined and adjusted the enabling condition accordingly.
Copy link

vercel bot commented Oct 7, 2024

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

Name Status Preview Comments Updated (UTC)
gardens-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 11:45pm

Copy link

github-actions bot commented Oct 7, 2024

Gemini Code Review encountered an error. Here is the step log:


- Refactor the proposal type handling logic for improved clarity and correctness in the pool token fetching conditions.
- Refactor the convictionGrowth computation to format the value more carefully by trimming unnecessary zeros and decimal points.
Mati0x
Mati0x previously approved these changes Oct 9, 2024
Copy link
Contributor

@Mati0x Mati0x left a comment

Choose a reason for hiding this comment

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

LG!

# Conflicts:
#	apps/web/components/ProposalCard.tsx
- Refactor token fetching logic to conditionally exclude signaling type proposals while enhancing proposal data handling.
- Modified the ProposalForm component to conditionally enable token fetching and loading spinner display based on the proposal type.
- Refactor the ProposalCard component to streamline the handling of signaling type proposals and optimize the conviction reading logic.
- Added proposalType parameter to conditionally enable the calculateThreshold function based on the PoolTypes.
@Corantin Corantin merged commit 4df1735 into dev Oct 9, 2024
3 checks 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.

2 participants