-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Add function comments to Explorer #5273
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ec5ff0a to
475e558
Compare
apps/dashboard/src/components/contract-functions/contract-function-comment.tsx
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5273 +/- ##
=======================================
Coverage 45.56% 45.56%
=======================================
Files 1067 1067
Lines 55487 55487
Branches 4030 4030
=======================================
Hits 25282 25282
Misses 29515 29515
Partials 690 690
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
MananTank
left a comment
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.
Deferring review to @jnsdls for this PR
Merge activity
|
 <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new component, `ContractFunctionComment`, which fetches and displays comments for contract functions. It also refactors the `contract-function.tsx` file to utilize this new component, improving the organization and clarity of the code. ### Detailed summary - Added `ContractFunctionComment` component to fetch and display function comments. - Integrated `ContractFunctionComment` into `ContractFunctionInner` in `contract-function.tsx`. - Imported `lazy` from `react` for lazy loading of `ContractFunctionComment`. - Implemented logic to extract comments from Solidity source code using regex. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
475e558 to
93a382b
Compare

PR-Codex overview
This PR introduces a new component,
ContractFunctionComment, that fetches and displays comments for contract functions in a Solidity file. It enhances theContractFunctionInnercomponent by integrating the new functionality, improving user experience by providing additional context for contract functions.Detailed summary
ContractFunctionCommentcomponent to fetch and display comments for contract functions.ContractFunctionCommentintoContractFunctionInner.useContractSourcesto retrieve contract source data.extractFunctionCommentfunction to parse comments from Solidity code.lazyloading forContractFunctionCommentto optimize performance.