Skip to content

Conversation

@ECWireless
Copy link
Collaborator

This pull request updates the way transaction and winning ticket events are fetched and merged in the history view, ensuring more accurate pagination and event filtering. The main changes include improvements to the GraphQL query and the merging logic in the React component.

History view data fetching improvements:

  • Updated the GraphQL transactions query (particularly the winningTicketRedeemedEvents part) to support pagination by adding the first and skip parameters, allowing for more flexible and efficient data retrieval. Initially, this simply grabbed the first 100 rows, and would not go beyond this even if the user wanted to see more transactions.

Copilot AI review requested due to automatic review settings January 18, 2026 23:26
@ECWireless ECWireless linked an issue Jan 18, 2026 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Jan 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Jan 18, 2026 11:27pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds pagination support to the winningTicketRedeemedEvents GraphQL query to fix an issue where only the first 100 rows were retrieved. The changes enable proper pagination for transaction history, allowing users to load additional winning ticket events as they scroll.

Changes:

  • Added first and skip pagination parameters to the winningTicketRedeemedEvents GraphQL query
  • Updated the React component to merge paginated winning ticket events with transaction events
  • Regenerated TypeScript types from the updated GraphQL schema

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
queries/transactions.graphql Added pagination parameters (first and skip) to winningTicketRedeemedEvents query
components/HistoryView/index.tsx Updated fetchMore logic to concatenate paginated winningTicketRedeemedEvents arrays
apollo/subgraph.ts Auto-generated TypeScript types from GraphQL schema updates (BroadcasterDay, TreasuryVote, etc.)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Orchestrator History only shows two weeks of winning tickets

2 participants