-
Notifications
You must be signed in to change notification settings - Fork 7
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: revamp-tools-ui #345
feat: revamp-tools-ui #345
Conversation
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.
There is also a small build error on file ./src/components/DropDetails.js
.
src/components/DagComponent.js
Outdated
renderUi() { | ||
return ( | ||
<div ref="dagWrapper" className="dagWrapper"> | ||
<svg id="graph" /> | ||
<div className="tooltip"></div> | ||
</div> | ||
); | ||
} | ||
|
||
renderNewUi() { | ||
return ( | ||
<div ref="dagWrapper" className="dagWrapper"> | ||
<svg id="graph" /> | ||
<div className="tooltip"></div> | ||
</div> | ||
); | ||
} |
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.
question: What changed here?
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.
At some point during development, we separated the returns, but we realized it wasn’t necessary. We’ve adjusted it now. Waiting for your review.
src/components/tx/TxData.js
Outdated
{renderListWithLinks(conflictNotTwin, true)} | ||
{this.props.newUiEnabled | ||
? renderNewUiListWithLinks(conflictNotTwin) | ||
: renderListWithLinks(conflictNotTwin, true)} |
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.
Since this is used many times on this file, maybe the better way to do this would be to move the conditional to the renderListWithLinks
so only the method changes and the rest of the file remains the same.
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.
I’ve applied your suggestion and refactored the code accordingly. Now, instead of calling renderNewUiListWithLinks multiple times, we only call renderListWithLinks and handle the validation of what it returns within the method itself. This should make the code cleaner and more maintainable. Let me know if you need any further adjustments!
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.
It seems the PR validation build step is failing with the error
./src/components/DropDetails.js
Line 24:6: React Hook useEffect has a missing dependency: 'startOpen'. Either include it or remove the dependency array react-hooks/exhaustive-deps```
src/components/DagComponent.js
Outdated
@@ -366,6 +370,51 @@ class DagComponent extends React.Component { | |||
}); | |||
} | |||
|
|||
newDrawGraph() { |
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.
I missed this during the first review, but this method is basically the same as drawGraph
, why not use a single function?
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.
Thank you for catching this! You’re absolutely right, the logic in both methods was very similar and could be combined into a single function. I’ve refactored the code to use a single drawGraph function, separating the behaviors with conditional logic. This makes the code cleaner and easier to maintain. Let me know if there’s anything else you’d like me to adjust!
d01bc83
to
28d540c
Compare
28d540c
to
dc07271
Compare
hasBefore = () => this.state.page > 1; | ||
|
||
hasAfter = () => this.state.page < this.state.pages.length; |
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.
This is already defined earlier in the file
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.
Thank you for pointing that out! I've removed the redundant lines to avoid duplication.
Melhor desenvolvedor, tive a oportunidade de trabalhar com ele e só tenho boas lembranças. Educado, inteligente e sabe liderar! |
Acceptance Criteria
GDPRConsent
cookie alert has been fixed.Security Checklist
DecodeTX.webm
DecodeTXMobile.webm
PushTX.webm
PushTXMobile.webm
DAG.webm
DAGMobile.webm
Feature.webm
FeatureMobile.webm