-
Notifications
You must be signed in to change notification settings - Fork 5
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
refactor(core): refactor activityDetails to use dApp components [LW-10281] #1085
refactor(core): refactor activityDetails to use dApp components [LW-10281] #1085
Conversation
Allure Report
smokeTests: ✅ test report for dbca45f2
|
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.
Great refactor @tommayeliog! 🚀 Please take a look if my comments are helpful. We can catch up :)
...nsion-wallet/src/views/browser-view/features/activity/components/TransactionDetailsProxy.tsx
Outdated
Show resolved
Hide resolved
packages/core/src/ui/components/ActivityDetail/TransactionDetails.tsx
Outdated
Show resolved
Hide resolved
packages/core/src/ui/components/ProposalProcedures/components/ProcedureTransactionDetails.tsx
Outdated
Show resolved
Hide resolved
...s/core/src/ui/components/ActivityDetail/components/TxDetailsCertificates/CertificateView.tsx
Outdated
Show resolved
Hide resolved
...s/core/src/ui/components/ActivityDetail/components/TxDetailsCertificates/CertificateView.tsx
Outdated
Show resolved
Hide resolved
...s/core/src/ui/components/ActivityDetail/components/TxDetailsCertificates/CertificateView.tsx
Show resolved
Hide resolved
.../src/ui/components/ActivityDetail/components/TxDetailsCertificates/TxDetailsCertificates.tsx
Outdated
Show resolved
Hide resolved
packages/core/src/ui/components/ActivityDetail/components/TxDetailsProposalProcedures.tsx
Outdated
Show resolved
Hide resolved
<VotingProcedures data={Wallet.util.votingProceduresRawToViewMap(votingProcedures, explorerBaseUrl)} /> | ||
<VotingProcedures | ||
data={votingProcedures.map((votingProcedure) => | ||
Wallet.util.mapVotingProceduresToView(votingProcedure, explorerBaseUrl) |
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.
mapVotingProceduresToView
-> mapVotingProcedureToView
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.
Great work! :)
bebeac9
to
9cfb48d
Compare
Quality Gate failedFailed conditions |
Checklist
Proposed solution
In this PR I'm making a refactoring that will use core dApp components for both dApp modal and for TransactionDetails screen, more specifically: certificates, proposalProcedures and voteProcedures.
Core and Extension packages are using shared functions for raw data mapping and test/storybook mocks.
Note: DappInfo has been removed from core certificates/proposal components and it's on the containers in extenstion package.
Testing
Use storybook and
yarn test
for testing both extension and core.If you are able to test the application, then check is it correct when switching networks.
Screenshots