-
Notifications
You must be signed in to change notification settings - Fork 28
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
#882 | clearing the address url parameter on internal transactions navigation #930
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for testnet-teloscan ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for teloscan-stage ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dev-mainnet-teloscan ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for zkevm-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
The deploy link is not working for me as on the image, when i click on the nav bar blockchain -> internal transactions after visiting https://deploy-preview-930--dev-mainnet-teloscan.netlify.app/txsinternal?a=0xa30b5e3c8Fee56C135Aecb733cd708cC31A5657a&page=7,10 2025-01-20.06-36-02.mov |
This is the interaction I get when I go to the Internal Transaction entry from the top menu. teloscan--internal-transactions.webm |
toggleAllExpanded() { | ||
this.allExpanded = !this.allExpanded; | ||
this.rows.forEach((row) => { | ||
row.expand = this.allExpanded; | ||
}); | ||
this.saveAllExpanded(); | ||
}, | ||
loadAllExpanded() { | ||
// we look for the local Storage to see if the user has already expanded all the rows | ||
const allExpanded = localStorage.getItem('allExpanded'); | ||
if (allExpanded) { | ||
this.allExpanded = allExpanded === 'true'; | ||
} | ||
}, | ||
saveAllExpanded() { | ||
// we save the state of the allExpanded variable in the local storage | ||
localStorage.setItem('allExpanded', this.allExpanded); | ||
}, |
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.
housekeeping
if(row.get("timeStamp") != null){ | ||
long epoch = FormatterUtils.getEpochFromSQLTimestamp(row.get("timeStamp").toString()); | ||
row.replace("timeStamp", epoch); | ||
} | ||
|
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.
housekeeping. Code out of place
clearPagination() { | ||
this.pagination = { | ||
...this.pagination, | ||
page: 1, | ||
rowsPerPage: this.initialPageSize, | ||
rowsNumber: 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.
clearPagination() - second part of the fix
// each time the address changes, we clear the pagination | ||
address() { | ||
this.clearPagination(); | ||
}, |
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.
watch address property - part of the fix (to the number of the total rows)
} else { | ||
// we are in the first page loading for the first time, so we clear the pagination | ||
this.clearPagination(); | ||
} |
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.
clearPagination() when there's no pagination parameter in the URL - the final part of the fix
@@ -7,7 +7,6 @@ export default boot(({ app }) => { | |||
|
|||
const defaultNetwork = Object.keys(evmSettings)[0]; | |||
let network = new URLSearchParams(window.location.search).get('network') ?? process.env.NETWORK_EVM_NAME; | |||
console.log('Multichain initMultichain()', { network, NETWORK_EVM_NAME: process.env.NETWORK_EVM_NAME }); |
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.
housekeeping
Fixes #882
Description
The address parameter seemed to update after the query was made so even when you click on the internal transactions button (with no address filter) it does not change the filter until the second click to keep on navigating (It takes a delayed effect).
This PR adds a little bouncing to wait for the address parameter to update before performing the actual query so now it make it with the correct address filter.
Test scenarios
1 - visit this link with address filter:
https://deploy-preview-930--dev-mainnet-teloscan.netlify.app/txsinternal?a=0xa30b5e3c8Fee56C135Aecb733cd708cC31A5657a&page=7,10
2 - Click on Internal Transaction under Blockchain menu: