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

feat: add list pagination to the nano contract history table #292

Merged
merged 11 commits into from
Aug 20, 2024

Conversation

pedroferreira1
Copy link
Member

@pedroferreira1 pedroferreira1 commented Aug 15, 2024

Acceptance Criteria

  • Add pagination to the table of a nano contract history
nano.history.pagination.mov

Depends on

HathorNetwork/hathor-explorer-service#331
https://github.com/HathorNetwork/nano-hathor-core/pull/95

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

src/components/nano/NanoContractHistory.js Outdated Show resolved Hide resolved
src/components/nano/NanoContractHistory.js Outdated Show resolved Hide resolved
src/components/nano/NanoContractHistory.js Outdated Show resolved Hide resolved
src/components/nano/NanoContractHistory.js Show resolved Hide resolved
* otherwise it would be fixed the moment the event listener is started in the useEffect
* with the history as an empty array
*
* tx {Transaction} Transaction object that arrived from the websocket
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* tx {Transaction} Transaction object that arrived from the websocket
* @param {Transaction} tx Transaction object that arrived from the websocket

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines 84 to 85
* after {string | null} Hash to use for pagination when user clicks to fetch the next page
* before {string | null} Hash to use for pagination when user clicks to fetch the previous page
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* after {string | null} Hash to use for pagination when user clicks to fetch the next page
* before {string | null} Hash to use for pagination when user clicks to fetch the previous page
* @param {string | null} after Hash to use for pagination when user clicks to fetch the next page
* @param {string | null} before Hash to use for pagination when user clicks to fetch the previous page

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, thanks ab25623

@pedroferreira1 pedroferreira1 merged commit a431bb5 into dev Aug 20, 2024
1 check passed
@pedroferreira1 pedroferreira1 deleted the feat/nano-history-pagination branch August 20, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants