-
Notifications
You must be signed in to change notification settings - Fork 32
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
worldchain explorer updates #3351
Changes from 16 commits
2ef3bbf
6cf146a
451a2d7
6c02517
a932e29
3e90715
8724af9
9bd0038
a7d5072
1dbcd96
6b4c78e
21443fb
684462f
0a11fbb
e9861d6
c535f93
24fbf3e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -320,6 +320,12 @@ export const OverviewChart: React.FC<OverviewChartProps> = ({ | |
stackId="a" | ||
fill={loading ? 'rgba(255, 255, 255, 0.1)' : '#000000'} | ||
/> | ||
<Bar | ||
isAnimationActive={false} | ||
dataKey="worldchain" | ||
stackId="a" | ||
fill={loading ? 'rgba(255, 255, 255, 0.1)' : '#FFFFFF'} | ||
/> | ||
Comment on lines
+323
to
+328
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Consider using a more distinctive color for better visibility The white fill color (
Consider using a unique, contrasting color like other chains in the chart to ensure the worldchain data is clearly visible against the dark background. 🔗 Analysis chainConsider adjusting the fill color for better visibility. The white fill color ( Let's verify the worldchain data integration: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if worldchain data is properly integrated in the chart data structure
rg -A 5 "worldchain.*interface|type.*worldchain" --type typescript
Length of output: 103 Script: #!/bin/bash
# Let's try different approaches to verify the worldchain integration
# Check for worldchain-related code patterns
rg -i "worldchain" -A 5 -B 5
# Look for data transformation or preparation related to worldchain
ast-grep --pattern 'const $_ = $$$worldchain$$$'
# Check the component's props and interfaces
ast-grep --pattern 'interface $_ {
$$$
worldchain
$$$
}'
# Look for worldchain in data mapping or processing
ast-grep --pattern '$_.worldchain'
Length of output: 74044 Script: #!/bin/bash
# Let's check the theme/styling context around the chart component
rg -B 10 -A 10 "ChainChart.*theme|theme.*ChainChart" --type typescript
# Look for other bar colors in the chart for comparison
ast-grep --pattern 'fill={$_}'
# Check if there's any dark theme or background color definition
rg -i "background.*dark|dark.*background|theme.*dark|dark.*theme"
Length of output: 5157 Script: #!/bin/bash
# Let's check the specific file content around the Bar components
rg -B 15 -A 15 "dataKey=\"worldchain\"" packages/explorer-ui/components/ChainChart/index.tsx
# Look for any theme or background color definitions in the ChainChart component
cat packages/explorer-ui/components/ChainChart/index.tsx
Length of output: 10816 |
||
</> | ||
)} | ||
</BarChart> | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -20,6 +20,7 @@ const qDeposits = () => { | |||||||||
'BridgeRequestEvents.originAmountFormatted', | ||||||||||
'BridgeRequestEvents.destAmountFormatted', | ||||||||||
'BridgeRequestEvents.sender', | ||||||||||
'BridgeRequestEvents.request', | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Schema compatibility verified, but GraphQL type needs update The database schema in
🔗 Analysis chainVerify GraphQL schema compatibility. The new field
Let me gather more information about the schema definition to see if the Let me try another command to get the complete schema definition: Let me check the database schema definition to understand the field structure: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify GraphQL schema compatibility
# Test: Check if the field is properly defined in the GraphQL schema
rg -A 5 "type BridgeRequestEvent" packages/rfq-indexer/api/src/graphql/types/
Length of output: 578 Script: #!/bin/bash
# Description: Check complete BridgeRequestEvent type definition
rg -A 15 "type BridgeRequestEvent" packages/rfq-indexer/api/src/graphql/types/events.graphql
Length of output: 1637 Script: #!/bin/bash
# Description: Get the complete content of the events.graphql file
cat packages/rfq-indexer/api/src/graphql/types/events.graphql
Length of output: 2827 Script: #!/bin/bash
# Description: Check the database schema definition for BridgeRequestEvents
cat packages/rfq-indexer/indexer/ponder.schema.ts
Length of output: 2531 |
||||||||||
'BridgeRequestEvents.sendChainGas', | ||||||||||
Comment on lines
+23
to
24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider adding null handling for the request field. The new field might be null in existing records. Consider adding explicit null handling in the - 'BridgeRequestEvents.request',
+ sql`COALESCE(BridgeRequestEvents.request, '{}') as request`.as('request'), 📝 Committable suggestion
Suggested change
|
||||||||||
]) | ||||||||||
.where('BridgeRequestEvents.blockTimestamp', '>', 1722729600) | ||||||||||
|
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.
Consider adjusting the worldchain bar color for better visibility
The white fill color (#FFFFFF) might make the bar difficult to see on light backgrounds. Consider using a more distinctive color that maintains good contrast across different background colors.
Apply this change to improve visibility:
📝 Committable suggestion