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

Create details dialog for application exploring - Closes #4356, #4357 #4369

Conversation

eniolam1000752
Copy link
Contributor

@eniolam1000752 eniolam1000752 commented Jun 27, 2022

What was the problem?

This PR resolves #4356, #4357

How was it solved?

  • Create a component to have the following: avatar, custom background, application name, owner address, pin status, application status, chain id, last update time, Last Certificate Height, node url.
  • Allow the component to be accessible via the dialog
  • Add unit test
  • Add e2e test

How was it tested?

  • e2e
  • jest

@eniolam1000752 eniolam1000752 self-assigned this Jun 27, 2022
@eniolam1000752 eniolam1000752 marked this pull request as draft June 27, 2022 16:25
@eniolam1000752 eniolam1000752 requested review from isalga and soroushm and removed request for soroushm and isalga June 27, 2022 16:25
@eniolam1000752 eniolam1000752 changed the title Create details dialog for application exploring - Closes #4356 Create details dialog for application exploring - Closes #4356, #4357 Jun 30, 2022
@eniolam1000752 eniolam1000752 marked this pull request as ready for review June 30, 2022 14:17
Copy link
Contributor

@soroushm soroushm left a comment

Choose a reason for hiding this comment

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

quick review

setup/jest.config.js Outdated Show resolved Hide resolved
</div>
<div className={styles.balanceRow}>
<span>Deposited:</span>
<span>5,351.859 LSK</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

all the value should come from the variable like data.deposit

@@ -11,3 +11,4 @@ export { default as watchList } from '@dpos/validator/store/reducers/watchList';
export { default as service } from './service';
export { default as loading } from './loading';
export { account } from 'src/modules/account/store/reducer';
export { blockChainApplications } from 'src/modules/blockchainApplication/explore/store/reducer';
Copy link
Member

@ikem-legend ikem-legend Jul 1, 2022

Choose a reason for hiding this comment

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

@eniolam1000752 This should be aliased along with the previous line

lastCertificateHeight: 1000,
lastUpdated: 123456789,
deposit: 5e10,
serviceUrl: 'https://enevti.com/',
Copy link
Contributor

Choose a reason for hiding this comment

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

is the actual response
{
"data": [{
"name": "Test app",
"chainID": "aq02qkbb35u4jdq8szo3pnsq",
"state": "active",
"address": "lsk24cd35u4jdq8szo3pnsqe5dsxwrnazyqqqg5eu",
"lastCertificateHeight": 1000, // Optional
"lastUpdated": 123456789, // Optional
}],
"meta": {
"count": 10,
"offset": 10,
"total": 150,
},
"links": {}
}

@ikem-legend ikem-legend self-requested a review July 4, 2022 10:50
@ikem-legend
Copy link
Member

@eniolam1000752 Please fix CSS for application status badge

@eniolam1000752 eniolam1000752 requested a review from soroushm July 4, 2022 14:38
ikem-legend
ikem-legend previously approved these changes Jul 4, 2022
soroushm
soroushm previously approved these changes Jul 5, 2022
@ManuGowda ManuGowda removed the request for review from isalga July 5, 2022 07:26
@eniolam1000752 eniolam1000752 dismissed stale reviews from soroushm and ikem-legend via 2b29ea8 July 5, 2022 07:47
@eniolam1000752 eniolam1000752 force-pushed the 4356-create-details-dialog-for-app-exploring branch 2 times, most recently from 2b29ea8 to 20cfb58 Compare July 5, 2022 08:05
Signed-off-by: eniolam1000752 <eniolam1000752@gmail.com>
@eniolam1000752 eniolam1000752 force-pushed the 4356-create-details-dialog-for-app-exploring branch from 20cfb58 to 534e059 Compare July 5, 2022 08:14
@eniolam1000752 eniolam1000752 merged commit 63877a4 into feature/blockchain-application Jul 5, 2022
@ManuGowda ManuGowda deleted the 4356-create-details-dialog-for-app-exploring branch July 5, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants