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

Dev #268

Closed
wants to merge 122 commits into from
Closed

Dev #268

wants to merge 122 commits into from

Conversation

midasdev711
Copy link
Contributor

@midasdev711 midasdev711 commented Feb 24, 2021

Problem

Solution

  • Set the max-width of the content
  • Replace the logo
  • Change color of nav bar link when hovering
  • Remove hover effect in all tables

Result

All issues are fixed.

image

vhurryharry and others added 30 commits September 21, 2020 17:39
web-ui: modularize the pages (calculator, governance missing)

web-ui: added block-list page, changed latest-blocks to block-table.

web-ui: block details/raw page (WIP)

web-ui: updated blocks tab

web-ui: fixed the colspan for labels in block-details page.

web-ui: fixed the unit-tests.

web-ui: paginated the block list table

web-ui: updated the blocks api url

web-ui: updated the block-table component and blocks api endpoint.

web-ui: added i18n to the block-list component.

web-ui: moved truncate to utils and added test.

web-ui: updated the style for better responsiveness

web-ui: updated the dashboard page layout

web-ui: Fixed type definition of block.transactions field.

web-ui: Made amAgo utility function.

web-ui: Added transaction list page.

web-ui: Fixed unit test for transactions table.

web-ui: Updated the transaction details/raw pages

web-ui: Updated the dashboard page ui

web-ui: Updated the nodes page ui

web-ui: Updated the node stats on the UI.

web-ui: Fixed unit test for node-ticker.

web-ui: Updated the addresses page ui

web-ui: Updated the addresses page ui

web-ui: Added calculator page ui

web-ui: Updated the calculator page ui

web-ui: Updated statistics display values

web-ui: Updated coins in masternodes value in the ui

web-ui: Updated the ui to for coinsStaking
Copy link
Collaborator

@AlexITC AlexITC left a comment

Choose a reason for hiding this comment

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

Overall I took a quick look to this huge change, I'd like to merge it as soon as possible, I'll approve when the PR gets these changes:

  • Enable the tests and get them passing in the CI
  • Format the code properly, there are some html pieces not aligned.
  • Remove unused/commented code
  • There are some critical pieces that I want you tor write tests for, like the calculator functions
  • Try to avoid using any types, and specify types when possible.

Thanks.

@@ -4,14 +4,17 @@
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"serve": "ng serve",
"start": "node server.js",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please explain what's the usefulness to include express because angular already has an embedded server for dev purposes, if this is not necessary, remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's for staging server. (http://staging.xsnexplorer.io/)
In the staging server, I build the project and run it with node server.
You can check that in server.js.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In my opinion, this is not necessary for the project, I'd suggest keeping this change in your local machine only

Copy link
Collaborator

Choose a reason for hiding this comment

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

In fact, given that it is staging, why can't you use ng server instead?

tposContracts: Array<TposContract>;
selectedTpos: number;
isLoading: boolean;
loadingType = 2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use a enum instead of int values, or at least, create constants representing the possible statuses instead of using magic numbers

addressLabel = addressLabels;
tposContracts: Array<TposContract>;
selectedTpos: number;
isLoading: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

you likely need a isLoading per component loaded asynchronously, otherwise, there will be conflicts while loading transactions and tpos contracts

templateUrl: './calculator.component.html',
styleUrls: ['./calculator.component.css']
})
export class CalculatorComponent implements OnInit, AfterViewChecked {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This component has quite a lot of functions that could be taken out of the component, make sure to tests those, its pretty important to get the correct data for users

.circleci/config.yml Show resolved Hide resolved
<div class="tab-content row ml-0 mr-0">
<div class="col-xs-12 text-primary page-title">
{{ip ? ip : 'label.masternode' | translate}}
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please make sure that all the changes have properly formatted code

@AlexITC
Copy link
Collaborator

AlexITC commented Jun 20, 2021

Superseded by #329 .

@AlexITC AlexITC closed this Jun 20, 2021
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