Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes focused on improving the handling of proposal identifiers and refactoring the
ProposalCard
andProposals
components to enhance code readability and maintainability. Key changes include renamingproposalId
toproposalNumber
, updating the state management for proposals, and modifying theinputHandler
function.Identifier Renaming:
apps/web/app/(app)/gardens/[chain]/[garden]/[community]/[poolId]/[proposalId]/page.tsx
: RenamedproposalId
toproposalNumber
in thePage
component. (apps/web/app/(app)/gardens/[chain]/[garden]/[community]/[poolId]/[proposalId]/page.tsxL267-R267)apps/web/components/Charts/ConvictionBarChart.tsx
: UpdatedConvictionBarChartProps
and related component logic to useproposalNumber
instead ofproposalId
. [1] [2] [3]ProposalCard
Component Updates:apps/web/components/ProposalCard.tsx
: ModifiedProposalCardProps
to makeinputData
optional and changed theinputHandler
function to useproposalId
instead of an index. [1] [2] [3]index
prop and adjusted related logic.Proposals
Component Refactor:apps/web/components/Proposals.tsx
: Refactored state management to use objects keyed byproposalId
instead of arrays. UpdatedinputHandler
and related functions to reflect this change. [1] [2] [3]Configuration Updates:
pkg/subgraph/.graphclient/index.js
: Updated the GraphQL endpoint configuration.pkg/subgraph/.graphclientrc.template.yml
: Added template configuration for the GraphQL client.pkg/subgraph/.graphclientrc.yml
: Updated the endpoint for thegv2
source.pkg/subgraph/package.json
: Modified thebuild-client
script to use a template configuration.