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

refactor(core): refactor activityDetails to use dApp components [LW-10281] #1085

Merged

Conversation

tommayeliog
Copy link
Contributor

@tommayeliog tommayeliog commented Apr 22, 2024

Checklist

  • JIRA - LW-10281
  • Proper tests implemented
  • Screenshots added.

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

Screenshot 2024-05-02 at 12 11 11 Screenshot 2024-05-02 at 12 10 40 Screenshot 2024-05-02 at 12 10 59

@tommayeliog tommayeliog requested a review from mchappell April 22, 2024 12:24
Copy link

github-actions bot commented May 2, 2024

Allure Report

allure-report-publisher generated test report!

smokeTests: ✅ test report for dbca45f2

passed failed skipped flaky total result
Total 30 0 0 0 30

@tommayeliog tommayeliog marked this pull request as ready for review May 2, 2024 11:14
@tommayeliog tommayeliog requested a review from a team as a code owner May 2, 2024 11:14
Copy link
Contributor

@przemyslaw-wlodek przemyslaw-wlodek left a 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 :)

<VotingProcedures data={Wallet.util.votingProceduresRawToViewMap(votingProcedures, explorerBaseUrl)} />
<VotingProcedures
data={votingProcedures.map((votingProcedure) =>
Wallet.util.mapVotingProceduresToView(votingProcedure, explorerBaseUrl)
Copy link
Contributor

Choose a reason for hiding this comment

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

mapVotingProceduresToView -> mapVotingProcedureToView

@tommayeliog tommayeliog changed the title refactor(core): refactor activityDetails to use dApp components refactor(core): refactor activityDetails to use dApp components [LW-10281] May 8, 2024
Copy link
Contributor

@przemyslaw-wlodek przemyslaw-wlodek left a comment

Choose a reason for hiding this comment

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

Great work! :)

@tommayeliog tommayeliog force-pushed the refactor/LW-10281-dApp-connector-screens-activity-details branch from bebeac9 to 9cfb48d Compare May 21, 2024 09:36
@tommayeliog tommayeliog requested a review from a team as a code owner May 21, 2024 09:36
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.2% Duplication on New Code (required ≤ 3.5%)

See analysis details on SonarCloud

@tommayeliog tommayeliog merged commit 4af8ee7 into main May 21, 2024
10 of 12 checks passed
@tommayeliog tommayeliog deleted the refactor/LW-10281-dApp-connector-screens-activity-details branch May 21, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants