-
Notifications
You must be signed in to change notification settings - Fork 2
v1.4.0 #1505
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
base: main
Are you sure you want to change the base?
Conversation
…hQL query structure
…ic token decimals
fix: issue with hover on sidebar buttons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| /> | ||
| <div className="flex items-center opacity-0 transition-opacity [tr:hover_&]:opacity-100"> | ||
| <CopyAndPasteButton | ||
| textToCopy={address as `0x${string}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy button copies wrong address in table rows
The CopyAndPasteButton component uses the address prop (which is the parent component's address parameter) instead of addressValue (the row's actual address from row.getValue("address")). This causes users to copy the wrong address - they'll always copy the main account address rather than the address displayed in each table row.
Additional Locations (2)
|
|
||
| setIsFilterActive( | ||
| !!(filterVariables?.minDelta || filterVariables?.maxDelta), | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filter active state uses stale values
The setIsFilterActive call checks filterVariables state values that were just updated with setFilterVariables. Since React state updates are asynchronous, filterVariables still contains the previous values at this point. The check references the old filter state instead of the new values being applied (from filterState.minAmount/filterState.maxAmount), causing isFilterActive to be out of sync with the actual filter state.
Additional Locations (2)
| }); | ||
| }); | ||
|
|
||
| if (othersValue > BigInt(0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing number to BigInt is inconsistent
The variable othersValue is a regular JavaScript number (calculated from subtraction of two numbers on line 155), but it's being compared to BigInt(0). While JavaScript allows mixed comparisons, this is inconsistent with the data types in use and could lead to unexpected behavior. The comparison othersValue > 0 would be more appropriate here.
| label: displayLabel, | ||
| value: | ||
| token === "ERC20" | ||
| ? Number(BigInt(delegator.rawBalance) / BigInt(10 ** 18)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded decimals inconsistent with dynamic decimals usage
The pie chart data for individual delegators uses a hardcoded 10 ** 18 divisor, but the "Others" slice on line 157 correctly uses the decimals variable from the DAO config. This inconsistency means the delegator values in the pie chart will be incorrectly calculated for tokens with non-18 decimals, while the "Others" value will be correct, causing the chart to display mismatched proportions.
Note
Introduces richer analytics and URL-driven state across Holders & Delegates, plus Storybook theming and API filter enhancements.
useBalanceHistory,useBalanceHistoryGraph,useDelegateDelegationHistory(from/to filters),useDelegationHistory,useAccountInteractionsData; minor API changes inuseDelegates/useTokenHoldersvotingPowersquery withfromAddresses/toAddressesWritten by Cursor Bugbot for commit bb8e702. This will update automatically on new commits. Configure here.